![]() |
TYPO3
7.6
|
Public Member Functions | |
init ($show_hidden) | |
getPage ($uid, $disableGroupAccessCheck=false) | |
getPage_noCheck ($uid) | |
getFirstWebPage ($uid) | |
getPageIdFromAlias ($alias) | |
getPageOverlay ($pageInput, $lUid=-1) | |
getPagesOverlay (array $pagesInput, $lUid=-1) | |
getRecordOverlay ($table, $row, $sys_language_content, $OLmode= '') | |
getMenu ($pageId, $fields= '*', $sortField= 'sorting', $additionalWhereClause= '', $checkShortcuts=true) | |
getMenuForPages (array $pageIds, $fields= '*', $sortField= 'sorting', $additionalWhereClause= '', $checkShortcuts=true) | |
getDomainStartPage ($domain, $path= '', $request_uri= '') | |
getRootLine ($uid, $MP= '', $ignoreMPerrors=false) | |
getPathFromRootline ($rl, $len=20) | |
getExtURL ($pagerow, $disable=false) | |
getMountPointInfo ($pageId, $pageRec=false, $prevMountPids=array(), $firstPageUid=0) | |
checkRecord ($table, $uid, $checkPage=0) | |
getRawRecord ($table, $uid, $fields= '*', $noWSOL=false) | |
getRecordsByField ($theTable, $theField, $theValue, $whereClause= '', $groupBy= '', $orderBy= '', $limit= '') | |
deleteClause ($table) | |
enableFields ($table, $show_hidden=-1, $ignore_array=array(), $noVersionPreview=false) | |
getMultipleGroupsWhereClause ($field, $table) | |
fixVersioningPid ($table, &$rr) | |
movePlhOL ($table, &$row) | |
getMovePlaceholder ($table, $uid, $fields= '*') | |
getWorkspaceVersionOfRecord ($workspace, $table, $uid, $fields= '*', $bypassEnableFieldsCheck=false) | |
checkWorkspaceAccess ($wsid) | |
Static Public Member Functions | |
static | storeHash ($hash, $data, $ident, $lifetime=0) |
Public Attributes | |
$urltypes = array('', 'http://', 'ftp://', 'mailto:', 'https://') | |
$where_hid_del = ' AND pages.deleted=0' | |
$where_groupAccess = '' | |
$sys_language_uid = 0 | |
$versioningPreview = false | |
$versioningPreview_where_hid_del = '' | |
$versioningWorkspaceId = 0 | |
$workspaceCache = array() | |
$error_getRootLine = '' | |
$error_getRootLine_failPid = 0 | |
const | DOKTYPE_DEFAULT = 1 |
const | DOKTYPE_LINK = 3 |
const | DOKTYPE_SHORTCUT = 4 |
const | DOKTYPE_BE_USER_SECTION = 6 |
const | DOKTYPE_MOUNTPOINT = 7 |
const | DOKTYPE_SPACER = 199 |
const | DOKTYPE_SYSFOLDER = 254 |
const | DOKTYPE_RECYCLER = 255 |
const | SHORTCUT_MODE_NONE = 0 |
const | SHORTCUT_MODE_FIRST_SUBPAGE = 1 |
const | SHORTCUT_MODE_RANDOM_SUBPAGE = 2 |
const | SHORTCUT_MODE_PARENT_PAGE = 3 |
Protected Member Functions | |
getSubpagesForPages (array $pageIds, $fields= '*', $sortField= 'sorting', $additionalWhereClause= '', $checkShortcuts=true, $parentPages=true) | |
addMountPointParameterToPage (array $page) | |
checkValidShortcutOfPage (array $page, $additionalWhereClause) | |
purgeComputedProperties (array $row) | |
shouldFieldBeOverlaid ($table, $field, $value) | |
getDatabaseConnection () | |
getTypoScriptFrontendController () | |
getBackendUser () | |
Protected Attributes | |
$cache_getRootLine = array() | |
$cache_getPage = array() | |
$cache_getPage_noCheck = array() | |
$cache_getPageIdFromAlias = array() | |
$cache_getMountPointInfo = array() | |
$tableNamesAllowedOnRootLevel | |
$computedPropertyNames | |
Page functions, a lot of sql/pages-related functions
Mainly used in the frontend but also in some cases in the backend. It's important to set the right $where_hid_del in the object so that the functions operate properly
Definition at line 34 of file PageRepository.php.
|
protected |
Add the mount point parameter to the page if needed
array | $page | The page to check |
Definition at line 654 of file PageRepository.php.
References PageRepository\getMountPointInfo(), and PageRepository\getPage().
Referenced by PageRepository\getSubpagesForPages().
checkRecord | ( | $table, | |
$uid, | |||
$checkPage = 0 |
|||
) |
Checks if a record exists and is accessible. The row is returned if everything's OK.
string | $table | The table name to search |
int | $uid | The uid to look up in $table |
bool | int | $checkPage | If checkPage is set, it's also required that the page on which the record resides is accessible |
Definition at line 952 of file PageRepository.php.
References $GLOBALS, PageRepository\enableFields(), and PageRepository\getDatabaseConnection().
|
protected |
If shortcut, look up if the target exists and is currently visible
array | $page | The page to check |
string | $additionalWhereClause | Optional additional where clauses. Like "AND title like '%blabla%'" for instance. |
Definition at line 687 of file PageRepository.php.
References elseif, and PageRepository\getDatabaseConnection().
Referenced by PageRepository\getSubpagesForPages().
checkWorkspaceAccess | ( | $wsid | ) |
Checks if user has access to workspace.
int | $wsid | Workspace ID |
TRUE
if has access Definition at line 1498 of file PageRepository.php.
References PageRepository\getBackendUser(), PageRepository\getDatabaseConnection(), and ExtensionManagementUtility\isLoaded().
Referenced by PageRepository\fixVersioningPid().
deleteClause | ( | $table | ) |
Returns the "AND NOT deleted" clause for the tablename given IF $GLOBALS['TCA'] configuration points to such a field.
string | $table | Tablename |
Definition at line 1095 of file PageRepository.php.
References $GLOBALS.
Referenced by PageRepository\getMovePlaceholder(), PageRepository\getPage_noCheck(), PageRepository\getRawRecord(), PageRepository\getRecordsByField(), and PageRepository\getWorkspaceVersionOfRecord().
enableFields | ( | $table, | |
$show_hidden = -1 , |
|||
$ignore_array = array() , |
|||
$noVersionPreview = false |
|||
) |
Returns a part of a WHERE clause which will filter out records with start/end times or hidden/fe_groups fields set to values that should de-select them according to the current time, preview settings or user login. Definitely a frontend function.
Is using the $GLOBALS['TCA'] arrays "ctrl" part where the key "enablefields" determines for each table which of these features applies to that table.
string | $table | Table name found in the $GLOBALS['TCA'] array |
int | $show_hidden | If $show_hidden is set (0/1), any hidden-fields in records are ignored. NOTICE: If you call this function, consider what to do with the show_hidden parameter. Maybe it should be set? See ContentObjectRenderer->enableFields where it's implemented correctly. |
array | $ignore_array | Array you can pass where keys can be "disabled", "starttime", "endtime", "fe_group" (keys from "enablefields" in TCA) and if set they will make sure that part of the clause is not added. Thus disables the specific part of the clause. For previewing etc. |
bool | $noVersionPreview | If set, enableFields will be applied regardless of any versioning preview settings which might otherwise disable enableFields |
\InvalidArgumentException |
Definition at line 1117 of file PageRepository.php.
References $GLOBALS, GeneralUtility\callUserFunction(), VersionState\DEFAULT_STATE, elseif, PageRepository\getMultipleGroupsWhereClause(), and PageRepository\getTypoScriptFrontendController().
Referenced by PageRepository\checkRecord(), PageRepository\getPagesOverlay(), PageRepository\getRecordOverlay(), PageRepository\getWorkspaceVersionOfRecord(), PageRepository\init(), and PageRepository\movePlhOL().
fixVersioningPid | ( | $table, | |
& | $rr | ||
) |
Finding online PID for offline version record
ONLY active when backend user is previewing records. MUST NEVER affect a site served which is not previewed by backend users!!!
Will look if the "pid" value of the input record is -1 (it is an offline version) and if the table supports versioning; if so, it will translate the -1 PID into the PID of the original record.
Used whenever you are tracking something back, like making the root line.
Principle; Record offline! => Find online?
string | $table | Table name |
array | $rr | Record array passed by reference. As minimum, "pid" and "uid" fields must exist! "t3ver_oid" and "t3ver_wsid" is nice and will save you a DB query. |
Definition at line 1248 of file PageRepository.php.
References $GLOBALS, PageRepository\checkWorkspaceAccess(), PageRepository\getMovePlaceholder(), and PageRepository\getRawRecord().
|
protected |
Returns the current BE user.
Definition at line 1654 of file PageRepository.php.
References $GLOBALS.
Referenced by PageRepository\checkWorkspaceAccess().
|
protected |
Returns the database connection
Definition at line 1636 of file PageRepository.php.
References $GLOBALS.
Referenced by PageRepository\checkRecord(), PageRepository\checkValidShortcutOfPage(), PageRepository\checkWorkspaceAccess(), PageRepository\getDomainStartPage(), PageRepository\getFirstWebPage(), PageRepository\getMountPointInfo(), PageRepository\getMovePlaceholder(), PageRepository\getMultipleGroupsWhereClause(), PageRepository\getPage(), PageRepository\getPage_noCheck(), PageRepository\getPageIdFromAlias(), PageRepository\getPagesOverlay(), PageRepository\getRawRecord(), PageRepository\getRecordOverlay(), PageRepository\getRecordsByField(), PageRepository\getSubpagesForPages(), PageRepository\getWorkspaceVersionOfRecord(), and PageRepository\movePlhOL().
getDomainStartPage | ( | $domain, | |
$path = '' , |
|||
$request_uri = '' |
|||
) |
Will find the page carrying the domain record matching the input domain. Might exit after sending a redirect-header IF a found domain record instructs to do so.
string | $domain | Domain name to search for. Eg. "www.typo3.com". Typical the HTTP_HOST value. |
string | $path | Path for the current script in domain. Eg. "/somedir/subdir". Typ. supplied by ::getIndpEnv('SCRIPT_NAME') |
string | $request_uri | Request URI: Used to get parameters from if they should be appended. Typ. supplied by ::getIndpEnv('REQUEST_URI') |
Definition at line 747 of file PageRepository.php.
References PageRepository\getDatabaseConnection(), HttpUtility\HTTP_STATUS_301, and HttpUtility\redirect().
getExtURL | ( | $pagerow, | |
$disable = false |
|||
) |
Returns the URL type for the input page row IF the doktype is 3 and not disabled.
array | $pagerow | The page row to return URL type for |
bool | $disable | A flag to simply disable any output from here. - deprecated - don't use anymore. |
Definition at line 855 of file PageRepository.php.
References GeneralUtility\deprecationLog(), and GeneralUtility\getIndpEnv().
getFirstWebPage | ( | $uid | ) |
Returns the $row of the first web-page in the tree (for the default menu...)
int | $uid | The page id for which to fetch first subpages (PID) |
Definition at line 287 of file PageRepository.php.
References PageRepository\getDatabaseConnection(), and PageRepository\getPageOverlay().
getMenu | ( | $pageId, | |
$fields = '*' , |
|||
$sortField = 'sorting' , |
|||
$additionalWhereClause = '' , |
|||
$checkShortcuts = true |
|||
) |
Returns an array with page rows for subpages of a certain page ID. This is used for menus in the frontend. If there are mount points in overlay mode the _MP_PARAM field is set to the corret MPvar.
If the $pageId being input does in itself require MPvars to define a correct rootline these must be handled externally to this function.
int|int[] | $pageId The page id (or array of page ids) for which to fetch subpages (PID) | |
string | $fields | List of fields to select. Default is "*" = all |
string | $sortField | The field to sort by. Default is "sorting @param string $additionalWhereClause Optional additional where clauses. Like "AND title like 'blabla'" for instance. |
bool | $checkShortcuts | Check if shortcuts exist, checks by default |
Definition at line 559 of file PageRepository.php.
References PageRepository\getSubpagesForPages().
getMenuForPages | ( | array | $pageIds, |
$fields = '*' , |
|||
$sortField = 'sorting' , |
|||
$additionalWhereClause = '' , |
|||
$checkShortcuts = true |
|||
) |
Returns an array with page-rows for pages with uid in $pageIds.
This is used for menus. If there are mount points in overlay mode the _MP_PARAM field is set to the correct MPvar.
int[] | $pageIds Array of page ids to fetch | |
string | $fields | List of fields to select. Default is "*" = all |
string | $sortField | The field to sort by. Default is "sorting" |
string | $additionalWhereClause | Optional additional where clauses. Like "AND title like '%blabla%'" for instance. |
bool | $checkShortcuts | Check if shortcuts exist, checks by default |
Definition at line 577 of file PageRepository.php.
References PageRepository\getSubpagesForPages().
getMountPointInfo | ( | $pageId, | |
$pageRec = false , |
|||
$prevMountPids = array() , |
|||
$firstPageUid = 0 |
|||
) |
Returns MountPoint id for page
Does a recursive search if the mounted page should be a mount page itself. It has a run-away break so it can't go into infinite loops.
int | $pageId | Page id for which to look for a mount pid. Will be returned only if mount pages are enabled, the correct doktype (7) is set for page and there IS a mount_pid (which has a valid record that is not deleted...) |
array | bool | $pageRec | Optional page record for the page id. If not supplied it will be looked up by the system. Must contain at least uid,pid,doktype,mount_pid,mount_pid_ol |
array | $prevMountPids | Array accumulating formerly tested page ids for mount points. Used for recursivity brake. |
int | $firstPageUid | The first page id. |
Definition at line 887 of file PageRepository.php.
References $GLOBALS, and PageRepository\getDatabaseConnection().
Referenced by PageRepository\addMountPointParameterToPage().
getMovePlaceholder | ( | $table, | |
$uid, | |||
$fields = '*' |
|||
) |
Returns move placeholder of online (live) version
string | $table | Table name |
int | $uid | Record UID of online version |
string | $fields | Field list, default is * |
Definition at line 1423 of file PageRepository.php.
References $GLOBALS, PageRepository\deleteClause(), PageRepository\getDatabaseConnection(), and VersionState\MOVE_PLACEHOLDER.
Referenced by PageRepository\fixVersioningPid().
getMultipleGroupsWhereClause | ( | $field, | |
$table | |||
) |
Creating where-clause for checking group access to elements in enableFields function
string | $field | Field with group list |
string | $table | Table name |
Definition at line 1207 of file PageRepository.php.
References PageRepository\getDatabaseConnection(), PageRepository\getTypoScriptFrontendController(), and GeneralUtility\intExplode().
Referenced by PageRepository\enableFields().
getPage | ( | $uid, | |
$disableGroupAccessCheck = false |
|||
) |
Returns the $row for the page with uid = $uid (observing ->where_hid_del) Any pages_language_overlay will be applied before the result is returned. If no page is found an empty array is returned.
int | $uid | The page id to look up. |
bool | $disableGroupAccessCheck | If set, the check for group access is disabled. VERY rarely used |
\UnexpectedValueException |
Definition at line 224 of file PageRepository.php.
References $GLOBALS, PageRepository\$where_groupAccess, PageRepository\getDatabaseConnection(), PageRepository\getPageOverlay(), and GeneralUtility\getUserObj().
Referenced by PageRepository\addMountPointParameterToPage().
getPage_noCheck | ( | $uid | ) |
Return the $row for the page with uid = $uid WITHOUT checking for ->where_hid_del (start- and endtime or hidden). Only "deleted" is checked!
int | $uid | The page id to look up |
Definition at line 261 of file PageRepository.php.
References PageRepository\deleteClause(), PageRepository\getDatabaseConnection(), and PageRepository\getPageOverlay().
getPageIdFromAlias | ( | $alias | ) |
Returns a pagerow for the page with alias $alias
string | $alias | The alias to look up the page uid for. |
Definition at line 309 of file PageRepository.php.
References PageRepository\getDatabaseConnection().
getPageOverlay | ( | $pageInput, | |
$lUid = -1 |
|||
) |
Returns the relevant page overlay record fields
mixed | $pageInput | If $pageInput is an integer, it's the pid of the pageOverlay record and thus the page overlay record is returned. If $pageInput is an array, it's a page-record and based on this page record the language record is found and OVERLAYED before the page record is returned. |
int | $lUid | Language UID if you want to set an alternative value to $this->sys_language_uid which is default. Should be >=0 |
\UnexpectedValueException |
Definition at line 334 of file PageRepository.php.
References PageRepository\getPagesOverlay().
Referenced by PageRepository\getFirstWebPage(), PageRepository\getPage(), and PageRepository\getPage_noCheck().
getPagesOverlay | ( | array | $pagesInput, |
$lUid = -1 |
|||
) |
Returns the relevant page overlay record fields
array | $pagesInput | Array of integers or array of arrays. If each value is an integer, it's the pids of the pageOverlay records and thus the page overlay records are returned. If each value is an array, it's page-records and based on this page records the language records are found and OVERLAYED before the page records are returned. |
int | $lUid | Language UID if you want to set an alternative value to $this->sys_language_uid which is default. Should be >=0 |
\UnexpectedValueException |
Definition at line 352 of file PageRepository.php.
References $GLOBALS, PageRepository\$sys_language_uid, PageRepository\enableFields(), PageRepository\getDatabaseConnection(), GeneralUtility\getUserObj(), PageRepository\shouldFieldBeOverlaid(), and GeneralUtility\trimExplode().
Referenced by PageRepository\getPageOverlay(), and PageRepository\getSubpagesForPages().
getPathFromRootline | ( | $rl, | |
$len = 20 |
|||
) |
Creates a "path" string for the input root line array titles. Used for writing statistics.
array | $rl | A rootline array! |
int | $len | The max length of each title from the rootline. |
Definition at line 832 of file PageRepository.php.
References GeneralUtility\fixed_lgd_cs().
getRawRecord | ( | $table, | |
$uid, | |||
$fields = '*' , |
|||
$noWSOL = false |
|||
) |
Returns record no matter what - except if record is deleted
string | $table | The table name to search |
int | $uid | The uid to look up in $table |
string | $fields | The fields to select, default is "* |
bool | $noWSOL | If set, no version overlay is applied |
Definition at line 990 of file PageRepository.php.
References $GLOBALS, PageRepository\deleteClause(), and PageRepository\getDatabaseConnection().
Referenced by PageRepository\fixVersioningPid(), and PageRepository\movePlhOL().
getRecordOverlay | ( | $table, | |
$row, | |||
$sys_language_content, | |||
$OLmode = '' |
|||
) |
Creates language-overlay for records in general (where translation is found in records from the same table)
string | $table | Table name |
array | $row | Record to overlay. Must containt uid, pid and $table]['ctrl']['languageField'] |
int | $sys_language_content | Pointer to the sys_language uid for content on the site. |
string | $OLmode | Overlay mode. If "hideNonTranslated" then records without translation will not be returned un-translated but unset (and return value is FALSE) |
\UnexpectedValueException |
Definition at line 462 of file PageRepository.php.
References $GLOBALS, elseif, PageRepository\enableFields(), PageRepository\getDatabaseConnection(), GeneralUtility\getUserObj(), and PageRepository\shouldFieldBeOverlaid().
getRecordsByField | ( | $theTable, | |
$theField, | |||
$theValue, | |||
$whereClause = '' , |
|||
$groupBy = '' , |
|||
$orderBy = '' , |
|||
$limit = '' |
|||
) |
Selects records based on matching a field (ei. other than UID) with a value
string | $theTable | The table name to search, eg. "pages" or "tt_content @param string $theField The fieldname to match, eg. "uid" or "alias |
string | $theValue | The value that fieldname must match, eg. "123" or "frontpage |
string | $whereClause | Optional additional WHERE clauses put in the end of the query. DO NOT PUT IN GROUP BY, ORDER BY or LIMIT! |
string | $groupBy | Optional GROUP BY field(s). If none, supply blank string. |
string | $orderBy | Optional ORDER BY field(s). If none, supply blank string. |
string | $limit | Optional LIMIT value ([begin,]max). If none, supply blank string. |
Definition at line 1021 of file PageRepository.php.
References $GLOBALS, PageRepository\deleteClause(), and PageRepository\getDatabaseConnection().
getRootLine | ( | $uid, | |
$MP = '' , |
|||
$ignoreMPerrors = false |
|||
) |
Returns array with fields of the pages from here ($uid) and back to the root
NOTICE: This function only takes deleted pages into account! So hidden, starttime and endtime restricted pages are included no matter what.
Further: If any "recycler" page is found (doktype=255) then it will also block for the rootline)
If you want more fields in the rootline records than default such can be added by listing them in $GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields']
int | $uid | The page uid for which to seek back to the page tree root. |
string | $MP | Commalist of MountPoint parameters, eg. "1-2,3-4" etc. Normally this value comes from the GET var, MP |
bool | $ignoreMPerrors | If set, some errors related to Mount Points in root line are ignored. |
\Exception | |
\RuntimeException |
Definition at line 803 of file PageRepository.php.
References elseif, and GeneralUtility\makeInstance().
|
protected |
Internal method used by getMenu() and getMenuForPages() Returns an array with page rows for subpages with pid is in $pageIds or uid is in $pageIds, depending on $parentPages This is used for menus. If there are mount points in overlay mode the _MP_PARAM field is set to the corret MPvar.
If the $pageIds being input does in itself require MPvars to define a correct rootline these must be handled externally to this function.
int[] | $pageIds The page id (or array of page ids) for which to fetch subpages (PID) | |
string | $fields | List of fields to select. Default is "*" = all |
string | $sortField | The field to sort by. Default is "sorting @param string $additionalWhereClause Optional additional where clauses. Like "AND title like 'blabla'" for instance. |
bool | $checkShortcuts | Check if shortcuts exist, checks by default |
bool | $parentPages | Whether the uid list is meant as list of parent pages or the page itself TRUE means id list is checked agains pid field |
Definition at line 601 of file PageRepository.php.
References PageRepository\addMountPointParameterToPage(), PageRepository\checkValidShortcutOfPage(), PageRepository\getDatabaseConnection(), and PageRepository\getPagesOverlay().
Referenced by PageRepository\getMenu(), and PageRepository\getMenuForPages().
|
protected |
Definition at line 1644 of file PageRepository.php.
References $GLOBALS.
Referenced by PageRepository\enableFields(), and PageRepository\getMultipleGroupsWhereClause().
getWorkspaceVersionOfRecord | ( | $workspace, | |
$table, | |||
$uid, | |||
$fields = '*' , |
|||
$bypassEnableFieldsCheck = false |
|||
) |
Select the version of a record for a workspace
int | $workspace | Workspace ID |
string | $table | Table name to select from |
int | $uid | Record uid for which to find workspace version. |
string | $fields | Field list to select |
bool | $bypassEnableFieldsCheck | If TRUE, enablefields are not checked for. |
Definition at line 1452 of file PageRepository.php.
References $GLOBALS, PageRepository\deleteClause(), PageRepository\enableFields(), and PageRepository\getDatabaseConnection().
init | ( | $show_hidden | ) |
init() MUST be run directly after creating a new template-object This sets the internal variable $this->where_hid_del to the correct where clause for page records taking deleted/hidden/starttime/endtime/t3ver_state into account
bool | $show_hidden | If $show_hidden is TRUE, the hidden-field is ignored!! Normally this should be FALSE. Is used for previewing. |
Definition at line 180 of file PageRepository.php.
References $GLOBALS, PageRepository\enableFields(), and GeneralUtility\makeInstance().
movePlhOL | ( | $table, | |
& | $row | ||
) |
Checks if record is a move-placeholder (t3ver_state==VersionState::MOVE_PLACEHOLDER) and if so it will set $row to be the pointed-to live record (and return TRUE) Used from versionOL
string | $table | Table name |
array | $row | Row (passed by reference) - only online records... |
Definition at line 1387 of file PageRepository.php.
References $GLOBALS, Enumeration\cast(), PageRepository\enableFields(), PageRepository\getDatabaseConnection(), PageRepository\getRawRecord(), and VersionState\MOVE_PLACEHOLDER.
|
protected |
Purges computed properties from database rows, such as _ORIG_uid or _ORIG_pid for instance.
array | $row |
Definition at line 1587 of file PageRepository.php.
|
protected |
Determine if a field needs an overlay
string | $table | TCA tablename |
string | $field | TCA fieldname |
mixed | $value | Current value of the field |
Definition at line 1605 of file PageRepository.php.
References $GLOBALS, and elseif.
Referenced by PageRepository\getPagesOverlay(), and PageRepository\getRecordOverlay().
|
static |
Stores $data in the 'cache_hash' cache with the hash key, $hash and visual/symbolic identification, $ident
Can be used from your frontend plugins if you like. You can call it directly like PageRepository::storeHash()
string | $hash | 32 bit hash string (eg. a md5 hash of a serialized array identifying the data being stored) |
mixed | $data | The data to store |
string | $ident | Is just a textual identification in order to inform about the content! |
int | $lifetime | The lifetime for the cache entry in seconds |
Definition at line 1082 of file PageRepository.php.
References GeneralUtility\makeInstance().
Referenced by GeneralUtility\xml2array().
|
protected |
Definition at line 125 of file PageRepository.php.
|
protected |
Definition at line 110 of file PageRepository.php.
|
protected |
Definition at line 115 of file PageRepository.php.
|
protected |
Definition at line 120 of file PageRepository.php.
|
protected |
Definition at line 105 of file PageRepository.php.
|
protected |
Definition at line 140 of file PageRepository.php.
$error_getRootLine = '' |
Definition at line 93 of file PageRepository.php.
$error_getRootLine_failPid = 0 |
Definition at line 100 of file PageRepository.php.
$sys_language_uid = 0 |
Definition at line 60 of file PageRepository.php.
Referenced by PageRepository\getPagesOverlay().
|
protected |
Definition at line 130 of file PageRepository.php.
$urltypes = array('', 'http://', 'ftp://', 'mailto:', 'https://') |
Definition at line 39 of file PageRepository.php.
$versioningPreview = false |
Definition at line 69 of file PageRepository.php.
$versioningPreview_where_hid_del = '' |
Definition at line 74 of file PageRepository.php.
$versioningWorkspaceId = 0 |
Definition at line 81 of file PageRepository.php.
$where_groupAccess = '' |
Definition at line 55 of file PageRepository.php.
Referenced by PageRepository\getPage().
$where_hid_del = ' AND pages.deleted=0' |
Definition at line 48 of file PageRepository.php.
$workspaceCache = array() |
Definition at line 86 of file PageRepository.php.
const DOKTYPE_BE_USER_SECTION = 6 |
Definition at line 156 of file PageRepository.php.
Referenced by TypoScriptFrontendController\checkRootlineForIncludeSection(), TypoScriptFrontendController\getPageShortcut(), and TemplateService\initMPmap_create().
const DOKTYPE_DEFAULT = 1 |
Named constants for "magic numbers" of the field doktype
Definition at line 153 of file PageRepository.php.
Referenced by EditDocumentController\generatePreviewCode(), and CreatePagesWizardModuleFunctionController\getTypeSelectHtml().
const DOKTYPE_LINK = 3 |
Definition at line 154 of file PageRepository.php.
Referenced by AbstractMenuContentObject\link().
const DOKTYPE_MOUNTPOINT = 7 |
Definition at line 157 of file PageRepository.php.
Referenced by TypoScriptFrontendController\checkPageForMountpointRedirect(), and TypoScriptFrontendController\getPageAndRootline().
const DOKTYPE_RECYCLER = 255 |
Definition at line 160 of file PageRepository.php.
Referenced by ElementBrowserPageTreeView\__construct(), NewRecordController\getButtons(), EditDocumentController\getButtons(), RootlineUtility\getRecordArray(), and TemplateService\initMPmap_create().
const DOKTYPE_SHORTCUT = 4 |
Definition at line 155 of file PageRepository.php.
Referenced by TypoScriptFrontendController\checkPageForShortcutRedirect(), TypoScriptFrontendController\getPageAndRootline(), TypoScriptFrontendController\getPageShortcut(), and AbstractMenuContentObject\link().
const DOKTYPE_SPACER = 199 |
const DOKTYPE_SYSFOLDER = 254 |
Definition at line 159 of file PageRepository.php.
Referenced by NewRecordController\getButtons(), EditDocumentController\getButtons(), and PageLayoutController\getHeaderFlashMessagesForCurrentPid().
const SHORTCUT_MODE_FIRST_SUBPAGE = 1 |
Definition at line 166 of file PageRepository.php.
Referenced by TypoScriptFrontendController\getPageShortcut().
const SHORTCUT_MODE_NONE = 0 |
Named constants for "magic numbers" of the field shortcut_mode
Definition at line 165 of file PageRepository.php.
const SHORTCUT_MODE_PARENT_PAGE = 3 |
Definition at line 168 of file PageRepository.php.
Referenced by TypoScriptFrontendController\getPageShortcut(), and PageShortcutParentUpdate\getUpdatablePages().
const SHORTCUT_MODE_RANDOM_SUBPAGE = 2 |
Definition at line 167 of file PageRepository.php.
Referenced by TypoScriptFrontendController\getPageShortcut(), and AbstractMenuContentObject\link().