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

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

공개 메소드들

메소드 설명
get ( string $url ) : array Get an item
getAll ( integer $limit = 10, integer $offset ) : array Get all items (at least a chunk)
getAllCategories ( ) : array Get all categories used
getAllComments ( integer $limit = 10, integer $offset ) : array Get all comments (at least a chunk)
getAllCount ( ) : integer Get the number of items
getAllForCategory ( string $categoryURL, integer $limit = 10, integer $offset ) : array Get all items in a category (at least a chunk)
getAllForCategoryCount ( string $url ) : integer Get the number of items in a given category
getAllForDateRange ( integer $start, integer $end, integer $limit = 10, integer $offset ) : array Get all items between a start and end-date
getAllForDateRangeCount ( integer $start, integer $end ) : integer Get the number of items in a date range
getArchiveNumbers ( ) : array Get the statistics for the archive
getComments ( integer $id ) : array Get the comments for an item
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.
getNavigation ( integer $id ) : array Get an array with the previous and the next post
getRecentComments ( integer $limit = 5 ) : array Get recent comments
getRelated ( integer $id, integer $limit = 5 ) : array Get related items based on tags
getRevision ( string $url, integer $revision ) : array Get a revision for an item
insertComment ( array $comment ) : integer Inserts a new comment
isModerated ( string $author, string $email ) : boolean Get moderation status for an author
notifyAdmin ( array $comment ) Notify the admin
search ( array $ids ) : array Parse the search results for this module

메소드 상세

get() 공개 정적인 메소드

Get an item
public static get ( string $url ) : array
$url string The URL for the item.
리턴 array

getAll() 공개 정적인 메소드

Get all items (at least a chunk)
public static getAll ( integer $limit = 10, integer $offset ) : array
$limit integer The number of items to get.
$offset integer The offset.
리턴 array

getAllCategories() 공개 정적인 메소드

Get all categories used
public static getAllCategories ( ) : array
리턴 array

getAllComments() 공개 정적인 메소드

Get all comments (at least a chunk)
public static getAllComments ( integer $limit = 10, integer $offset ) : array
$limit integer The number of items to get.
$offset integer The offset.
리턴 array

getAllCount() 공개 정적인 메소드

Get the number of items
public static getAllCount ( ) : integer
리턴 integer

getAllForCategory() 공개 정적인 메소드

Get all items in a category (at least a chunk)
public static getAllForCategory ( string $categoryURL, integer $limit = 10, integer $offset ) : array
$categoryURL string The URL of the category to retrieve the posts for.
$limit integer The number of items to get.
$offset integer The offset.
리턴 array

getAllForCategoryCount() 공개 정적인 메소드

Get the number of items in a given category
public static getAllForCategoryCount ( string $url ) : integer
$url string The URL for the category.
리턴 integer

getAllForDateRange() 공개 정적인 메소드

Get all items between a start and end-date
public static getAllForDateRange ( integer $start, integer $end, integer $limit = 10, integer $offset ) : array
$start integer The start date as a UNIX-timestamp.
$end integer The end date as a UNIX-timestamp.
$limit integer The number of items to get.
$offset integer The offset.
리턴 array

getAllForDateRangeCount() 공개 정적인 메소드

Get the number of items in a date range
public static getAllForDateRangeCount ( integer $start, integer $end ) : integer
$start integer The start date as a UNIX-timestamp.
$end integer The end date as a UNIX-timestamp.
리턴 integer

getArchiveNumbers() 공개 정적인 메소드

Get the statistics for the archive
public static getArchiveNumbers ( ) : array
리턴 array

getComments() 공개 정적인 메소드

Get the comments for an item
public static getComments ( integer $id ) : array
$id integer The ID of the item to get the comments for.
리턴 array

getForTags() 공개 정적인 메소드

Fetch the list of tags for a list of items
public static getForTags ( array $ids ) : array
$ids array The ids of the items to grab.
리턴 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 The current URL.
리턴 integer

getNavigation() 공개 정적인 메소드

Get an array with the previous and the next post
public static getNavigation ( integer $id ) : array
$id integer The id of the current item.
리턴 array

getRecentComments() 공개 정적인 메소드

Get recent comments
public static getRecentComments ( integer $limit = 5 ) : array
$limit integer The number of comments to get.
리턴 array

getRelated() 공개 정적인 메소드

Get related items based on tags
public static getRelated ( integer $id, integer $limit = 5 ) : array
$id integer The id of the item to get related items for.
$limit integer The maximum number of items to retrieve.
리턴 array

getRevision() 공개 정적인 메소드

Get a revision for an item
public static getRevision ( string $url, integer $revision ) : array
$url string The URL for the item to get.
$revision integer The revisionID.
리턴 array

insertComment() 공개 정적인 메소드

Inserts a new comment
public static insertComment ( array $comment ) : integer
$comment array The comment to add.
리턴 integer

isModerated() 공개 정적인 메소드

Get moderation status for an author
public static isModerated ( string $author, string $email ) : boolean
$author string The name for the author.
$email string The email address for the author.
리턴 boolean

notifyAdmin() 공개 정적인 메소드

Notify the admin
public static notifyAdmin ( array $comment )
$comment array The comment that was submitted.