PHP Class Frontend\Modules\Pages\Engine\Model

Inheritance: implements Frontend\Modules\Tags\Engine\TagsInterface
Afficher le fichier Open project: forkcms/forkcms Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat array

getIdForTags() public static méthode

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.
Résultat integer

getSubpages() public static méthode

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.
Résultat array