PHP Интерфейс Frontend\Modules\Tags\Engine\TagsInterface

To use tags in your module simply implement this interface in your module's model class.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

getForTags() публичный статический Метод

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.
Результат array Records with at least the keys 'title' and 'full_url'.

getIdForTags() публичный статический Метод

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.
Результат integer The id that corresponds with the given full URL.