PHP 클래스 Corcel\Options

저자: José CI ([email protected])
상속: extends Illuminate\Database\Eloquent\Model
파일 보기 프로젝트 열기: jgrossi/corcel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$appends array The accessors to append to the model's array form.
$fillable array The attributes that are mass assignable.
$primaryKey string The primary key of the model.
$table string The database table used by the model.

공개 메소드들

메소드 설명
get ( string $name ) : string | array Gets option field by its name.
getAll ( ) : array Gets all the options.
getValueAttribute ( ) : value Gets the value.

메소드 상세

get() 공개 정적인 메소드

Gets option field by its name.
public static get ( string $name ) : string | array
$name string
리턴 string | array

getAll() 공개 정적인 메소드

Gets all the options.
public static getAll ( ) : array
리턴 array

getValueAttribute() 공개 메소드

Tries to unserialize the object and returns the value if that doesn't work.
public getValueAttribute ( ) : value
리턴 value

프로퍼티 상세

$appends 보호되어 있는 프로퍼티

The accessors to append to the model's array form.
protected array $appends
리턴 array

$fillable 보호되어 있는 프로퍼티

The attributes that are mass assignable.
protected array $fillable
리턴 array

$primaryKey 보호되어 있는 프로퍼티

The primary key of the model.
protected string $primaryKey
리턴 string

$table 보호되어 있는 프로퍼티

The database table used by the model.
protected string $table
리턴 string