PHP Class Newscoop\Image\UpdateStorageService

Afficher le fichier Open project: sourcefabric/newscoop

Protected Properties

Свойство Type Description
$em Doctrine\ORM\EntityManager
$storage Newscoop\Storage\StorageService

Méthodes publiques

Méthode Description
__construct ( EntityManager $em, StorageService $storage )
isDeletable ( string $imagePath ) : boolean Test if given image can be deleted
updateStorage ( integer $batchSize = 100 ) : void Update storage for given number of images

Private Methods

Méthode Description
getImageRepository ( ) : Newscoop\Entity\Repository\ImageRepository Get image repository
updateImage ( LocalImage $image ) : void Update single image storage

Method Details

__construct() public méthode

public __construct ( EntityManager $em, StorageService $storage )
$em Doctrine\ORM\EntityManager
$storage Newscoop\Storage\StorageService

isDeletable() public méthode

Test if given image can be deleted
public isDeletable ( string $imagePath ) : boolean
$imagePath string
Résultat boolean

updateStorage() public méthode

Update storage for given number of images
public updateStorage ( integer $batchSize = 100 ) : void
$batchSize integer
Résultat void

Property Details

$em protected_oe property

protected EntityManager,Doctrine\ORM $em
Résultat Doctrine\ORM\EntityManager

$storage protected_oe property

protected StorageService,Newscoop\Storage $storage
Résultat Newscoop\Storage\StorageService