PHP Class Theme, Doptor

Afficher le fichier Open project: doptor/doptor Class Usage Examples

Méthodes publiques

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

Protected Properties

Свойство Type Description
$guarded
$images_path Path in the public folder to upload image and its corresponding thumbnail
$table
$thumbs_path

Méthodes publiques

Méthode Description
all_targets ( ) : array Get all the targets available for a theme
create ( array $attributes = [] ) : void When creating a theme, run the attributes through a validator first.
getPresenter ( ) Initiate the presenter class
settings ( ) Relation with the categories table A post can have many categories
themeLists ( $target = null )
update ( array $attributes = [], array $options = [] ) : void When updating a theme, run the attributes through a validator first.

Method Details

all_targets() public static méthode

Get all the targets available for a theme
public static all_targets ( ) : array
Résultat array

create() public static méthode

When creating a theme, run the attributes through a validator first.
public static create ( array $attributes = [] ) : void
$attributes array
Résultat void

getPresenter() public méthode

Initiate the presenter class
public getPresenter ( )

settings() public méthode

Relation with the categories table A post can have many categories
public settings ( )

themeLists() public static méthode

public static themeLists ( $target = null )

update() public méthode

When updating a theme, run the attributes through a validator first.
public update ( array $attributes = [], array $options = [] ) : void
$attributes array
$options array
Résultat void

Property Details

$guarded protected_oe property

protected $guarded

$images_path protected_oe property

Path in the public folder to upload image and its corresponding thumbnail
protected $images_path

$rules public_oe static_oe property

public static $rules

$table protected_oe property

protected $table

$thumbs_path protected_oe property

protected $thumbs_path