public function bind($src, $ignore = array())
	{
		// If the source value is not an array or object return false.
		if (!is_object($src) && !is_array($src))
		{
			$e = new Exception(Lang::txt('JLIB_DATABASE_ERROR_BIND_FAILED_INVALID_SOURCE_ARGUMENT', get_class($this)));
			$this->setError($e);
			return false;
		}

		// If the source value is an object, get its accessible properties.
		if (is_object($src))
		{
			$src = get_object_vars($src);
		}

		// If the ignore value is a string, explode it over spaces.
		if (!is_array($ignore))
		{
			$ignore = explode(' ', $ignore);
		}

		// Bind the source value, excluding the ignored fields.
		foreach ($this->getProperties() as $k => $v)
		{
			// Only process fields not in the ignore array.
			if (!in_array($k, $ignore))
			{
				if (isset($src[$k]))
				{
					$this->$k = $src[$k];
				}
			}
		}

		return true;
	}
public function bind($src, $ignore = array())
	{
		// If the source value is not an array or object return false.
		if (!is_object($src) && !is_array($src))
		{
			$e = new Exception(Lang::txt('JLIB_DATABASE_ERROR_BIND_FAILED_INVALID_SOURCE_ARGUMENT', get_class($this)));
			$this->setError($e);
			return false;
		}

		// If the source value is an object, get its accessible properties.
		if (is_object($src))
		{
			$src = get_object_vars($src);
		}

		// If the ignore value is a string, explode it over spaces.
		if (!is_array($ignore))
		{
			$ignore = explode(' ', $ignore);
		}

		// Bind the source value, excluding the ignored fields.
		foreach ($this->getProperties() as $k => $v)
		{
			// Only process fields not in the ignore array.
			if (!in_array($k, $ignore))
			{
				if (isset($src[$k]))
				{
					$this->$k = $src[$k];
				}
			}
		}

		return true;
	}
public function bind ( $ src , $ ignore = array ( ) ) { // If the source value is not an array or object return false. if ( ! is_object ( $ src ) && ! is_array ( $ src ) ) { $ e = new Exception ( Lang :: txt ( 'JLIB_DATABASE_ERROR_BIND_FAILED_INVALID_SOURCE_ARGUMENT' , get_class ( $ this ) ) ) ; $ this -> setError ( $ e ) ; return false ; } // If the source value is an object, get its accessible properties. if ( is_object ( $ src ) ) { $ src = get_object_vars ( $ src ) ; } // If the ignore value is a string, explode it over spaces. if ( ! is_array ( $ ignore ) ) { $ ignore = explode ( ' ' , $ ignore ) ; } // Bind the source value, excluding the ignored fields. foreach ( $ this -> getProperties ( ) as $ k => $ v ) { // Only process fields not in the ignore array. if ( ! in_array ( $ k , $ ignore ) ) { if ( isset ( $ src [ $ k ] ) ) { $ this -> $ k = $ src [ $ k ] ; } } } return true ; }
Method to bind an associative array or object to the Table 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 Table instance.
@param   mixed    $ignore  An optional array or space separated list of properties to ignore while binding.
@return  boolean  True on success.
@since   2.1.12
Method to bind an associative array or object to the Table instance . This method only binds properties that are publicly accessible and optionally takes an array of properties to ignore when binding .