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

상속: implements Frontend\Modules\Tags\Engine\TagsInterface
파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

공개 메소드들

메소드 설명
get ( string $url ) : array Fetch a question
getAllForCategory ( integer $categoryId, integer $limit = null, mixed $excludeIds = null ) : array Get all items in a category
getCategories ( ) : array Get all categories
getCategory ( string $url ) : array Get a category
getCategoryById ( integer $id ) : array Get a category by id
getFaqsForCategory ( integer $id ) : array Get the all questions for selected category
getForTags ( array $ids ) : array Fetch the list of tags for a list of items
getIdForTags ( Url $url ) : integer Get the id of an item by the full URL of the current page.
getMostRead ( integer $limit ) : array Get all items in a category
getRelated ( integer $id, integer $limit = 5 ) : array Get related items based on tags
increaseViewCount ( integer $id ) : array Increase the number of views for this item
saveFeedback ( array $feedback ) Saves the feedback
search ( array $ids ) : array Parse the search results for this module
updateFeedback ( integer $id, boolean $useful, mixed $previousFeedback = null ) : array Increase the number of views for this item

메소드 상세

get() 공개 정적인 메소드

Fetch a question
public static get ( string $url ) : array
$url string
리턴 array

getAllForCategory() 공개 정적인 메소드

Get all items in a category
public static getAllForCategory ( integer $categoryId, integer $limit = null, mixed $excludeIds = null ) : array
$categoryId integer
$limit integer
$excludeIds mixed
리턴 array

getCategories() 공개 정적인 메소드

Get all categories
public static getCategories ( ) : array
리턴 array

getCategory() 공개 정적인 메소드

Get a category
public static getCategory ( string $url ) : array
$url string
리턴 array

getCategoryById() 공개 정적인 메소드

Get a category by id
public static getCategoryById ( integer $id ) : array
$id integer
리턴 array

getFaqsForCategory() 공개 정적인 메소드

Get the all questions for selected category
public static getFaqsForCategory ( integer $id ) : array
$id integer
리턴 array

getForTags() 공개 정적인 메소드

Fetch the list of tags for a list of items
public static getForTags ( array $ids ) : array
$ids array
리턴 array

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
리턴 integer

getMostRead() 공개 정적인 메소드

Get all items in a category
public static getMostRead ( integer $limit ) : array
$limit integer
리턴 array

getRelated() 공개 정적인 메소드

Get related items based on tags
public static getRelated ( integer $id, integer $limit = 5 ) : array
$id integer
$limit integer
리턴 array

increaseViewCount() 공개 정적인 메소드

Increase the number of views for this item
public static increaseViewCount ( integer $id ) : array
$id integer
리턴 array

saveFeedback() 공개 정적인 메소드

Saves the feedback
public static saveFeedback ( array $feedback )
$feedback array

updateFeedback() 공개 정적인 메소드

Increase the number of views for this item
public static updateFeedback ( integer $id, boolean $useful, mixed $previousFeedback = null ) : array
$id integer
$useful boolean
$previousFeedback mixed
리턴 array