Пример #1
0
 public function __get($pField)
 {
     // if there is a localized version of an atom field, prefer that.
     if (array_key_exists($pField, $this->_atom_field_map)) {
         $field = $this->_atom_field_map[$pField];
         $value = parent::__get($field);
         if ($value != '') {
             return $value;
         }
     }
     switch ($pField) {
         case 'title':
             return $this->get_title();
             break;
         case 'content':
             return $this->get_content();
             break;
         case 'lead':
             return $this->get_lead();
             break;
         default:
             return parent::__get($pField);
     }
 }