Back to ToolbarHelper class

Method publishList

public static void
publishList
(mixed $task = 'publish', mixed $alt = 'JTOOLBAR_PUBLISH')
Writes a common 'publish' button for a list of records.
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 publishList - Source code

/**
 * Writes a common 'publish' button for a list of records.
 *
 * @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 publishList($task = 'publish', $alt = 'JTOOLBAR_PUBLISH')
{
    $bar = Toolbar::getInstance('toolbar');
    // Add a publish button (list).
    $bar->appendButton('Standard', 'publish', $alt, $task, true);
}