get() public static method

__get() implementation.
public static get ( $_this, $name ) : mixed
return mixed property value
Example #1
0
 /**
  * Returns value of column / referenced row
  *
  * @param $key
  * @return mixed|HyperRow|HyperSelection
  */
 public function &__get($key)
 {
     // Try to get method - getter
     if (ObjectMixin::has($this, $key)) {
         return ObjectMixin::get($this, $key);
     }
     // Otherwise get ActiveRow property
     $result = $this->activeRow->__get($key);
     if ($result instanceof ActiveRow) {
         $hyperrow = $this->factory->createRow($result, $result->getTable()->getName());
         return $hyperrow;
     }
     return $result;
 }
 /**
  * Returns property value. Do not call directly.
  *
  * @param string $name
  *
  * @throws \Nette\MemberAccessException
  * @return mixed
  */
 public function &__get($name)
 {
     return ObjectMixin::get($this, $name);
 }
Example #3
0
 /**
  * Returns property value. Do not call directly.
  * @param  string  property name
  * @return mixed   property value
  * @throws MemberAccessException if the property is not defined.
  */
 public function &__get($name)
 {
     return Nette\Utils\ObjectMixin::get($this, $name);
 }