Property | Type | Description | |
---|---|---|---|
$arrModule | array | The current back end module | |
$bid | string | ID of the button container | |
$blnCreateNewVersion | boolean | True if a new version has to be created | |
$ctable | array | Names of the child tables | |
$current | array | IDs of all records that are currently displayed | |
$firstOrderBy | string | First sorting field | |
$limit | string | Limit (database query) | |
$orderBy | array | Order by (database query) | |
$ptable | string | Name of the parent table | |
$set | array | Fields of a new or duplicated record | |
$total | string | Total (database query) | |
$treeView | boolean | Show the current table as tree |
Method | Description | |
---|---|---|
__construct ( string $strTable, array $arrModule = [] ) | Initialize the object | |
__get ( string $strKey ) : mixed | Return an object property | |
__set ( string $strKey, mixed $varValue ) | Set an object property | |
ajaxTreeView ( integer $id, integer $level ) : string | Generate a particular subpart of the tree and return it as HTML string | |
copy ( boolean $blnDoNotRedirect = false ) : integer | boolean | Duplicate a particular record of the current table | |
copyAll ( ) | Move all selected records | |
create ( array $set = [] ) | Insert a new row into a database table | |
cut ( boolean $blnDoNotRedirect = false ) | Assign a new position to an existing record | |
cutAll ( ) | Move all selected records | |
delete ( boolean $blnDoNotRedirect = false ) | Delete a record of the current table table and save it to tl_undo | |
deleteAll ( ) | Delete all selected records | |
deleteChilds ( string $table, integer $id, array &$delete ) | Recursively get all related table names and records | |
edit ( integer $intId = null, integer $ajaxId = null ) : string | Auto-generate a form to edit the current database record | |
editAll ( integer $intId = null, integer $ajaxId = null ) : string | Auto-generate a form to edit all records that are currently shown | |
getPalette ( ) : string | Return the name of the current palette | |
move ( ) | Change the order of two neighbour database records | |
overrideAll ( ) : string | Auto-generate a form to override all records that are currently shown | |
show ( ) : string | Return all non-excluded fields of a record as HTML table | |
showAll ( ) : string | List all records of a particular table | |
undo ( ) | Restore one or more deleted records |
Method | Description | |
---|---|---|
copyChilds ( string $table, integer $insertID, integer $id, integer $parentId ) | Duplicate all child records of a duplicated record | |
filterMenu ( integer $intFilterPanel ) : string | Generate the filter panel and return it as HTML string | |
formatCurrentValue ( string $field, mixed $value, integer $mode ) : string | Return the formatted group header as string | |
formatGroupHeader ( string $field, mixed $value, integer $mode, array $row ) : string | Return the formatted group header as string | |
generateTree ( string $table, integer $id, array $arrPrevNext, boolean $blnHasSorting, integer $intMargin, array $arrClipboard = null, boolean $blnCircularReference = false, boolean $protectedPage = false, boolean $blnNoRecursion = false, array $arrFound = [] ) : string | Recursively generate the tree and return it as HTML string | |
getNewPosition ( string $mode, integer $pid = null, boolean $insertInto = false ) | Calculate the new position of a moved or inserted record | |
limitMenu ( boolean $blnOptional = false ) : string | Return a select menu to limit results | |
listView ( ) : string | List all records of the current table and return them as HTML string | |
paginationMenu ( ) : string | Return a pagination menu to browse results | |
panel ( ) : string | Build the sort panel and return it as string | |
parentView ( ) : string | Show header of the parent table and list all records of the current table | |
reviseTable ( ) | Delete all incomplete and unrelated records | |
save ( mixed $varValue ) | Save the current value | |
searchMenu ( ) : string | Return a search form that allows to search results using regular expressions | |
sortMenu ( ) : string | Return a select menu that allows to sort results by a particular field | |
treeView ( ) : string | List all records of the current table as tree and return them as HTML string |
public __construct ( string $strTable, array $arrModule = [] ) | ||
$strTable | string | |
$arrModule | array |
protected filterMenu ( integer $intFilterPanel ) : string | ||
$intFilterPanel | integer | |
return | string |
protected generateTree ( string $table, integer $id, array $arrPrevNext, boolean $blnHasSorting, integer $intMargin, array $arrClipboard = null, boolean $blnCircularReference = false, boolean $protectedPage = false, boolean $blnNoRecursion = false, array $arrFound = [] ) : string | ||
$table | string | |
$id | integer | |
$arrPrevNext | array | |
$blnHasSorting | boolean | |
$intMargin | integer | |
$arrClipboard | array | |
$blnCircularReference | boolean | |
$protectedPage | boolean | |
$blnNoRecursion | boolean | |
$arrFound | array | |
return | string |
public getPalette ( ) : string | ||
return | string |
public overrideAll ( ) : string | ||
return | string |
protected paginationMenu ( ) : string | ||
return | string |
protected parentView ( ) : string | ||
return | string |
protected reviseTable ( ) |
protected searchMenu ( ) : string | ||
return | string |
protected bool $blnCreateNewVersion | ||
return | boolean |
protected array $current | ||
return | array |