Back to ToolbarHelper class

Method deleteList

public static void
deleteList
(mixed $msg = '', mixed $task = 'remove', mixed $alt = 'JTOOLBAR_DELETE')
Writes a common 'delete' button for a list of records.
Parameters
  • string $msg Postscript for the 'are you sure' message.
  • 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 deleteList - Source code

/**
 * Writes a common 'delete' button for a list of records.
 *
 * @param   string  $msg   Postscript for the 'are you sure' message.
 * @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 deleteList($msg = '', $task = 'remove', $alt = 'JTOOLBAR_DELETE')
{
    $bar = Toolbar::getInstance('toolbar');
    // Add a delete button.
    if ($msg) {
        $bar->appendButton('Confirm', $msg, 'delete', $alt, $task, true);
    } else {
        $bar->appendButton('Standard', 'delete', $alt, $task, true);
    }
}