PHP Класс Components\ContactManager\Models\ContactCategory

Наследование: extends Eloquen\Eloquent, implements Robbo\Presenter\PresentableInterface
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$rules

Защищенные свойства (Protected)

Свойство Тип Описание
$guarded
$table

Открытые методы

Метод Описание
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.

Описание методов

all_status() публичный статический метод

Get all the statuses available for a contact
public static all_status ( ) : array
Результат array

contacts() публичный метод

Relation with contacts table
public contacts ( )

create() публичный статический метод

When creating a contact, run the attributes through a validator first.
public static create ( array $attributes = [] ) : void
$attributes array
Результат void

getPresenter() публичный метод

Initiate the presenter class
public getPresenter ( )

scopePublished() публичный метод

Get all the published contacts that are within the publish date range
public scopePublished ( $query ) : query
Результат query

setAliasAttribute() публичный метод

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

update() публичный метод

When updating a contact, run the attributes through a validator first.
public update ( array $attributes = [], array $options = [] ) : void
$attributes array
$options array
Результат void

Описание свойств

$guarded защищенное свойство

protected $guarded

$rules публичное статическое свойство

public static $rules

$table защищенное свойство

protected $table