/** * Save the field record * * Method will save the field record into the database * * @access protected * @param array $data The field data record set * @param string &$error The referenced variable to store the error in * @return bool TRUE if the field was saved successfully, FALSE if not */ public function saveForBackend($data, &$error) { return parent::saveForBackend($data, $error); }
/** * Build the backend HTML for the form field * * Method will build and return the backend HTML of the form field * * @access public * @return string The backend form field HTML */ public function loadForBackend() { $GLOBALS['FormFieldSize'] = isc_html_escape($this->extraInfo['size']); $GLOBALS['FormFieldMaxLength'] = isc_html_escape($this->extraInfo['maxlength']); $GLOBALS['FormFieldClass'] = isc_html_escape($this->extraInfo['class']); $GLOBALS['FormFieldStyle'] = isc_html_escape($this->extraInfo['style']); $GLOBALS['FormFieldChoosePrefix'] = isc_html_escape($this->extraInfo['chooseprefix']); $GLOBALS['FormFieldSelectOptions'] = trim(implode("\n", $this->extraInfo['options'])); return parent::buildForBackend(); }