Back to ToolbarHelper class

Method archiveList

public static void
archiveList
(mixed $task = 'archive', mixed $alt = 'JTOOLBAR_ARCHIVE')
Writes a common 'archive' 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 archiveList - Source code

/**
 * Writes a common 'archive' 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 archiveList($task = 'archive', $alt = 'JTOOLBAR_ARCHIVE')
{
    $bar = Toolbar::getInstance('toolbar');
    // Add an archive button.
    $bar->appendButton('Standard', 'archive', $alt, $task, true);
}