Actions

API17

Difference between revisions of "JModelAdmin::canEditState"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by one user not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JModelAdmin::canEditState|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JModelAdmin::canEditState|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
protected JModelAdmin->canEditState ($record)
+
protected function canEditState ($record)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 27: Line 24:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' boolean True if allowed to change the state of the record. Defaults to the permission for the component.
boolean True if allowed to change the state of the record. Defaults to the permission for the component.
+
* '''Defined''' on line 132 of libraries/joomla/application/component/modeladmin.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/application/component/modeladmin.php
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JModelAdmin::canEditState source code''' on [[jplatform:application/component/modeladmin.php#cl-124|BitBucket]]
 +
* {{JVer|11.1}} Class [[JModelAdmin/11.1|JModelAdmin]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Application/11.1|Application]]
 +
* [[JModelAdmin::canEditState|Other versions of JModelAdmin::canEditState]]
 +
{{SeeAlso:JModelAdmin::canEditState}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JModelAdmin::canEditState|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JModelAdmin::canEditState|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JModelAdmin/11.1|JModelAdmin]]
+
===User contributed notes===
* [[JModelAdmin::canEditState|Other versions of this method]]
+
{{SeeAlso:JModelAdmin::canEditState}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 47: Line 44:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JModelAdmin]][[Category:JModelAdmin::canEditState]]</noinclude>
 
<noinclude>[[Category:JModelAdmin]][[Category:JModelAdmin::canEditState]]</noinclude>

Revision as of 21:23, 27 April 2011

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.

Joomla 11.1 JModelAdmin::canEditState

Description

Method to test whether a record can be deleted.

Description:JModelAdmin::canEditState [Edit Descripton]

protected function canEditState ($record)
Parameter Type Default Description
$record object A record object.
  • Returns boolean True if allowed to change the state of the record. Defaults to the permission for the component.
  • Defined on line 132 of libraries/joomla/application/component/modeladmin.php
  • Since Joomla 11.1

See also

SeeAlso:JModelAdmin::canEditState [Edit See Also]

User contributed notes

<CodeExamplesForm />