Property | Type | Description | |
---|---|---|---|
$article | Article object | ||
$articleMetadata | array | Article metadata. | |
$em | Entity Manager |
Method | Description | |
---|---|---|
__construct ( |
Construct Article Service | |
articleResolver ( |
Resolve article from provided data | |
createArticle ( string $articleType, integer $language, |
Create new article | |
getArticle ( ) : |
Get Article object | |
getArticleMetadata ( ) : array | Get article metadata | |
setArticle ( |
Set Article object | |
updateArticle ( |
Update article |
Method | Description | |
---|---|---|
checkForArticleConflicts ( string $articleTitle, integer | Newscoop\Entity\Publication $publication, integer | Newscoop\Entity\Issue $issue, integer | Newscoop\Entity\Section $section ) : boolean | Newscoop\Exception\ResourcesConflictException | Check if combination of article name, publication, issue and section is unique | |
updateArticleMeta ( |
Update Article static properties |
public __construct ( |
||
$em | Entity Manager |
public articleResolver ( |
||
$request | Request object | |
return | $article Article entity object |
public createArticle ( string $articleType, integer $language, |
||
$articleType | string | |
$language | integer | |
$user | ||
$publication | integer | |
$attributes | array | |
$issue | integer | |
$section | integer | |
return |
public getArticle ( ) : |
||
return | Article entity object |
public getArticleMetadata ( ) : array | ||
return | array | article metadata |
public setArticle ( |
||
$article | Article entity object |
public updateArticle ( |
||
$article | ||
$attributes | array | |
return |
protected Article,Newscoop\Entity $article | ||
return |
protected array $articleMetadata | ||
return | array |