PHP Class Newscoop\Service\Template

Afficher le fichier Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Свойство Type Description
$repository Newscoop\Entity\Repository\TemplateRepository
$storage Newscoop\Storage
$syncResServ Newscoop\Service\Implementation\SyncResourceServiceDoctrine Used for getting the proper id of a template
$theme Newscoop\Entity\Theme The theme that the files belong to

Méthodes publiques

Méthode Description
__construct ( Storage $storage, TemplateRepository $repository )
cacheTemplates ( $path )
copyItem ( string $src, string $dest ) : void Copy item
createFile ( string $name ) : void Create file
createFolder ( string $name ) : void Create folder
deleteItem ( string $key ) : void Delete item
fetchItem ( string $key ) : string Fetch item
fetchMetadata ( string $key ) : object Fetch item metadata
isWritable ( string $dest ) : boolean Test is writable
listItems ( string $path ) : Iterator Find items
listPaths ( string $path ) List paths in theme dir.
moveItem ( string $src, string $dest ) : void Move item
renameItem ( string $src, string $dest ) : void Rename item
replaceItem ( string $key, Zend_Form_Element_File $file ) : void Replace item
setTheme ( Theme $theme )
storeItem ( string $key, string $data ) : void Store item
storeMetadata ( string $key, array $metadata ) : void Store metadata

Method Details

__construct() public méthode

public __construct ( Storage $storage, TemplateRepository $repository )
$storage Newscoop\Storage
$repository Newscoop\Entity\Repository\TemplateRepository

cacheTemplates() public méthode

public cacheTemplates ( $path )

copyItem() public méthode

Copy item
public copyItem ( string $src, string $dest ) : void
$src string
$dest string
Résultat void

createFile() public méthode

Create file
public createFile ( string $name ) : void
$name string
Résultat void

createFolder() public méthode

Create folder
public createFolder ( string $name ) : void
$name string
Résultat void

deleteItem() public méthode

Delete item
public deleteItem ( string $key ) : void
$key string
Résultat void

fetchItem() public méthode

Fetch item
public fetchItem ( string $key ) : string
$key string
Résultat string

fetchMetadata() public méthode

Fetch item metadata
public fetchMetadata ( string $key ) : object
$key string
Résultat object

isWritable() public méthode

Test is writable
public isWritable ( string $dest ) : boolean
$dest string
Résultat boolean

listItems() public méthode

Find items
public listItems ( string $path ) : Iterator
$path string
Résultat Iterator

listPaths() public méthode

.
public listPaths ( string $path )
$path string

moveItem() public méthode

Move item
public moveItem ( string $src, string $dest ) : void
$src string
$dest string
Résultat void

renameItem() public méthode

Rename item
public renameItem ( string $src, string $dest ) : void
$src string
$dest string
Résultat void

replaceItem() public méthode

Replace item
public replaceItem ( string $key, Zend_Form_Element_File $file ) : void
$key string
$file Zend_Form_Element_File
Résultat void

setTheme() public méthode

public setTheme ( Theme $theme )
$theme Newscoop\Entity\Theme

storeItem() public méthode

Store item
public storeItem ( string $key, string $data ) : void
$key string
$data string
Résultat void

storeMetadata() public méthode

Store metadata
public storeMetadata ( string $key, array $metadata ) : void
$key string
$metadata array
Résultat void

Property Details

$repository protected_oe property

protected TemplateRepository,Newscoop\Entity\Repository $repository
Résultat Newscoop\Entity\Repository\TemplateRepository

$storage protected_oe property

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

$syncResServ protected_oe property

Used for getting the proper id of a template
protected Newscoop\Service\Implementation\SyncResourceServiceDoctrine $syncResServ
Résultat Newscoop\Service\Implementation\SyncResourceServiceDoctrine

$theme protected_oe property

The theme that the files belong to
protected Theme,Newscoop\Entity $theme
Résultat Newscoop\Entity\Theme