Project

General

Profile

Bug #24383 ยป extendGetRecordWSOL.diff

Administrator Admin, 2010-12-21 21:44

View differences:

t3lib/class.t3lib_befunc.php (Arbeitskopie)
*
* TOTAL FUNCTIONS: 99
* (This index is automatically created/updated by the extension "extdeveval")
*
*m
*/
......
* @param string List of fields to select
* @param string Additional WHERE clause, eg. " AND blablabla = 0"
* @param boolean Use the deleteClause to check if a record is deleted (default true)
* @param boolean If true the function does not return a "pointer" row for moved records in a workspace
* @return array Returns the row if found, otherwise nothing
*/
public static function getRecordWSOL($table, $uid, $fields = '*', $where = '', $useDeleteClause = TRUE) {
public static function getRecordWSOL($table, $uid, $fields = '*', $where = '', $useDeleteClause = TRUE, $unsetMovePointers = FALSE) {
if ($fields !== '*') {
$internalFields = t3lib_div::uniqueList($fields . ',uid,pid' . ($table == 'pages' ? ',t3ver_swapmode' : ''));
$row = self::getRecord($table, $uid, $internalFields, $where, $useDeleteClause);
self::workspaceOL($table, $row);
self::workspaceOL($table, $row, - 99, $unsetMovePointers);
if (is_array($row)) {
foreach (array_keys($row) as $key) {
......
}
} else {
$row = self::getRecord($table, $uid, $fields, $where, $useDeleteClause);
self::workspaceOL($table, $row);
self::workspaceOL($table, $row, -99, $unsetMovePointers);
}
return $row;
}
    (1-1/1)