API16

Difference between revisions of "JHtmlGrid/checkedOut"

From Joomla! Documentation

< API16:JHtmlGrid
(New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JHtmlGrid/checkedOu...)
 
m (removing red link to edit, no existant pages)
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JHtmlGrid/checkedOut|Edit Descripton]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
  
{{Description:JHtmlGrid/checkedOut}}
+
<! removed transcluded page call, red link never existed >
  
 
===Syntax===
 
===Syntax===
Line 15: Line 14:
 
!Description
 
!Description
 
|-
 
|-
|  
+
| &$row
 
|  
 
|  
 
|   
 
|   
Line 62: Line 61:
  
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JHtmlGrid/checkedOut|Edit See Also]]<nowiki>]</nowiki>
+
<nowiki>[<! removed edit link to red link >]</nowiki>
 
</span>
 
</span>
{{SeeAlso:JHtmlGrid/checkedOut}}
+
<! removed transcluded page call, red link never existed >
  
 
===Examples===
 
===Examples===
Line 77: Line 76:
 
  format= ,,,
 
  format= ,,,
 
</dpl>
 
</dpl>
 +
[[Category:Archived pages API16]]

Revision as of 21:57, 13 May 2013

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 edit link to red link >]

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

Syntax[edit]

static 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]

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[edit]

<CodeExamplesForm />