public function getForm($data = array(), $loadData = true, $source = null)
{
$this->_formData = $data;
if (empty($source)) {
$source = $this->formName;
}
if (empty($source)) {
$source = 'form.' . $this->name;
}
$name = $this->container->componentName . '.' . $this->name . '.' . $source;
$options = array('control' => false, 'load_data' => &$loadData);
$this->triggerEvent('onBeforeLoadForm', array(&$name, &$source, &$options));
$form = $this->loadForm($name, $source, $options);
if (is_object($form) && $form instanceof Form) {
$this->triggerEvent('onAfterLoadForm', array(&$form, &$name, &$source, &$options));
return $form;
}
return false;
}