PHP Класс Pommo_Api, poMMo

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

Открытые методы

Метод Описание
configGet ( $arg ) * configGet Gets specified config value(s) from the DB.
configGetBase ( ) * configGetBase Returns Base Configuration Data
configUpdate ( $input, $force = FALSE ) $input must be an array as key:value ([config_name] => config_value)
getAttachmentsWithNames ( $attachments ) : array Get attachments names based on attachment indexes
getParams ( $defaults, $args ) * getParams Merges default and given params
stateInit ( $name = 'default', $defaults = [], $source = [] ) * stateInit initializes a page state
stateReset ( $state = [] ) returns (bool)

Описание методов

configGet() статический публичный Метод

Pass a single or array of config_names, returns array name->value.
static public configGet ( $arg )

configGetBase() публичный статический Метод

* configGetBase Returns Base Configuration Data
public static configGetBase ( )

configUpdate() статический публичный Метод

$input must be an array as key:value ([config_name] => config_value)
static public configUpdate ( $input, $force = FALSE )

getAttachmentsWithNames() публичный статический Метод

Get attachments names based on attachment indexes
public static getAttachmentsWithNames ( $attachments ) : array
Результат array $result = Array with attachments details: array( array( 'id' => 1, 'name' => 'file.txt' ), array( 'id' => 2, 'name' => 'image.jpg' ) )

getParams() публичный статический Метод

* getParams Merges default and given params
public static getParams ( $defaults, $args )

stateInit() статический публичный Метод

* stateInit initializes a page state
static public stateInit ( $name = 'default', $defaults = [], $source = [] )

stateReset() публичный Метод

returns (bool)
public stateReset ( $state = [] )