Exemplo n.º 1
0
 public function set(array $data)
 {
     if (!empty($data['from_ds'])) {
         $section = Datasource_Data_Manager::load($data['from_ds']);
         if ($section !== NULL) {
             $data['ds_type'] = $section->type();
         }
     }
     return parent::set($data);
 }