Exemplo n.º 1
0
 /**
  * Imports an associative array to the corresponding form elements.
  *
  * <p>Example:</p>
  * <code>
  * XOAD_HTML::importForm('mainForm', array('firstName' => 'First', 'lastName' => 'Last'));
  * </code>
  *
  * @access	public
  *
  * @param	string	$id			The client ID of the form.
  *
  * @param	string	$formData	Associative array that contains the
  *								values to import.
  *
  * @return	void
  *
  * @static
  *
  */
 public static function importForm($id, $formData)
 {
     $script = 'xoad.html.importForm(';
     $script .= XOAD_Client::register($id);
     $script .= ', ';
     $script .= XOAD_Client::register($formData);
     $script .= ');';
     XOAD_HTML::addScriptBlock($script);
 }