JHtmlGrid
class JHtmlGrid
Utility class for creating HTML Grids
Methods
Display a boolean setting widget.
Method to sort a column in a grid
Method to check all checkboxes in a grid
Method to create a checkbox for a grid row.
Displays a checked out icon.
Method to create a clickable icon to change the state of an item
Method to create a select list of states for filtering By default the filter shows only published and unpublished items
Method to create an icon for saving a new ordering in a grid
Method to build the behavior script and add it to the document head.
Details
static
string
boolean(
integer $i,
integer $value,
string $taskOn = null,
string $taskOff = null)
Display a boolean setting widget.
static
string
sort(
string $title,
string $order,
string $direction = 'asc',
string $selected = '',
string $task = null,
string $new_direction = 'asc',
string $tip = '',
string $form = null)
Method to sort a column in a grid
static
string
checkall(
string $name = 'checkall-toggle',
string $tip = 'JGLOBAL_CHECK_ALL',
string $action = 'Joomla.checkAll(this)')
Method to check all checkboxes in a grid
static
mixed
id(
integer $rowNum,
integer $recId,
boolean $checkedOut = false,
string $name = 'cid',
string $stub = 'cb')
Method to create a checkbox for a grid row.
static
string
checkedOut(
object $row,
integer $i,
string $identifier = 'id')
Displays a checked out icon.
static
string
published(
mixed $value,
integer $i,
string $img1 = 'tick.png',
string $img0 = 'publish_x.png',
string $prefix = '')
Method to create a clickable icon to change the state of an item
static
string
state(
string $filter_state = '*',
string $published = 'JPUBLISHED',
string $unpublished = 'JUNPUBLISHED',
string $archived = null,
string $trashed = null)
Method to create a select list of states for filtering By default the filter shows only published and unpublished items