Back to TableInterface class

Method bind

public bool
bind
(mixed $src, mixed $ignore = array())
Method to bind an associative array or object to the TableInterface instance.
Parameters
  • mixed $src An associative array or object to bind to the TableInterface instance.
  • mixed $ignore An optional array or space separated list of properties to ignore while binding.
Returns
  • bool True on success.
Since
  • 3.2
-
  • \UnexpectedValueException

Method bind - Source code

/**
 * Method to bind an associative array or object to the TableInterface instance.
 *
 * This method only binds properties that are publicly accessible and optionally takes an array of properties to ignore when binding.
 *
 * @param   mixed  $src     An associative array or object to bind to the TableInterface instance.
 * @param   mixed  $ignore  An optional array or space separated list of properties to ignore while binding.
 *
 * @return  boolean  True on success.
 *
 * @since   3.2
 * @throws  \UnexpectedValueException
 */
public function bind($src, $ignore = array());