/** * Method to get the id used for the field input tag. * * @param string $fieldId The field element id. * @param string $fieldName The field element name. * * @return string The id to be used for the field input tag. * @since 1.6 */ public function getId($fieldId, $fieldName) { /** @var $namehandler RokCommon_Form_IItemNameHandler */ $namehandler = $this->form->getNamehandler(); if (is_null($namehandler)) { $namehandler = $this->container->getService('form.namehandler'); } return $namehandler->getId($fieldName, $fieldId, $this->group, $this->formControl, $this->multiple); }
/** * 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; }