/** * Method to attach a JForm object to the field. * * @param object $form The JForm object to attach to the form field. * * @return object The form field object so that the method can be used in a chain. * @since 1.6 */ public function setForm(RokCommon_Form $form) { $this->form = $form; $this->formControl = $form->getFormControl(); return $this; }