/** * Overrides QueryRecord __isset, returns whether this Block has the named * data. Falls back to QueryRecord's __isset. * * @param string $name The name of the parameter * @return boolean True if the value is set, false if not */ public function __isset($name) { return isset($this->data_values[$name]) || parent::__isset($name); }
/** * Overrides QueryRecord __isset to implement custom object properties * @param string $name Name of property to return * @return boolean true if var is set and not NULL, false otherwise */ public function __isset($name) { $fieldnames = array_merge(array_keys($this->fields), array('post', 'info', 'editlink')); // Parent method if (parent::__isset($name)) { return true; } if (in_array($name, $fieldnames)) { $value = $this->__get($name); if (!empty($value) && NULL !== $value) { return true; } } return false; }
/** * Overrides QueryRecord __isset to implement custom object properties * @param string $name Name of property to return * @return boolean true if var is set and not NULL, false otherwise */ public function __isset($name) { $fieldnames = array_merge(array_keys($this->fields), array('permalink', 'tags', 'comments', 'comment_count', 'approved_comment_count', 'comment_feed_link', 'author', 'editlink', 'info')); // Parent method if (parent::__isset($name)) { return true; } // Internal fields if (in_array($name, $fieldnames)) { $value = $this->__get($name); if (!empty($value) && NULL !== $value) { return true; } } return false; }