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