*/ //////////////////////////////////////////////////////////////////////////////////////////////////// class refnotes_refnote { protected $attributes; protected $data; /** * Constructor */ public function __construct($attributes = array(), $data = array()) { $this->attributes = $attributes; $this->data = $data; } /** * */ public function getAttributes() { return $this->attributes; } /** * */ public function getAttribute($name, $default = '') { return array_key_exists($name, $this->attributes) ? $this->attributes[$name] : $default; } /** * */ public function getData() { return $this->data; } /** * */ public function hasData() { return !empty($this->data); } }