Back to ViewLevel class

Method bind

public bool
bind
(mixed $array, mixed $ignore = '')
Method to bind the data.
Parameters
  • array $array The data to bind.
  • mixed $ignore An array or space separated list of fields to ignore.
Returns
  • bool True on success, false on failure.
Since
  • 1.7.0
Class: ViewLevel
Project: Joomla

Method bind - Source code

/**
 * Method to bind the data.
 *
 * @param   array  $array   The data to bind.
 * @param   mixed  $ignore  An array or space separated list of fields to ignore.
 *
 * @return  boolean  True on success, false on failure.
 *
 * @since   1.7.0
 */
public function bind($array, $ignore = '')
{
    // Bind the rules as appropriate.
    if (isset($array['rules'])) {
        if (\is_array($array['rules'])) {
            $array['rules'] = json_encode($array['rules']);
        }
    }
    return parent::bind($array, $ignore);
}