PHP Класс Timber\Core

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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