Back to ToolbarHelper class

Method save

public static void
save
(mixed $task = 'save', mixed $alt = 'JTOOLBAR_SAVE')
Writes a save button for a given option.
Parameters
  • string $task An override for the task.
  • string $alt An override for the alt text.
Returns
  • void
Since
  • 1.5
Class: ToolbarHelper
Project: Joomla

Method save - Source code

/**
 * Writes a save button for a given option.
 * Save operation leads to a save and then close action.
 *
 * @param   string   $task  An override for the task.
 * @param   string   $alt   An override for the alt text.
 *
 * @return  void
 *
 * @since   1.5
 */
public static function save($task = 'save', $alt = 'JTOOLBAR_SAVE')
{
    $bar = Toolbar::getInstance('toolbar');
    // Add a save button.
    $bar->save($task, $alt);
}