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

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

공개 메소드들

메소드 설명
delete ( integer $id ) Delete a question
deleteCategory ( integer $id ) Delete a specific category
deleteCategoryAllowed ( integer $id ) : boolean Is the deletion of a category allowed?
deleteFeedback ( integer $itemId ) Delete the feedback
exists ( integer $id ) : boolean Does the question exist?
existsCategory ( integer $id ) : boolean Does the category exist?
get ( integer $id ) : array Fetch a question
getAllFeedback ( integer $limit = 5 ) : array Fetches all the feedback that is available
getAllFeedbackForQuestion ( integer $id ) : array Fetches all the feedback for a question
getByTag ( integer $tagId ) : array Get all items by a given tag id
getCategories ( boolean $includeCount = false ) : array Get all the categories
getCategory ( integer $id ) : array Fetch a category
getCategoryCount ( ) : integer Fetch the category count
getFeedback ( integer $id ) : array Fetch the feedback item
getMaximumCategorySequence ( ) : integer Get the maximum sequence for a category
getMaximumSequence ( integer $id ) : integer Get the max sequence id for a category
getURL ( string $url, integer $id = null ) : string Retrieve the unique URL for an item
getURLForCategory ( string $url, integer $id = null ) : string Retrieve the unique URL for a category
insert ( array $item ) : integer Insert a question in the database
insertCategory ( array $item, array $meta = null ) : integer Insert a category in the database
update ( array $item ) Update a certain question
updateCategory ( array $item ) Update a certain category

메소드 상세

delete() 공개 정적인 메소드

Delete a question
public static delete ( integer $id )
$id integer

deleteCategory() 공개 정적인 메소드

Delete a specific category
public static deleteCategory ( integer $id )
$id integer

deleteCategoryAllowed() 공개 정적인 메소드

Is the deletion of a category allowed?
public static deleteCategoryAllowed ( integer $id ) : boolean
$id integer
리턴 boolean

deleteFeedback() 공개 정적인 메소드

Delete the feedback
public static deleteFeedback ( integer $itemId )
$itemId integer

exists() 공개 정적인 메소드

Does the question exist?
public static exists ( integer $id ) : boolean
$id integer
리턴 boolean

existsCategory() 공개 정적인 메소드

Does the category exist?
public static existsCategory ( integer $id ) : boolean
$id integer
리턴 boolean

get() 공개 정적인 메소드

Fetch a question
public static get ( integer $id ) : array
$id integer
리턴 array

getAllFeedback() 공개 정적인 메소드

Fetches all the feedback that is available
public static getAllFeedback ( integer $limit = 5 ) : array
$limit integer
리턴 array

getAllFeedbackForQuestion() 공개 정적인 메소드

Fetches all the feedback for a question
public static getAllFeedbackForQuestion ( integer $id ) : array
$id integer The question id.
리턴 array

getByTag() 공개 정적인 메소드

Get all items by a given tag id
public static getByTag ( integer $tagId ) : array
$tagId integer
리턴 array

getCategories() 공개 정적인 메소드

Get all the categories
public static getCategories ( boolean $includeCount = false ) : array
$includeCount boolean
리턴 array

getCategory() 공개 정적인 메소드

Fetch a category
public static getCategory ( integer $id ) : array
$id integer
리턴 array

getCategoryCount() 공개 정적인 메소드

Fetch the category count
public static getCategoryCount ( ) : integer
리턴 integer

getFeedback() 공개 정적인 메소드

Fetch the feedback item
public static getFeedback ( integer $id ) : array
$id integer
리턴 array

getMaximumCategorySequence() 공개 정적인 메소드

Get the maximum sequence for a category
public static getMaximumCategorySequence ( ) : integer
리턴 integer

getMaximumSequence() 공개 정적인 메소드

Get the max sequence id for a category
public static getMaximumSequence ( integer $id ) : integer
$id integer The category id.
리턴 integer

getURL() 공개 정적인 메소드

Retrieve the unique URL for an item
public static getURL ( string $url, integer $id = null ) : string
$url string
$id integer The id of the item to ignore.
리턴 string

getURLForCategory() 공개 정적인 메소드

Retrieve the unique URL for a category
public static getURLForCategory ( string $url, integer $id = null ) : string
$url string
$id integer The id of the category to ignore.
리턴 string

insert() 공개 정적인 메소드

Insert a question in the database
public static insert ( array $item ) : integer
$item array
리턴 integer

insertCategory() 공개 정적인 메소드

Insert a category in the database
public static insertCategory ( array $item, array $meta = null ) : integer
$item array
$meta array The metadata for the category to insert.
리턴 integer

update() 공개 정적인 메소드

Update a certain question
public static update ( array $item )
$item array

updateCategory() 공개 정적인 메소드

Update a certain category
public static updateCategory ( array $item )
$item array