Exemple #1
0
 public function setValues($values, $getNames = FALSE)
 {
     $names = NULL;
     if ($getNames) {
         $names = array_keys($values);
     }
     $values = array_values($values);
     parent::setValues($values);
     if ($names) {
         $this->setNames($names);
     }
 }
Exemple #2
0
 public function setValues($values, $getNames = false)
 {
     $names = null;
     if ($getNames) {
         $names = array_keys($values);
     }
     $values = array_values($values);
     parent::setValues($values);
     if ($names) {
         $this->setNames($names);
     }
 }