PHP 클래스 Timber\Core

파일 보기 프로젝트 열기: jarednova/timber 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$ID
$id
$object_type

공개 메소드들

메소드 설명
__call ( $field, $args ) : mixed This is helpful for twig to return properties and methods see: https://github.com/fabpot/Twig/issues/2
__get ( $field ) : mixed This is helpful for twig to return properties and methods see: https://github.com/fabpot/Twig/issues/2
__isset ( $field ) : boolean
can_edit ( ) : boolean Can you edit this post/term/user? Well good for you. You're no better than me.
get_field ( string $field_name ) : mixed
get_method_values ( ) : array
import ( array | object $info, $force = false ) Takes an array or object and adds the properties to the parent object
update ( string $key, mixed $value )

메소드 상세

__call() 공개 메소드

This is helpful for twig to return properties and methods see: https://github.com/fabpot/Twig/issues/2
public __call ( $field, $args ) : mixed
리턴 mixed

__get() 공개 메소드

This is helpful for twig to return properties and methods see: https://github.com/fabpot/Twig/issues/2
public __get ( $field ) : mixed
리턴 mixed

__isset() 공개 메소드

public __isset ( $field ) : boolean
리턴 boolean

can_edit() 공개 메소드

Can you edit this post/term/user? Well good for you. You're no better than me.
public can_edit ( ) : boolean
리턴 boolean

get_field() 공개 메소드

public get_field ( string $field_name ) : mixed
$field_name string
리턴 mixed

get_method_values() 공개 메소드

public get_method_values ( ) : array
리턴 array

import() 공개 메소드

Takes an array or object and adds the properties to the parent object
public import ( array | object $info, $force = false )
$info array | object an object or array you want to grab data from to attach to the Timber object

update() 공개 메소드

public update ( string $key, mixed $value )
$key string
$value mixed

프로퍼티 상세

$ID 공개적으로 프로퍼티

public $ID

$id 공개적으로 프로퍼티

public $id

$object_type 공개적으로 프로퍼티

public $object_type