public static function setFormId($formId = 'oneForm') { if (trim($formId) == '') { self::$_formId = 'oneForm'; } else { self::$_formId = $formId; } }
/** * This method renders the "save" button * * @return string */ public function render() { $output = '<td><a href="#" onclick="document.getElementById( \'task\' ).value = \'save\'; document.getElementById( \'' . One_Button::getFormId() . '\' ).submit(); "><img src="' . One_Config::getInstance()->getUrl() . '/vendor/images/toolset/' . self::getToolset() . '/save.png" title="Save">'; if (self::showText()) { $output .= '<br />Save'; } $output .= '</a></td>'; return $output; }