API16

API16:JHtmlGrid/id

From Joomla! Documentation

<! removed transcluded page call, red link never existed >

Syntax

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

string

Defined in

libraries/joomla/html/html/grid.php

Importing

jimport( 'joomla.html.html.grid' );

Source Body

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

Code Examples