/** * Helper method to transform object values to Google Event values * * @param $values TA_Model_Resource_Db_Table_Row_Abstract * @rerurn array */ protected function _modifyValues(TA_Model_Resource_Db_Table_Row_Abstract $row) { $values = $row->toArray(); $return = array(); if ($row instanceof Core_Resource_Event_Item || $row instanceof Core_Resource_Session_Item) { $return['title'] = $values['title']; $return['description'] = $values['description']; $return['start'] = $values['tstart']; $return['end'] = $values['tend']; $return['location'] = $values['location_address']; } return $return; }