44 $this->setUpBackendUserFromFixture(1);
46 $GLOBALS[
'TBE_STYLES'][
'spriteIconApi'][
'iconsAvailable'] = array();
51 $this->export->init(0,
'export');
62 protected function setPageTree($pidToStart, $depth = 1) {
64 $permsClause =
$GLOBALS[
'BE_USER']->getPagePermsClause(1);
68 $tree->init(
'AND ' . $permsClause);
69 $tree->tree[] = array(
'row' => $pidToStart);
70 $tree->buffer_idH = array();
72 $tree->getTree($pidToStart, $depth,
'');
75 $idH[$pidToStart][
'uid'] = $pidToStart;
76 if (count($tree->buffer_idH)) {
77 $idH[$pidToStart][
'subrow'] = $tree->buffer_idH;
80 $this->export->setPageTree($idH);
91 foreach (
$GLOBALS[
'TCA'] as $table => $value) {
92 if ($table !=
'pages' && (in_array($table, $tables) || in_array(
'_ALL', $tables))) {
93 if (
$GLOBALS[
'BE_USER']->check(
'tables_select', $table) && !
$GLOBALS[
'TCA'][$table][
'ctrl'][
'is_static']) {
94 $orderBy =
$GLOBALS[
'TCA'][$table][
'ctrl'][
'sortby'] ?
'ORDER BY ' .
$GLOBALS[
'TCA'][$table][
'ctrl'][
'sortby'] :
$GLOBALS[
'TCA'][$table][
'ctrl'][
'default_sortby'];
95 $res =
$GLOBALS[
'TYPO3_DB']->exec_SELECTquery(
100 $GLOBALS[
'TYPO3_DB']->stripOrderBy($orderBy)
102 while ($row =
$GLOBALS[
'TYPO3_DB']->sql_fetch_assoc($res)) {
103 $this->export->export_addRecord($table, $row);
addRecordsForPid($pid, array $tables)
static makeInstance($className)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
static deleteClause($table, $tableAlias='')