Back to ToolbarHelper class

Method apply

public static void
apply
(mixed $task = 'apply', mixed $alt = 'JTOOLBAR_APPLY')
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 apply - Source code

/**
 * Writes a save button for a given option.
 * Apply operation leads to a save action only (does not leave edit mode).
 *
 * @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 apply($task = 'apply', $alt = 'JTOOLBAR_APPLY')
{
    $bar = Toolbar::getInstance('toolbar');
    // Add an apply button
    $bar->apply($task, $alt);
}