Ejemplo n.º 1
0
 /**
  * @return array List of fields to update with according values.
  */
 public function getStateToSave()
 {
     $toSave = parent::getStateToSave();
     foreach ($this->dirtyFields as $field) {
         switch ($field) {
             case 'url':
                 $toSave['url'] = $this->url;
                 break;
             case 'limit':
                 $toSave['limit'] = $this->limit;
                 break;
         }
     }
     return $toSave;
 }