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); } }
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); } }