JHTMLGrid/checkedOut
From Joomla! Documentation
< API15:JHTMLGrid
The "API15" 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.
Template:Description:JHTMLGrid/checkedOut
Syntax[edit]
checkedOut(&$row, $i, $identifier= 'id')
Parameter Name | Default Value | Description |
---|---|---|
&$row | ||
$i | ||
$identifier | 'id' |
Defined in[edit]
libraries/joomla/html/html/grid.php
Importing[edit]
jimport( 'joomla.html.html.grid' );
Source Body[edit]
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;
}
[Edit See Also] Template:SeeAlso:JHTMLGrid/checkedOut
Examples[edit]
<CodeExamplesForm />