PHP 클래스 Newscoop\Image\UpdateStorageService

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

보호된 프로퍼티들

프로퍼티 타입 설명
$em Doctrine\ORM\EntityManager
$storage Newscoop\Storage\StorageService

공개 메소드들

메소드 설명
__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

비공개 메소드들

메소드 설명
getImageRepository ( ) : Newscoop\Entity\Repository\ImageRepository Get image repository
updateImage ( LocalImage $image ) : void Update single image storage

메소드 상세

__construct() 공개 메소드

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

isDeletable() 공개 메소드

Test if given image can be deleted
public isDeletable ( string $imagePath ) : boolean
$imagePath string
리턴 boolean

updateStorage() 공개 메소드

Update storage for given number of images
public updateStorage ( integer $batchSize = 100 ) : void
$batchSize integer
리턴 void

프로퍼티 상세

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

protected EntityManager,Doctrine\ORM $em
리턴 Doctrine\ORM\EntityManager

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

protected StorageService,Newscoop\Storage $storage
리턴 Newscoop\Storage\StorageService