PHP Class Newscoop\Entity\Repository\TemplateRepository

Inheritance: extends Doctrine\ORM\EntityRepository
Show file Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Property Type Description
$basePath string

Public Methods

Method 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 method

Delete template
public delete ( string $key ) : void
$key string
return void

flush() public method

public flush ( )

formatKey() public method

Format key
public formatKey ( string $key ) : string
$key string
return string

getTemplate() public method

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

isUsed() public method

Test is used
public isUsed ( string $key ) : boolean
$key string
return boolean

save() public method

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

setBasePath() public method

Set base path
public setBasePath ( string $path ) : Newscoop\Entity\Repository\TemplateRepository
$path string
return Newscoop\Entity\Repository\TemplateRepository

updateKey() public method

Update key
public updateKey ( string $old, string $new ) : void
$old string
$new string
return void

Property Details

$basePath protected property

protected string $basePath
return string