PHP Class Components\ContactManager\Models\ContactCategory

Inheritance: extends Eloquen\Eloquent, implements Robbo\Presenter\PresentableInterface
Afficher le fichier Open project: doptor/doptor Class Usage Examples

Méthodes publiques

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

Protected Properties

Свойство Type Description
$guarded
$table

Méthodes publiques

Méthode 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 méthode

Get all the statuses available for a contact
public static all_status ( ) : array
Résultat array

contacts() public méthode

Relation with contacts table
public contacts ( )

create() public static méthode

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

scopePublished() public méthode

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

setAliasAttribute() public méthode

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

update() public méthode

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

$rules public_oe static_oe property

public static $rules

$table protected_oe property

protected $table