JHtmlGrid/id
From Joomla! Documentation
< API16:JHtmlGrid
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
<! removed transcluded page call, red link never existed >
Syntax[edit]
static id($rowNum, $recId, $checkedOut=false, $name='cid')
Parameter Name | Default Value | Description |
---|---|---|
$rowNum | The row index | |
$recId | The record id | |
$checkedOut | false | |
$name | 'cid' | The name of the form element |
Returns[edit]
string
Defined in[edit]
libraries/joomla/html/html/grid.php
Importing[edit]
jimport( 'joomla.html.html.grid' );
Source Body[edit]
public static function id($rowNum, $recId, $checkedOut=false, $name='cid')
{
if ($checkedOut) {
return '';
} else {
return '<input type="checkbox" id="cb'.$rowNum.'" name="'.$name.'[]" value="'.$recId.'" onclick="isChecked(this.checked);" title="'.JText::sprintf('JGrid_Checkbox_Row_N', ($rowNum + 1)).'" />';
}
}
<! removed transcluded page call, red link never existed >
Examples[edit]
Code Examples[edit]