Back to PhocaGalleryGrid class

Method id

public static
id
(mixed $rowNum, mixed $recId, mixed $checkedOut = false, mixed $name = 'cid', mixed $stub = 'cb', mixed $title = '', mixed $formId = null)

Method id - Source code

public static function id($rowNum, $recId, $checkedOut = false, $name = 'cid', $stub = 'cb', $title = '', $formId = null)
{
    if ($checkedOut) {
        return '';
    } else {
        return '<input type="checkbox" id="cb' . $rowNum . '" name="' . $name . '[]" value="' . $recId . '" onclick="Joomla.isChecked(this.checked, \'undefined\');" title="' . Text::sprintf('JGRID_CHECKBOX_ROW_N', $rowNum + 1) . '" />';
        //return '<input type="checkbox" id="cb' . $rowNum . '" name="' . $name . '[]" value="' . $recId
        //	. '"  title="' . JText::sprintf('JGRID_CHECKBOX_ROW_N', ($rowNum + 1)) . '" />';
    }
}