PHP Class Contao\Versions

Inheritance: extends Controller
Afficher le fichier Open project: contao/core-bundle Class Usage Examples

Protected Properties

Свойство Type Description
$intPid integer Parent ID
$intUserId integer User ID
$strEditUrl string Edit URL
$strPath string File path
$strTable string Table
$strUsername string Username

Méthodes publiques

Méthode Description
__construct ( string $strTable, integer $intPid ) Initialize the object
addToTemplate ( BackendTemplate $objTemplate ) Add a list of versions to a template
compare ( ) Compare versions
create ( ) Create a new version of a record
initialize ( ) Create the initial version of a record
renderDropdown ( ) : string Render the versions dropdown menu
restore ( integer $intVersion ) Restore a version
setEditUrl ( string $strEditUrl ) Set the edit URL
setUserId ( integer $intUserId ) Set the user ID
setUsername ( string $strUsername ) Set the username

Méthodes protégées

Méthode Description
getEditUrl ( ) : string Return the edit URL
getUserId ( ) : string Return the user ID
getUsername ( ) : string Return the username
implodeRecursive ( mixed $var, boolean $binary = false ) : string Implode a multi-dimensional array recursively

Method Details

__construct() public méthode

Initialize the object
public __construct ( string $strTable, integer $intPid )
$strTable string
$intPid integer

addToTemplate() public static méthode

Add a list of versions to a template
public static addToTemplate ( BackendTemplate $objTemplate )
$objTemplate BackendTemplate

compare() public méthode

Compare versions
public compare ( )

create() public méthode

Create a new version of a record
public create ( )

getEditUrl() protected méthode

Return the edit URL
protected getEditUrl ( ) : string
Résultat string

getUserId() protected méthode

Return the user ID
protected getUserId ( ) : string
Résultat string

getUsername() protected méthode

Return the username
protected getUsername ( ) : string
Résultat string

implodeRecursive() protected méthode

Implode a multi-dimensional array recursively
protected implodeRecursive ( mixed $var, boolean $binary = false ) : string
$var mixed
$binary boolean
Résultat string

initialize() public méthode

Create the initial version of a record
public initialize ( )

renderDropdown() public méthode

Render the versions dropdown menu
public renderDropdown ( ) : string
Résultat string

restore() public méthode

Restore a version
public restore ( integer $intVersion )
$intVersion integer

setEditUrl() public méthode

Set the edit URL
public setEditUrl ( string $strEditUrl )
$strEditUrl string

setUserId() public méthode

Set the user ID
public setUserId ( integer $intUserId )
$intUserId integer

setUsername() public méthode

Set the username
public setUsername ( string $strUsername )
$strUsername string

Property Details

$intPid protected_oe property

Parent ID
protected int $intPid
Résultat integer

$intUserId protected_oe property

User ID
protected int $intUserId
Résultat integer

$strEditUrl protected_oe property

Edit URL
protected string $strEditUrl
Résultat string

$strPath protected_oe property

File path
protected string $strPath
Résultat string

$strTable protected_oe property

Table
protected string $strTable
Résultat string

$strUsername protected_oe property

Username
protected string $strUsername
Résultat string