PHP Class Owl\Services\TemplateService

Inheritance: extends Service
Afficher le fichier Open project: owl/owl

Protected Properties

Свойство Type Description
$templateRepo

Méthodes publiques

Méthode Description
__construct ( Owl\Repositories\TemplateRepositoryInterface $templateRepo )
create ( $template ) : Illuminate\Database\Eloquent\Model Create a new template.
delete ( $template_id ) : boolean Delete a tempalte data.
getAll ( ) : Illuminate\Database\Eloquent\Collection Get all template data.
getById ( $template_id ) : Illuminate\Database\Eloquent\Collection Get template data by id.
update ( $template_id, $template ) : Illuminate\Database\Eloquent\Model Update a template data.

Method Details

__construct() public méthode

public __construct ( Owl\Repositories\TemplateRepositoryInterface $templateRepo )
$templateRepo Owl\Repositories\TemplateRepositoryInterface

create() public méthode

Create a new template.
public create ( $template ) : Illuminate\Database\Eloquent\Model
$template object display_title, title, tags, body
Résultat Illuminate\Database\Eloquent\Model

delete() public méthode

Delete a tempalte data.
public delete ( $template_id ) : boolean
$template_id int template_id
Résultat boolean

getAll() public méthode

Get all template data.
public getAll ( ) : Illuminate\Database\Eloquent\Collection
Résultat Illuminate\Database\Eloquent\Collection | Illuminate\Database\Eloquent\Builder

getById() public méthode

Get template data by id.
public getById ( $template_id ) : Illuminate\Database\Eloquent\Collection
$template_id int template_id
Résultat Illuminate\Database\Eloquent\Collection | Illuminate\Database\Eloquent\Builder

update() public méthode

Update a template data.
public update ( $template_id, $template ) : Illuminate\Database\Eloquent\Model
$template_id int
$template object display_title, title, tags, body
Résultat Illuminate\Database\Eloquent\Model

Property Details

$templateRepo protected_oe property

protected $templateRepo