english/libraries/joomla/form/form.php
/**
	 * Method to bind data to the form for the group level.
	 *
	 * @param   string  $group  The dot-separated form group path on which to bind the data.
	 * @param   mixed   $data   An array or object of data to bind to the form for the group level.
	 *
	 * @return  void
	 *
	 * @since   11.1
	 */
Method to bind data to the form for the group level.
@param   string  $group  The dot-separated form group path on which to bind the data.
@param   mixed   $data   An array or object of data to bind to the form for the group level.

@return  void


Method to bind data to the form for the group level . @param string $group The dot - separated form group path on which to bind the data . @param mixed $data An array or object of data to bind to the form for the group level . @return void
protected function bindLevel($group, $data)
	{
		settype($data, 'array');
		foreach ($data as $k => $v) {
			if ($this->findField($k, $group)) {
				$this->data->set($group.'.'.$k, $v);
			}
			else if (is_object($v) || JArrayHelper::isAssociative($v)) {
				$this->bindLevel($group.'.'.$k, $v);
			}
		}
	}
protected function bindLevel ( $ group , $ data ) { settype ( $ data , 'array' ) ; foreach ( $ data as $ k => $ v ) { if ( $ this -> findField ( $ k , $ group ) ) { $ this -> data -> set ( $ group . '.' . $ k , $ v ) ; } else if ( is_object ( $ v ) || JArrayHelper :: isAssociative ( $ v ) ) { $ this -> bindLevel ( $ group . '.' . $ k , $ v ) ; } } }
Method to bind data to the form for the group level.
Method to bind data to the form for the group level .
// Ensure the input data is an array. // Process the input data. // If the field exists set the value. // If the value is an object or an associative array, hand it off to the recursive bind level method