has() public static method

__isset() implementation.
public static has ( $_this, $name ) : boolean
return boolean
 /**
  * Is property defined?
  *
  * @param string $name
  *
  * @return bool
  */
 public function __isset($name)
 {
     return ObjectMixin::has($this, $name);
 }
Example #2
0
 /**
  * Is property defined?
  * @param  string  property name
  * @return bool
  */
 public function __isset(string $name) : bool
 {
     return ObjectMixin::has($this, $name);
 }
Example #3
0
 /**
  * Převede databázový název sloupce s lomítkama na camelFont.
  * @example group_id => groupId
  * @param string $name
  * @return string
  */
 private function normalizePropertyName($name)
 {
     $propertyName = $name;
     if (!\Nette\Utils\ObjectMixin::has($this, $name)) {
         $propertyName = '';
         $nameParts = explode('_', $name);
         foreach ($nameParts as $key => $partName) {
             $propertyName .= $key == 0 ? $partName : ucfirst($partName);
         }
     }
     return $propertyName;
 }
Example #4
0
 /**
  * @param $key
  * @return bool
  */
 public function __isset($key)
 {
     return ObjectMixin::has($this, $key) || $this->activeRow->__isset($key);
 }
Example #5
0
 /**
  * Is property defined?
  * @param  string  property name
  * @return bool
  */
 public function __isset($name)
 {
     return Nette\Utils\ObjectMixin::has($this, $name);
 }