Back to JGrid class

Method orderDown

public static string
orderDown
(mixed $i, mixed $task = 'orderdown', mixed $prefix = '', mixed $text = 'JLIB_HTML_MOVE_DOWN', mixed $enabled = true, mixed $checkbox = 'cb', mixed $formId = null)
Creates an order-down action icon.
Parameters
  • int $i The row index.
  • string $task An optional task to fire.
  • string|array $prefix An optional task prefix or an array of options
  • string $text An optional text to display
  • bool $enabled An optional setting for access control on the action.
  • string $checkbox An optional prefix for checkboxes.
  • string $formId An optional form selector.
Returns
  • string The HTML markup
Since
  • 1.6
Class: JGrid
Project: Joomla

Method orderDown - Source code

/**
 * Creates an order-down action icon.
 *
 * @param   integer       $i         The row index.
 * @param   string        $task      An optional task to fire.
 * @param   string|array  $prefix    An optional task prefix or an array of options
 * @param   string        $text      An optional text to display
 * @param   boolean       $enabled   An optional setting for access control on the action.
 * @param   string        $checkbox  An optional prefix for checkboxes.
 * @param   string        $formId    An optional form selector.
 *
 * @return  string  The HTML markup
 *
 * @since   1.6
 */
public static function orderDown($i, $task = 'orderdown', $prefix = '', $text = 'JLIB_HTML_MOVE_DOWN', $enabled = true, $checkbox = 'cb', $formId = null)
{
    if (is_array($prefix)) {
        $options = $prefix;
        $text = array_key_exists('text', $options) ? $options['text'] : $text;
        $enabled = array_key_exists('enabled', $options) ? $options['enabled'] : $enabled;
        $checkbox = array_key_exists('checkbox', $options) ? $options['checkbox'] : $checkbox;
        $prefix = array_key_exists('prefix', $options) ? $options['prefix'] : '';
    }
    return static::action($i, $task, $prefix, $text, $text, false, 'downarrow', 'downarrow_disabled', $enabled, true, $checkbox, $formId);
}