====== Registry ======
**Layer:** ''Core'' · **Source:** ''lib/core/Registry.php:18'' (lines 18–133)
----
class Registry
======= Docblock Metadata =======
^ Tag ^ Value ^
| ''@category'' | Core Class |
| ''@author'' | M.Noermoehammad |
| ''@license'' | MIT |
| ''@version'' | 1.0 |
| ''@since'' | Since Release 1.0 |
======= Inheritance =======
//No parent, interface or trait. This is a root type.//
======= Constants (0) =======
//None.//
======= Properties (2) =======
^ Visibility ^ Type ^ Name ^ Default ^ Line ^
| ''private static'' | ''static'' | ''$objects'' | | 26 |
| ''private static'' | ''static'' | ''$data'' | ''[]'' | 35 |
======= Methods (7) =======
^ Visibility ^ Method ^ Summary ^ Line ^
| public | ''__construct()'' | constructor | 40 |
| public static | ''get()'' | get | 51 |
| public static | ''set()'' | set | 71 |
| public static | ''setAll()'' | setAll | 85 |
| public static | ''isKeySet()'' | Is key set | 101 |
| public static | ''registerObject()'' | registryObject | 112 |
| public static | ''getObjectRegistered()'' | getObjectRegistered | 128 |
======== __construct() ========
public function __construct()
//lines 40–42 (3)//
//Takes no parameters.//
======== get() ========
public static function get($key)
//lines 51–60 (10)//
^ Parameter ^ Type ^ Default ^ Description ^
| ''$key'' | ''(untyped)'' | //required// | //none// |
**Returns:** ''(none declared)''
======== set() ========
public static function set($key, $value)
//lines 71–75 (5)//
^ Parameter ^ Type ^ Default ^ Description ^
| ''$key'' | ''(untyped)'' | //required// | //none// |
| ''$value'' | ''(untyped)'' | //required// | //none// |
**Returns:** ''(none declared)''
======== setAll() ========
public static function setAll(array $key = [])
//lines 85–89 (5)//
setAll
^ Parameter ^ Type ^ Default ^ Description ^
| ''$key'' | ''array'' | ''[]'' | //none// |
**Returns:** ''(none declared)''
======== isKeySet() ========
public static function isKeySet($key)
//lines 101–105 (5)//
Is key set
Checking whether key set or not
^ Parameter ^ Type ^ Default ^ Description ^
| ''$key'' | ''(untyped)'' | //required// | //none// |
**Returns:** ''(none declared)'' — array
======== registerObject() ========
public static function registerObject($object, $key)
//lines 112–119 (8)//
registryObject
^ Parameter ^ Type ^ Default ^ Description ^
| ''$object'' | ''(untyped)'' | //required// | //none// |
| ''$key'' | ''(untyped)'' | //required// | //none// |
**Returns:** ''(none declared)'' — void
======== getObjectRegistered() ========
public static function getObjectRegistered($key)
//lines 128–132 (5)//
getObjectRegistered
^ Parameter ^ Type ^ Default ^ Description ^
| ''$key'' | ''(untyped)'' | //required// | //none// |
**Returns:** ''(none declared)'' — Object
----
//This page is generated from source by 'tools/gendoc'. Edits will be overwritten.//