Back to Module class

Method bind

public mixed
bind
(mixed $array, mixed $ignore = '')
Overloaded bind function.
Parameters
  • array $array Named array.
  • mixed $ignore An optional array or space separated list of properties to ignore while binding.
Returns
  • mixed Null if operation was satisfactory, otherwise returns an error
Since
  • 1.5
-
  • \Joomla\CMS\Table\Table::bind()
Class: Module
Project: Joomla

Method bind - Source code

/**
 * Overloaded bind function.
 *
 * @param   array  $array   Named array.
 * @param   mixed  $ignore  An optional array or space separated list of properties to ignore while binding.
 *
 * @return  mixed  Null if operation was satisfactory, otherwise returns an error
 *
 * @see     Table::bind()
 * @since   1.5
 */
public function bind($array, $ignore = '')
{
    if (isset($array['params']) && \is_array($array['params'])) {
        $registry = new Registry($array['params']);
        $array['params'] = (string) $registry;
    }
    // Bind the rules.
    if (isset($array['rules']) && \is_array($array['rules'])) {
        $rules = new Rules($array['rules']);
        $this->setRules($rules);
    }
    return parent::bind($array, $ignore);
}