Back to Pagination class

Method orderDownIcon

public string
orderDownIcon
(mixed $i, mixed $n, mixed $condition = true, mixed $task = 'orderdown', mixed $alt = 'JLIB_HTML_MOVE_DOWN', mixed $enabled = true, mixed $checkbox = 'cb')
Return the icon to move an item DOWN.
Parameters
  • int $i The row index.
  • int $n The number of items in the list.
  • 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 down or a space.
Since
  • 1.5
Class: Pagination
Project: Joomla

Method orderDownIcon - Source code

/**
 * Return the icon to move an item DOWN.
 *
 * @param   integer  $i          The row index.
 * @param   integer  $n          The number of items in the list.
 * @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 down or a space.
 *
 * @since   1.5
 */
public function orderDownIcon($i, $n, $condition = true, $task = 'orderdown', $alt = 'JLIB_HTML_MOVE_DOWN', $enabled = true, $checkbox = 'cb')
{
    if (($i < $n - 1 || $i + $this->limitstart < $this->total - 1) && $condition) {
        return HTMLHelper::_('jgrid.orderDown', $i, $task, '', $alt, $enabled, $checkbox);
    } else {
        return ' ';
    }
}