PHP Class Frontend\Modules\Pages\Engine\Model

Inheritance: implements Frontend\Modules\Tags\Engine\TagsInterface
Datei anzeigen Open project: forkcms/forkcms Class Usage Examples

Public Methods

Method Description
getForTags ( array $ids ) : array Fetch a list of items for a list of ids
getIdForTags ( Url $url ) : integer Get the id of an item by the full URL of the current page.
getSubpages ( integer $id ) : array Fetch a list of subpages of a page.
search ( array $ids ) : array Parse the search results for this module

Method Details

getForTags() public static method

Fetch a list of items for a list of ids
public static getForTags ( array $ids ) : array
$ids array The ids of the items to grab.
return array

getIdForTags() public static method

Selects the proper part of the full URL to get the item's id from the database.
public static getIdForTags ( Url $url ) : integer
$url Frontend\Core\Engine\Url The current URL.
return integer

getSubpages() public static method

Fetch a list of subpages of a page.
public static getSubpages ( integer $id ) : array
$id integer The id of the item to grab the subpages for.
return array