public function get($name) { if ($name == 'data') { return $this->_data; } else { return parent::get($name); } }
public function get($name) { try { return $this->_attributes->get($name); } catch (No_Such_Variable_Exception $e) { return parent::get($name); } }
public function get($name) { switch ($name) { case 'group': return $this->_group; case 'active': $this->checkActive(); return $this->_active; case 'data': $this->loadData(); return $this->_data; default: return parent::get($name); } }
public final function get($name) { switch ($name) { case 'rights': return $this->_rights; case 'groups': return $this->_rights->groups; default: try { return $this->getProperty($name); } catch (No_Such_Variable_Exception $e) { return parent::get($name); } } }
public function get($name) { switch ($name) { case 'prodbind': return $this->_prodbind; case 'PBID': return $this->_prodbind !== null ? $this->_prodbind->id : null; case 'lines': $this->loadLines(); return $this->_lines; case 'paths': $this->loadPaths(); return $this->_paths; case 'properties': $this->loadProperties(); return $this->_properties; case 'selectablePropertiesCount': $this->loadProperties(); return $this->selectablePropertiesCount(); case 'extra_photos': $this->loadExtraPhotos(); return $this->_extra_photos; case 'illustrative_photos': $this->loadIllustrativePhotos(); return $this->_illustrative_photos; case 'collection': $this->loadCollection(); return $this->_collection; case 'attachments': $this->loadAttachments(); return $this->_attachments; default: try { $this->loadData(); return $this->_data->{$name}; } catch (No_Such_Variable_Exception $e) { return parent::get($name); } } }
public function get($name) { switch ($name) { case 'products': $this->loadData(); return $this->_products; case 'total': $this->loadData(); return $this->_total; case 'limit': return $this->_limit; case 'page': return $this->_page; case 'search': return $this->_search; case 'sort': return $this->_sort; case 'line': $this->loadLineInfo(); return $this->_line; default: return parent::get($name); } }