PHP Class Owl\Repositories\Fluent\TemplateRepository

Inheritance: extends AbstractFluent, implements Owl\Repositories\TemplateRepositoryInterface
Show file Open project: owl/owl

Protected Properties

Property Type Description
$table

Public Methods

Method Description
create ( $template ) : stdClass Create a new template.
destroy ( $template_id ) : boolean Delete a tempalte data.
getAll ( ) : stdClass Get all template data.
getById ( $template_id ) : stdClass Get template data by id.
getTableName ( ) : string Get a table name.
updateTemplate ( $template_id, $template ) : stdClass Update a template data.

Method Details

create() public method

Create a new template.
public create ( $template ) : stdClass
$template object display_title, title, tags, body
return stdClass

destroy() public method

Delete a tempalte data.
public destroy ( $template_id ) : boolean
$template_id int template_id
return boolean

getAll() public method

Get all template data.
public getAll ( ) : stdClass
return stdClass

getById() public method

Get template data by id.
public getById ( $template_id ) : stdClass
$template_id int template_id
return stdClass

getTableName() public method

Get a table name.
public getTableName ( ) : string
return string

updateTemplate() public method

Update a template data.
public updateTemplate ( $template_id, $template ) : stdClass
$template_id int
$template object display_title, title, tags, body
return stdClass

Property Details

$table protected property

protected $table