PHP 클래스 Newscoop\Services\BlogService

파일 보기 프로젝트 열기: sourcefabric/newscoop

보호된 프로퍼티들

프로퍼티 타입 설명
$config array
$em
$getArticleActions array
$postArticleActions array

공개 메소드들

메소드 설명
__construct ( array $config, EntityManager $em )
createBlog ( string $title, Section $section ) : Article Create blog article
getBlogInfo ( User $user ) : Article | null Get blog info article
getSection ( User $user ) : Section | null Get blog section for given user
isAllowed ( Zend_Controller_Request_Abstract $request, User $user = null ) : boolean Test if blogger is allowed to perform action
isBlogAuthor ( Author $author, Article $blogInfo ) : boolean Test if author is blog author
isBlogger ( User $user ) : boolean Test if user is blogger
isUsersArticle ( Article $article, User $user ) : boolean Test if given article is from users blog

비공개 메소드들

메소드 설명
isRequestedArticleEditable ( Zend_Controller_Request_Abstract $request, User $user ) : boolean Test if requested article is editable by user

메소드 상세

__construct() 공개 메소드

public __construct ( array $config, EntityManager $em )
$config array
$em Doctrine\ORM\EntityManager

createBlog() 공개 메소드

Create blog article
public createBlog ( string $title, Section $section ) : Article
$title string
$section Section
리턴 Article

getBlogInfo() 공개 메소드

Get blog info article
public getBlogInfo ( User $user ) : Article | null
$user Newscoop\Entity\User
리턴 Article | null

getSection() 공개 메소드

Get blog section for given user
public getSection ( User $user ) : Section | null
$user Newscoop\Entity\User
리턴 Section | null

isAllowed() 공개 메소드

Test if blogger is allowed to perform action
public isAllowed ( Zend_Controller_Request_Abstract $request, User $user = null ) : boolean
$request Zend_Controller_Request_Abstract
$user Newscoop\Entity\User
리턴 boolean

isBlogAuthor() 공개 메소드

Test if author is blog author
public isBlogAuthor ( Author $author, Article $blogInfo ) : boolean
$author Author
$blogInfo Article
리턴 boolean

isBlogger() 공개 메소드

Test if user is blogger
public isBlogger ( User $user ) : boolean
$user Newscoop\Entity\User
리턴 boolean

isUsersArticle() 공개 메소드

Test if given article is from users blog
public isUsersArticle ( Article $article, User $user ) : boolean
$article Article
$user Newscoop\Entity\User
리턴 boolean

프로퍼티 상세

$config 보호되어 있는 프로퍼티

protected array $config
리턴 array

$em 보호되어 있는 프로퍼티

protected $em

$getArticleActions 보호되어 있는 프로퍼티

protected array $getArticleActions
리턴 array

$postArticleActions 보호되어 있는 프로퍼티

protected array $postArticleActions
리턴 array