TYPO3
7.6
|
Public Member Functions | |
loadData ($id, $table, $depth, $limit= '', $filter= '') | |
getTotalCount ($id, $table, $depth, $filter) | |
undeleteData ($recordsArray, $recursive=false) | |
setDeletedRows ($table, array $row) | |
getDeletedRows () | |
getTable () | |
Public Attributes | |
$label | |
$title | |
Protected Member Functions | |
setData ($id, $table, $depth, $tcaCtrl, $filter) | |
checkRecordAccess ($table, array $rows) | |
escapeValueForLike ($value, $tableName) | |
getDatabaseConnection () | |
Protected Attributes | |
$deletedRows = array() | |
$limit = '' | |
$table = array() | |
$recyclerHelper | |
Model class for the 'recycler' extension.
Definition at line 24 of file DeletedRecords.php.
|
protected |
Checks whether the current backend user has access to the given records.
string | $table | Name of the table |
array | $rows | Record row |
Definition at line 256 of file DeletedRecords.php.
References DeletedRecords\$table, RecyclerUtility\checkAccess(), and DeletedRecords\setDeletedRows().
Referenced by DeletedRecords\setData().
|
protected |
Escapes a value to be used for like in a database query. There is a special handling for the characters '' and '_'.
string | $value | The value to be escaped for like conditions |
string | $tableName | The name of the table the query should be used for |
Definition at line 273 of file DeletedRecords.php.
References DeletedRecords\getDatabaseConnection().
Referenced by DeletedRecords\setData().
|
protected |
Returns an instance of DatabaseConnection
Definition at line 390 of file DeletedRecords.php.
References $GLOBALS.
Referenced by DeletedRecords\escapeValueForLike(), and DeletedRecords\setData().
getDeletedRows | ( | ) |
Get deleted Rows
Definition at line 370 of file DeletedRecords.php.
References DeletedRecords\$deletedRows.
Referenced by DeletedRecords\undeleteData().
getTable | ( | ) |
Get table
Definition at line 380 of file DeletedRecords.php.
References DeletedRecords\$table.
getTotalCount | ( | $id, | |
$table, | |||
$depth, | |||
$filter | |||
) |
Find the total count of deleted records
int | $id | UID from record |
string | $table | Tablename from record |
int | $depth | How many levels recursive |
string | $filter | Filter text |
Definition at line 119 of file DeletedRecords.php.
References DeletedRecords\$table, and DeletedRecords\loadData().
loadData | ( | $id, | |
$table, | |||
$depth, | |||
$limit = '' , |
|||
$filter = '' |
|||
) |
Load all deleted rows from $table If table is not set, it iterates the TCA tables
int | $id | UID from selected page |
string | $table | Tablename |
int | $depth | How many levels recursive |
string | $limit | MySQL LIMIT |
string | $filter | Filter text |
Definition at line 84 of file DeletedRecords.php.
References $GLOBALS, DeletedRecords\$limit, DeletedRecords\$table, RecyclerUtility\getModifyableTables(), DeletedRecords\setData(), and GeneralUtility\trimExplode().
Referenced by DeletedRecords\getTotalCount(), and DeletedRecords\undeleteData().
|
protected |
Set all deleted rows
int | $id | UID from record |
string | $table | Tablename from record |
int | $depth | How many levels recursive |
array | $tcaCtrl | TCA CTRL array |
string | $filter | Filter text |
Definition at line 139 of file DeletedRecords.php.
References DeletedRecords\$limit, DeletedRecords\$table, DeletedRecords\checkRecordAccess(), DeletedRecords\escapeValueForLike(), DeletedRecords\getDatabaseConnection(), RecyclerUtility\getDeletedField(), and GeneralUtility\trimExplode().
Referenced by DeletedRecords\loadData().
setDeletedRows | ( | $table, | |
array | $row | ||
) |
Set deleted rows
string | $table | Tablename |
array | $row | Deleted record row |
Definition at line 357 of file DeletedRecords.php.
References DeletedRecords\$table.
Referenced by DeletedRecords\checkRecordAccess().
undeleteData | ( | $recordsArray, | |
$recursive = false |
|||
) |
Undelete records If $recursive is TRUE all records below the page uid would be undelete too
array | $recordsArray | Representation of the records |
bool | $recursive | Whether to recursively undelete |
Definition at line 315 of file DeletedRecords.php.
References DeletedRecords\$table, DeletedRecords\getDeletedRows(), DeletedRecords\loadData(), and GeneralUtility\makeInstance().
|
protected |
Definition at line 31 of file DeletedRecords.php.
Referenced by DeletedRecords\getDeletedRows().
$label |
Definition at line 59 of file DeletedRecords.php.
|
protected |
Definition at line 38 of file DeletedRecords.php.
Referenced by DeletedRecords\loadData(), and DeletedRecords\setData().
|
protected |
Definition at line 52 of file DeletedRecords.php.
|
protected |
Definition at line 45 of file DeletedRecords.php.
Referenced by DeletedRecords\checkRecordAccess(), DeletedRecords\getTable(), DeletedRecords\getTotalCount(), DeletedRecords\loadData(), DeletedRecords\setData(), DeletedRecords\setDeletedRows(), and DeletedRecords\undeleteData().
$title |
Definition at line 66 of file DeletedRecords.php.