Back to ToolbarHelper class

Method checkin

public static void
checkin
(mixed $task = 'checkin', mixed $alt = 'JTOOLBAR_CHECKIN', mixed $check = true)
Writes a checkin button for a given option.
Parameters
  • string $task An override for the task.
  • string $alt An override for the alt text.
  • bool $check True if required to check that a standard list item is checked.
Returns
  • void
Since
  • 1.7
Class: ToolbarHelper
Project: Joomla

Method checkin - Source code

/**
 * Writes a checkin button for a given option.
 *
 * @param   string   $task   An override for the task.
 * @param   string   $alt    An override for the alt text.
 * @param   boolean  $check  True if required to check that a standard list item is checked.
 *
 * @return  void
 *
 * @since   1.7
 */
public static function checkin($task = 'checkin', $alt = 'JTOOLBAR_CHECKIN', $check = true)
{
    $bar = Toolbar::getInstance('toolbar');
    // Add a save and create new button.
    $bar->appendButton('Standard', 'checkin', $alt, $task, $check);
}