PHP 클래스 Components\ContactManager\Models\ContactCategory

상속: extends Eloquen\Eloquent, implements Robbo\Presenter\PresentableInterface
파일 보기 프로젝트 열기: doptor/doptor 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$rules

보호된 프로퍼티들

프로퍼티 타입 설명
$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