public function bind($array, $ignore = '') { if (isset($array['params']) && !is_string($array['params'])) { if ($array['params'] instanceof JRegistry) { $registry = $array['params']; } elseif (is_array($array['params'])) { $registry = new JRegistry(); $registry->loadArray($array['params']); } // TODO: convert to J!2.5: (string) $registry $array['params'] = $registry->toString(); } return parent::bind($array, $ignore); }
public function bind($data, $ignore=array()) { parent::bind($data, $ignore); $fields = array('name', 'username', 'email', 'blocked', 'registerDate', 'lastvisitDate'); foreach ($fields as $field) { if (isset($data[$field]) && !in_array($field, $ignore)) $this->$field = $data[$field]; } }
public function bind($data, $ignore = array()) { parent::bind($data, $ignore); $fields = array('name', 'username', 'blocked'); foreach ($fields as $field) { if (isset($data[$field]) && !in_array($field, $ignore)) { $this->{$field} = $data[$field]; } } }