PHP Class Pommo_Api, poMMo

Afficher le fichier Open project: soonick/poMMo Class Usage Examples

Méthodes publiques

Méthode Description
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)

Method Details

configGet() static public méthode

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

configGetBase() public static méthode

* configGetBase Returns Base Configuration Data
public static configGetBase ( )

configUpdate() static public méthode

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

getAttachmentsWithNames() public static méthode

Get attachments names based on attachment indexes
public static getAttachmentsWithNames ( $attachments ) : array
Résultat array $result = Array with attachments details: array( array( 'id' => 1, 'name' => 'file.txt' ), array( 'id' => 2, 'name' => 'image.jpg' ) )

getParams() public static méthode

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

stateInit() static public méthode

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

stateReset() public méthode

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