PHP 인터페이스 Frontend\Modules\Tags\Engine\TagsInterface

To use tags in your module simply implement this interface in your module's model class.
파일 보기 프로젝트 열기: forkcms/forkcms

공개 메소드들

메소드 설명
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.