public function get($property)
{
$property = str_replace('resource_', '', $property);
if ($property == 'type' && empty($this->_params['type'])) {
return $this instanceof Kronolith_Resource_Single ? 'Single' : 'Group';
}
$value = $this->_share->get($property);
return $property == 'members' ? unserialize($value) : $value;
}
/** * Override the get method to see if we have a selected resource. If so, * return the resource's property value, otherwise, return the group's * property value. * * @param string $property The property to get. * * @return mixed The requested property's value. */ public function get($property) { if (empty($this->_selectedResource)) { return parent::get($property); } else { return $this->_selectedResource->get($property); } }