Property | Type | Description | |
---|---|---|---|
$imageService | Newscoop\Image\ImageService | ||
$orm | Doctrine\ORM\EntityManager | ||
$repository | Doctrine\ORM\EntityRepository |
Method | Description | |
---|---|---|
__construct ( |
||
addItem ( |
Add package item | |
delete ( integer $id ) : void | Delete package | |
find ( integer $id ) : Newscoop\Package\Package | Find package | |
findAvailableForArticle ( integer $articleNumber ) : array | Find packages not attached to article | |
findBy ( array $criteria, array $orderBy = [], integer $limit = 25, integer $offset ) : array | Find package by a set of criteria | |
findByArticle ( integer $articleNumber ) : array | Find packages by article | |
findBySlug ( string $slug ) : Newscoop\Package\Package | Find package by slug | |
findItem ( integer $id ) : Newscoop\Package\Item | Find item by given id | |
getCountBy ( array $criteria = [] ) : integer | Get count by a set of criteria | |
removeFromArticle ( |
Remove package from article | |
removeItem ( |
Remove item from package | |
save ( array $values, |
Save package | |
saveArticle ( array $articleArray ) : void | Save article packages | |
saveItem ( array $values, |
Save item | |
setOrder ( |
Set order of items for given package |
Method | Description | |
---|---|---|
getArticle ( integer $articleNumber ) : Newscoop\Package\Article | Get article entity |
public __construct ( |
||
$orm | ||
$imageService |
public findAvailableForArticle ( integer $articleNumber ) : array | ||
$articleNumber | integer | |
return | array |
public findByArticle ( integer $articleNumber ) : array | ||
$articleNumber | integer | |
return | array |
public findBySlug ( string $slug ) : Newscoop\Package\Package | ||
$slug | string | |
return | Newscoop\Package\Package |
public getCountBy ( array $criteria = [] ) : integer | ||
$criteria | array | |
return | integer |
public removeFromArticle ( |
||
$package | ||
$articleNumber | integer | |
return | void |
public removeItem ( |
||
$package | ||
$itemId | integer | |
return | void |
public saveArticle ( array $articleArray ) : void | ||
$articleArray | array | |
return | void |
protected Newscoop\Image\ImageService $imageService | ||
return | Newscoop\Image\ImageService |
protected Doctrine\ORM\EntityManager $orm | ||
return | Doctrine\ORM\EntityManager |