PHP Class Components\ContactManager\Models\ContactCategory

Inheritance: extends Eloquen\Eloquent, implements Robbo\Presenter\PresentableInterface
Exibir arquivo Open project: doptor/doptor Class Usage Examples

Public Properties

Property Type Description
$rules

Protected Properties

Property Type Description
$guarded
$table

Public Methods

Method Description
all_status ( ) : array Get all the statuses available for a contact
contacts ( ) Relation with contacts table
create ( array $attributes = [] ) : void When creating a contact, run the attributes through a validator first.
getPresenter ( ) Initiate the presenter class
scopePublished ( $query ) : query Get all the published contacts that are within the publish date range
setAliasAttribute ( string $alias ) Automatically set the alias, if one is not provided
update ( array $attributes = [], array $options = [] ) : void When updating a contact, run the attributes through a validator first.

Method Details

all_status() public static method

Get all the statuses available for a contact
public static all_status ( ) : array
return array

contacts() public method

Relation with contacts table
public contacts ( )

create() public static method

When creating a contact, 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 ( )

scopePublished() public method

Get all the published contacts that are within the publish date range
public scopePublished ( $query ) : query
return query

setAliasAttribute() public method

Automatically set the alias, if one is not provided
public setAliasAttribute ( string $alias )
$alias string

update() public method

When updating a contact, 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

$rules public_oe static_oe property

public static $rules

$table protected_oe property

protected $table