/**
 * 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);
}