PHP Class Timber\Core

ファイルを表示 Open project: jarednova/timber Class Usage Examples

Public Properties

Property Type Description
$ID
$id
$object_type

Public Methods

Method Description
__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 )

Method Details

__call() public method

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

__get() public method

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

__isset() public method

public __isset ( $field ) : boolean
return boolean

can_edit() public method

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

get_field() public method

public get_field ( string $field_name ) : mixed
$field_name string
return mixed

get_method_values() public method

public get_method_values ( ) : array
return array

import() public method

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 method

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

Property Details

$ID public_oe property

public $ID

$id public_oe property

public $id

$object_type public_oe property

public $object_type