Back to Pagination class

Method orderUpIcon

public string
orderUpIcon
(mixed $i, mixed $condition = true, mixed $task = 'orderup', mixed $alt = 'JLIB_HTML_MOVE_UP', mixed $enabled = true, mixed $checkbox = 'cb')
Return the icon to move an item UP.
Parameters
  • int $i The row index.
  • bool $condition True to show the icon.
  • string $task The task to fire.
  • string $alt The image alternative text string.
  • bool $enabled An optional setting for access control on the action.
  • string $checkbox An optional prefix for checkboxes.
Returns
  • string Either the icon to move an item up or a space.
Since
  • 1.5
Class: Pagination
Project: Joomla

Method orderUpIcon - Source code

/**
 * Return the icon to move an item UP.
 *
 * @param   integer  $i          The row index.
 * @param   boolean  $condition  True to show the icon.
 * @param   string   $task       The task to fire.
 * @param   string   $alt        The image alternative text string.
 * @param   boolean  $enabled    An optional setting for access control on the action.
 * @param   string   $checkbox   An optional prefix for checkboxes.
 *
 * @return  string   Either the icon to move an item up or a space.
 *
 * @since   1.5
 */
public function orderUpIcon($i, $condition = true, $task = 'orderup', $alt = 'JLIB_HTML_MOVE_UP', $enabled = true, $checkbox = 'cb')
{
    if (($i > 0 || $i + $this->limitstart > 0) && $condition) {
        return HTMLHelper::_('jgrid.orderUp', $i, $task, '', $alt, $enabled, $checkbox);
    } else {
        return ' ';
    }
}