Back to ToolbarHelper class

Method assign

public static void
assign
(mixed $task = 'assign', mixed $alt = 'JTOOLBAR_ASSIGN')
Writes a common 'assign' button for a record.
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 assign - Source code

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