File code/class/Lia.php

class Lia

Constants

Properties

  • public $addons = [];
  • public $methods = [];
  • public $props = [];
  • public $fqn_addons = [];
  • public $prefixes = []; Array where key is the prefix and value is a callable that is executed when a prefixed-method is found
    callables must accept following args:
    function($object, $method, $dot_name){}
    Where $dot_name has the prefix removed & each _ replaced with .
  • public $_lia; Root liaison object
  • public $lia; Parent liaison object

Methods

  • public function __construct($liaison=null)
  • protected function copy($lia)
  • public function scan($prefix, $object=null)
  • public function set($key, $value)
  • public function append($key,$value)
  • public function get($key)
  • public function default($key, $value)
  • public function addAddon($addon, $name)
  • public function addMethod($name, $callable)
  • public function addPrefix($prefix, $method)
  • public function addon($fqn) Get an addon by it's fully-qualified-name
  • public function __call($method, $args)
  • public function __get($addon) get the named addon
  • public function __set($name, $addon) get the named addon
  • public function dump() Dump a bunch of info about liaison. Methods. Addons. Properties.
  • public function __map_array__($value)