Exemplo n.º 1
0
 /**
  * Override standard implementation to insert list_code for current list_id into returned data. The list_code is required for consumers of export data
  * when dealing with lists. 
  *
  * @param array $pa_options Array of options for BaseModel::getValuesForExport(). No additional options are defined by this subclass.
  * @return array Array of data as returned by BaseModel::getValuesForExport() except for added list_code value
  */
 public function getValuesForExport($pa_options = null)
 {
     $va_data = parent::getValuesForExport($pa_options);
     $t_list = new ca_lists($this->get('list_id'));
     $va_data['list_code'] = $t_list->get('list_code');
     return $va_data;
 }