Property | Type | Description | |
---|---|---|---|
$config | array | ||
$em | |||
$getArticleActions | array | ||
$postArticleActions | array |
Method | Description | |
---|---|---|
__construct ( array $config, |
||
createBlog ( string $title, Section $section ) : Article | Create blog article | |
getBlogInfo ( |
Get blog info article | |
getSection ( |
Get blog section for given user | |
isAllowed ( Zend_Controller_Request_Abstract $request, |
Test if blogger is allowed to perform action | |
isBlogAuthor ( Author $author, Article $blogInfo ) : boolean | Test if author is blog author | |
isBlogger ( |
Test if user is blogger | |
isUsersArticle ( Article $article, |
Test if given article is from users blog |
Method | Description | |
---|---|---|
isRequestedArticleEditable ( Zend_Controller_Request_Abstract $request, |
Test if requested article is editable by user |
public __construct ( array $config, |
||
$config | array | |
$em |
public createBlog ( string $title, Section $section ) : Article | ||
$title | string | |
$section | Section | |
return | Article |
public getBlogInfo ( |
||
$user | ||
return | Article | null |
public getSection ( |
||
$user | ||
return | Section | null |
public isBlogAuthor ( Author $author, Article $blogInfo ) : boolean | ||
$author | Author | |
$blogInfo | Article | |
return | boolean |
public isUsersArticle ( Article $article, |
||
$article | Article | |
$user | ||
return | boolean |