PHP Class Timber\Core

Afficher le fichier Open project: jarednova/timber Class Usage Examples

Méthodes publiques

Свойство Type Description
$ID
$id
$object_type

Méthodes publiques

Méthode 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 méthode

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

__get() public méthode

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

__isset() public méthode

public __isset ( $field ) : boolean
Résultat boolean

can_edit() public méthode

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

get_field() public méthode

public get_field ( string $field_name ) : mixed
$field_name string
Résultat mixed

get_method_values() public méthode

public get_method_values ( ) : array
Résultat array

import() public méthode

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 méthode

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