public function setData($values) { if (!is_array($values)) { $values = array($values); } $this->tabl_data = $values; }