Actions

API16

JHtmlGrid/checkedOut

From Joomla! Documentation

< API16:JHtmlGrid
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

[<! removed edit link to red link >]

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

Contents

Syntax

static checkedOut(&$row, $i, $identifier= 'id')
Parameter Name Default Value Description
&$row
$i
$identifier 'id'

Defined in

libraries/joomla/html/html/grid.php

Importing

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

Source Body

public static function checkedOut(&$row, $i, $identifier = 'id')
{
        $user   = &JFactory::getUser();
        $userid = $user->get('id');
 
        $result = false;
        if ($row INSTANCEOF JTable) {
                $result = $row->isCheckedOut($userid);
        } else {
                $result = JTable::isCheckedOut($userid, $row->checked_out);
        }
 
        $checked = '';
        if ($result) {
                $checked = JHtmlGrid::_checkedOut($row);
        } else {
                if ($identifier == 'id')
                        $checked = JHtml::_('grid.id', $i, $row->$identifier);
                else
                        $checked = JHtml::_('grid.id', $i, $row->$identifier, $result, $identifier);
        }
 
        return $checked;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />