PHP Class Components\Posts\Services\PostsService

Show file Open project: doptor/doptor

Public Methods

Method Description
getCategories ( string $type = 'post' ) : Object Get recent categories
getFeaturedPost ( integer $category_id ) : Object Get recent featured post for a category
getRecent ( string $type = 'post', integer $qty = 10 ) : Object Get recent posts

Method Details

getCategories() public method

Get recent categories
public getCategories ( string $type = 'post' ) : Object
$type string
return Object

getFeaturedPost() public method

Get recent featured post for a category
public getFeaturedPost ( integer $category_id ) : Object
$category_id integer [description]
return Object

getRecent() public method

Get recent posts
public getRecent ( string $type = 'post', integer $qty = 10 ) : Object
$type string [description]
$qty integer [description]
return Object