Пример #1
0
 /**
  * converts Tinebase_Record_Abstract to external format
  * 
  * @param  Tinebase_Record_Abstract $_record
  * @return mixed
  */
 public function fromTine20Model(Tinebase_Record_Abstract $_record)
 {
     if (!$_record) {
         return array();
     }
     $_record->setTimezone(Tinebase_Core::get(Tinebase_Core::USERTIMEZONE));
     $_record->bypassFilters = true;
     Tinebase_Model_Container::resolveContainerOfRecord($_record);
     return $_record->toArray();
 }