PHP Class Newscoop\Entity\Repository\TemplateRepository

Inheritance: extends Doctrine\ORM\EntityRepository
Afficher le fichier Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Свойство Type Description
$basePath string

Méthodes publiques

Méthode Description
delete ( string $key ) : void Delete template
flush ( )
formatKey ( string $key ) : string Format key
getTemplate ( string $key ) : Template Get template for given key
isUsed ( string $key ) : boolean Test is used
save ( Template $template, array $values ) : void Save template
setBasePath ( string $path ) : Newscoop\Entity\Repository\TemplateRepository Set base path
updateKey ( string $old, string $new ) : void Update key

Method Details

delete() public méthode

Delete template
public delete ( string $key ) : void
$key string
Résultat void

flush() public méthode

public flush ( )

formatKey() public méthode

Format key
public formatKey ( string $key ) : string
$key string
Résultat string

getTemplate() public méthode

Get template for given key
public getTemplate ( string $key ) : Template
$key string
Résultat Newscoop\Entity\Template

isUsed() public méthode

Test is used
public isUsed ( string $key ) : boolean
$key string
Résultat boolean

save() public méthode

Save template
public save ( Template $template, array $values ) : void
$template Newscoop\Entity\Template
$values array
Résultat void

setBasePath() public méthode

Set base path
public setBasePath ( string $path ) : Newscoop\Entity\Repository\TemplateRepository
$path string
Résultat Newscoop\Entity\Repository\TemplateRepository

updateKey() public méthode

Update key
public updateKey ( string $old, string $new ) : void
$old string
$new string
Résultat void

Property Details

$basePath protected_oe property

protected string $basePath
Résultat string