프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$blnDetailsLoaded | boolean | Details loaded | |
$strTable | string | Table name |
메소드 | 설명 | |
---|---|---|
find403ByPid ( integer $intPid, array $arrOptions = [] ) : |
Find an error 403 page by its parent ID | |
find404ByPid ( integer $intPid, array $arrOptions = [] ) : |
Find an error 404 page by its parent ID | |
findByAliases ( array $arrAliases, array $arrOptions = [] ) : |
Find pages matching a list of possible alias names | |
findFirstActiveByMemberGroups ( string $arrIds ) : |
Find the first active page by its member groups | |
findFirstPublishedByPid ( integer $intPid, array $arrOptions = [] ) : |
Find the first published page by its parent ID | |
findFirstPublishedRegularByPid ( integer $intPid, array $arrOptions = [] ) : |
Find the first published regular page by its parent ID | |
findFirstPublishedRootByHostAndLanguage ( string $strHost, mixed $varLanguage, array $arrOptions = [] ) : |
Find the first published root page by its host name and language | |
findParentsById ( integer $intId ) : |
Find the parent pages of a page | |
findPublishedById ( integer $intId, array $arrOptions = [] ) : |
Find a published page by its ID | |
findPublishedByIdOrAlias ( mixed $varId, array $arrOptions = [] ) : |
Find published pages by their ID or aliases | |
findPublishedByPid ( integer $intPid, array $arrOptions = [] ) : |
Find published pages by their PID | |
findPublishedFallbackByHostname ( string $strHost, array $arrOptions = [] ) : |
Find the language fallback page by hostname | |
findPublishedRegularWithoutGuestsByIds ( integer $arrIds, array $arrOptions = [] ) : |
Find all published regular pages by their IDs and exclude pages only visible for guests | |
findPublishedRegularWithoutGuestsByPid ( integer $intPid, array $arrOptions = [] ) : |
Find all published regular pages by their parent IDs and exclude pages only visible for guests | |
findPublishedRootPages ( array $arrOptions = [] ) : |
Finds the published root pages | |
findPublishedSubpagesWithoutGuestsByPid ( integer $intPid, boolean $blnShowHidden = false, boolean $blnIsSitemap = false ) : |
Find all published subpages by their parent ID and exclude pages only visible for guests | |
findWithDetails ( integer $intId ) : |
Find a page by its ID and return it with the inherited details | |
getAbsoluteUrl ( string $strParams = null ) : string | Generate an absolute URL depending on the current rewriteURL setting | |
getFrontendUrl ( string $strParams = null, string $strForceLang = null ) : string | Generate a front end URL | |
loadDetails ( ) : |
Get the details of a page including inherited parameters | |
onRegister ( |
Register the contao.dns-fallback alias when the model is attached to the registry | |
onUnregister ( |
Unregister the contao.dns-fallback alias when the model is detached from the registry |
메소드 | 설명 | |
---|---|---|
applyLegacyLogic ( string $strUrl, string $strParams ) : string | Modifies a URL from the URL generator. |
public static findByAliases ( array $arrAliases, array $arrOptions = [] ) : |
||
$arrAliases | array | An array of possible alias names |
$arrOptions | array | An optional options array |
리턴 | A collection of models or null if there are no pages |
public static findFirstActiveByMemberGroups ( string $arrIds ) : |
||
$arrIds | string | An array of member group IDs |
리턴 | The model or null if there is no matching member group |
public static findFirstPublishedRootByHostAndLanguage ( string $strHost, mixed $varLanguage, array $arrOptions = [] ) : |
||
$strHost | string | The host name |
$varLanguage | mixed | An ISO language code or an array of ISO language codes |
$arrOptions | array | An optional options array |
리턴 | The model or null if there is no matching root page |
public static findParentsById ( integer $intId ) : |
||
$intId | integer | The page's ID |
리턴 | A collection of models or null if there are no parent pages |
public static findPublishedByIdOrAlias ( mixed $varId, array $arrOptions = [] ) : |
||
$varId | mixed | The numeric ID or the alias name |
$arrOptions | array | An optional options array |
리턴 | A collection of models or null if there are no pages |
public static findPublishedByPid ( integer $intPid, array $arrOptions = [] ) : |
||
$intPid | integer | The parent ID |
$arrOptions | array | An optional options array |
리턴 | A collection of models or null if there are no pages |
public static findPublishedRegularWithoutGuestsByIds ( integer $arrIds, array $arrOptions = [] ) : |
||
$arrIds | integer | An array of page IDs |
$arrOptions | array | An optional options array |
리턴 | A collection of models or null if there are no pages |
public static findPublishedRegularWithoutGuestsByPid ( integer $intPid, array $arrOptions = [] ) : |
||
$intPid | integer | The parent page's ID |
$arrOptions | array | An optional options array |
리턴 | A collection of models or null if there are no pages |
public static findPublishedRootPages ( array $arrOptions = [] ) : |
||
$arrOptions | array | An optional options array |
리턴 | A collection of models or null if there are no parent pages |
public static findPublishedSubpagesWithoutGuestsByPid ( integer $intPid, boolean $blnShowHidden = false, boolean $blnIsSitemap = false ) : |
||
$intPid | integer | The parent page's ID |
$blnShowHidden | boolean | If true, hidden pages will be included |
$blnIsSitemap | boolean | If true, the sitemap settings apply |
리턴 | A collection of models or null if there are no pages |
public static findWithDetails ( integer $intId ) : |
||
$intId | integer | The page's ID |
리턴 | The model or null if there is no matching page |
public getAbsoluteUrl ( string $strParams = null ) : string | ||
$strParams | string | An optional string of URL parameters |
리턴 | string | An absolute URL that can be used in the front end |
public loadDetails ( ) : |
||
리턴 | The page model |
public onRegister ( |
||
$registry | The model registry |
public onUnregister ( |
||
$registry | The model registry |