CMS  Version 3.9
revert.inc File Reference

Go to the source code of this file.

Variables

 $class = checkIdentifier($_GET["target"])
 
 $itemID = checkNumeric($_GET["item_id"])
 
if(! $class||! $itemID) $target = new $class
 
 $adminAccess = Fakoli::getAdminAccessRoles()
 
if(!checkRole($adminAccess)) try
 

Variable Documentation

◆ $adminAccess

$adminAccess = Fakoli::getAdminAccessRoles()

Definition at line 14 of file revert.inc.

◆ $class

$class = checkIdentifier($_GET["target"])

Definition at line 4 of file revert.inc.

◆ $itemID

$itemID = checkNumeric($_GET["item_id"])

Definition at line 5 of file revert.inc.

◆ $target

if (! $class||! $itemID) $target = new $class

Definition at line 12 of file revert.inc.

◆ try

if (!checkRole( $adminAccess)) try
Initial value:
{
static revert($target)
Revert the versioned fields on specified target to the current live values.
if(! $class||! $itemID) $target
Definition: revert.inc:12

Definition at line 21 of file revert.inc.