PHP Class Theme, Doptor

ファイルを表示 Open project: doptor/doptor Class Usage Examples

Public Properties

Property Type Description
$rules

Protected Properties

Property Type Description
$guarded
$images_path Path in the public folder to upload image and its corresponding thumbnail
$table
$thumbs_path

Public Methods

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

Get all the targets available for a theme
public static all_targets ( ) : array
return array

create() public static method

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

getPresenter() public method

Initiate the presenter class
public getPresenter ( )

settings() public method

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

themeLists() public static method

public static themeLists ( $target = null )

update() public method

When updating a theme, run the attributes through a validator first.
public update ( array $attributes = [], array $options = [] ) : void
$attributes array
$options array
return 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