API16

JHtmlGrid/id

< 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

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


Advertisement