API17

Difference between revisions of "JModelAdmin::canDelete"

From Joomla! Documentation

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

Revision as of 21:23, 27 April 2011

The "API17" 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.

Joomla 11.1 JModelAdmin::canDelete[edit]

Description[edit]

Method to test whether a record can be deleted.

Template:Description:JModelAdmin::canDelete [Edit Descripton]

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

See also[edit]

Template:SeeAlso:JModelAdmin::canDelete [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />