PHP 클래스 Frontend\Modules\Tags\Engine\Model

파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

공개 메소드들

메소드 설명
callFromInterface ( string $module, string $class, string $method, mixed $parameter = null ) : mixed Calls a method that has to be implemented though the tags interface
get ( string $url, string $language = null ) : array Get the tag for a given URL
getAll ( ) : array Fetch the list of all tags, ordered by their occurrence
getForItem ( string $module, integer $otherId ) : array Get tags for an item
getForMultipleItems ( string $module, array $otherIds ) : array Get tags for multiple items.
getIdByURL ( string $url ) : integer Get the tag-id for a given URL
getModulesForTag ( integer $id ) : array Get the modules that used a tag.
getName ( integer $id ) : string Fetch a specific tag name
getRelatedItemsByTags ( integer $id, integer $module, integer $otherModule, integer $limit = 5 ) : array Get all related items

메소드 상세

callFromInterface() 공개 정적인 메소드

Calls a method that has to be implemented though the tags interface
public static callFromInterface ( string $module, string $class, string $method, mixed $parameter = null ) : mixed
$module string The module wherein to search.
$class string The class that should contain the method.
$method string The method to call.
$parameter mixed The parameters to pass.
리턴 mixed

get() 공개 정적인 메소드

Get the tag for a given URL
public static get ( string $url, string $language = null ) : array
$url string The URL to get the tag for.
$language string
리턴 array

getAll() 공개 정적인 메소드

Fetch the list of all tags, ordered by their occurrence
public static getAll ( ) : array
리턴 array

getForItem() 공개 정적인 메소드

Get tags for an item
public static getForItem ( string $module, integer $otherId ) : array
$module string The module wherein the otherId occurs.
$otherId integer The id of the item.
리턴 array

getForMultipleItems() 공개 정적인 메소드

Get tags for multiple items.
public static getForMultipleItems ( string $module, array $otherIds ) : array
$module string The module wherefore you want to retrieve the tags.
$otherIds array The ids for the items.
리턴 array

getIdByURL() 공개 정적인 메소드

Get the tag-id for a given URL
public static getIdByURL ( string $url ) : integer
$url string The URL to get the id for.
리턴 integer

getModulesForTag() 공개 정적인 메소드

Get the modules that used a tag.
public static getModulesForTag ( integer $id ) : array
$id integer The id of the tag.
리턴 array

getName() 공개 정적인 메소드

Fetch a specific tag name
public static getName ( integer $id ) : string
$id integer The id of the tag to grab the name for.
리턴 string

getRelatedItemsByTags() 공개 정적인 메소드

Get all related items
public static getRelatedItemsByTags ( integer $id, integer $module, integer $otherModule, integer $limit = 5 ) : array
$id integer The id of the item in the source-module.
$module integer The source module.
$otherModule integer The module wherein the related items should appear.
$limit integer The maximum of related items to grab.
리턴 array