Actions

API15

JHTMLGrid/checkedOut

From Joomla! Documentation

< API15:JHTMLGrid
Revision as of 13:29, 12 May 2013 by JoomlaWikiBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

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

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

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

Examples

<CodeExamplesForm />