Beispiel #1
0
 /**
  * Get meta data, key support dot notation levels
  * @param  string $key
  * @return mixed
  */
 public function getMeta($key = null)
 {
     if (!is_array($this->meta)) {
         return $this->meta;
     } else {
         return H::arrayGet($this->meta, $key);
     }
 }
Beispiel #2
0
 /**
  * Get registered class name
  * @param  string $type
  * @return void
  */
 public function getRegisteredClass($type)
 {
     return H::arrayGet($this->classes, $type, false);
 }
Beispiel #3
0
 protected function getKey($type)
 {
     return H::arrayGet($this->keys, $type);
 }
Beispiel #4
0
 public function testArrayGet()
 {
     $name = H::arrayGet($this->array, 'name');
     $this->assertEquals('John', $name);
 }
Beispiel #5
0
 /**
  * Get value of PK
  * @return mixed
  */
 public function getKey()
 {
     return H::arrayGet($this->attributes, static::$key);
 }