';
$html .= Text::_($title);
if ($order == $selected)
{
$html .= ' ';
}
$html .= '';
return $html;
}
/**
* Method to check all checkboxes in a grid
*
* @param string $name The name of the form element
* @param string $tip The text shown as tooltip title instead of $tip
* @param string $action The action to perform on clicking the checkbox, e.g. "Foobar.System.checkAll(this)"
*
* @return string
*/
public static function checkAll($name = 'checkall-toggle', $tip = 'AWF_COMMON_LBL_CHECK_ALL', $action = '')
{
if (empty($action))
{
$action = self::$javascriptPrefix . 'checkAll(this)';
}
return '';
}
/**
* Method to create a checkbox for a grid row.
*
* @param integer $rowNum The row index
* @param integer $recId The record id
* @param boolean $checkedOut True if item is checke out
* @param string $name The name of the form element
* @param string $checkedJs (optional) The Javscript function to determine if a box is checked, e.g. "Foobar.system.isChecked"
*
* @return mixed String of html with a checkbox if item is not checked out, null if checked out.
*/
public static function id($rowNum, $recId, $checkedOut = false, $name = 'cid', $checkedJs = '')
{
if (empty($checkedJs))
{
$checkedJs = self::$javascriptPrefix . 'isChecked';
}
return $checkedOut ? '' : '';
}
}