public function __isset($name)
    {
        $dtp = new \stdClass();
        $dtp->propertyName = $name;
        $dtp->continue = TRUE;
        $dtp->results = FALSE;

        $this->triggerEvent(self::EVENT_ON_BEFORE_ISSET_PROPERTY, $dtp);
        if ($dtp->continue == TRUE) {
            $getter = $this->public_function_prefix . 'get' . $dtp->propertyName;
            if ($this->hasMethod($getter)) {
                $dtp->results = $this->$getter() !== NULL;
            } else {
                $dtp->results = FALSE;
            }
        }
        $this->triggerEvent(self::EVENT_ON_AFTER_ISSET_PROPERTY, $dtp);

        return $dtp->results;
    }
public function __isset($name)
    {
        $dtp = new \stdClass();
        $dtp->propertyName = $name;
        $dtp->continue = TRUE;
        $dtp->results = FALSE;

        $this->triggerEvent(self::EVENT_ON_BEFORE_ISSET_PROPERTY, $dtp);
        if ($dtp->continue == TRUE) {
            $getter = $this->public_function_prefix . 'get' . $dtp->propertyName;
            if ($this->hasMethod($getter)) {
                $dtp->results = $this->$getter() !== NULL;
            } else {
                $dtp->results = FALSE;
            }
        }
        $this->triggerEvent(self::EVENT_ON_AFTER_ISSET_PROPERTY, $dtp);

        return $dtp->results;
    }
public function __isset ( $ name ) { $ dtp = new \ stdClass ( ) ; $ dtp -> propertyName = $ name ; $ dtp -> continue = TRUE ; $ dtp -> results = FALSE ; $ this -> triggerEvent ( self :: EVENT_ON_BEFORE_ISSET_PROPERTY , $ dtp ) ; if ( $ dtp -> continue == TRUE ) { $ getter = $ this -> public_function_prefix . 'get' . $ dtp -> propertyName ; if ( $ this -> hasMethod ( $ getter ) ) { $ dtp -> results = $ this -> $ getter ( ) !== NULL ; } else { $ dtp -> results = FALSE ; } } $ this -> triggerEvent ( self :: EVENT_ON_AFTER_ISSET_PROPERTY , $ dtp ) ; return $ dtp -> results ; }
Checks if a property is set, i.e. defined and not NULL.

Do not call this method directly as it is a PHP magic method that
will be implicitly called when executing `isset($object->property)`.

Note that if the property is not defined, FALSE will be returned.

@param string $name the property name or the event name
@return boolean whether the named property is set (not NULL).
@see http://php.net/manual/en/function.isset.php
Checks if a property is set i . e . defined and not NULL .