Nette\Utils\ObjectMixin::has PHP Метод

has() публичный статический Метод

__isset() implementation.
public static has ( $_this, $name ) : boolean
Результат boolean
    public static function has($_this, $name)
    {
        $name = ucfirst($name);
        $methods =& self::getMethods(get_class($_this));
        return $name !== '' && (isset($methods['get' . $name]) || isset($methods['is' . $name]));
    }

Usage Example

Пример #1
0
 /**
  * Is property defined?
  *
  * @param string $name
  *
  * @return bool
  */
 public function __isset($name)
 {
     return ObjectMixin::has($this, $name);
 }
All Usage Examples Of Nette\Utils\ObjectMixin::has