PHP Interface Frontend\Modules\Tags\Engine\TagsInterface

To use tags in your module simply implement this interface in your module's model class.
Afficher le fichier Open project: forkcms/forkcms

Méthodes publiques

Méthode Description
getForTags ( array $ids ) : array Get at least the title and full url for items with the given ids.
getIdForTags ( Url $url ) : integer Get the id of an item by the full URL of the current page.

Method Details

getForTags() public static méthode

Get at least the title and full url for items with the given ids.
public static getForTags ( array $ids ) : array
$ids array The ids for which to get the corresponding records.
Résultat array Records with at least the keys 'title' and 'full_url'.

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 The id that corresponds with the given full URL.