PHP Interface Frontend\Modules\Tags\Engine\TagsInterface

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

Public Methods

Method 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 method

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.
return array Records with at least the keys 'title' and 'full_url'.

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