Difference between revisions of "Resource delete"

From Catglobe Wiki
Jump to: navigation, search
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
=Resource_delete=
+
{{HelpFiles}}
&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;- Delete a specific resource.<br>&nbsp;&nbsp;&nbsp;&nbsp;+ User must have administrator right on the resource which will be deleted.<br>&nbsp;&nbsp;&nbsp;&nbsp;+ And user also must have navigation access to that resource.
+
= Resource_delete =
  
 +
Delete a specific resource.
  
 +
*User must have administrator right on the resource which will be deleted.
 +
*And user also must have navigation access to that resource.
  
'''Syntax'''<br> '''&nbsp;'''&nbsp;'''&nbsp;''' Resource_delete(ResourceID);
+
<br>  
  
 +
=== Syntax  ===
  
 +
Resource_delete(ResourceID)
  
'''Arguments''' <br>&nbsp;&nbsp; ResourceID: is a number. It is the resource id of resource.<br>  
+
<br>
  
 +
=== Arguments  ===
  
 +
ResourceID: is a number. It is the resource id of resource.
  
'''Return type'''<br> &nbsp;&nbsp;&nbsp; Boolean <br> &nbsp;&nbsp; -&nbsp; true if deleted and child resources deleted also.
+
<br>  
  
 +
=== Return type  ===
  
 +
Boolean
  
'''Examples'''
+
*true if deleted and child resources deleted also.
 +
*false if the resource can not be deleted.
  
bool RDelstatus =Resource_delete(37278397); <br> print(RDelstatus);&nbsp; &nbsp;&nbsp; // result: true<br>
+
<br>
 +
 
 +
=== Examples  ===
 +
 
 +
bool RDelstatus =Resource_delete(37278397); <br> print(RDelstatus);&nbsp; &nbsp;&nbsp; // result: true  
  
 
[[Category:Resource_Functions]]
 
[[Category:Resource_Functions]]
 +
__NOTOC__

Latest revision as of 03:51, 14 December 2011

Resource_delete

Delete a specific resource.

  • User must have administrator right on the resource which will be deleted.
  • And user also must have navigation access to that resource.


Syntax

Resource_delete(ResourceID)


Arguments

ResourceID: is a number. It is the resource id of resource.


Return type

Boolean

  • true if deleted and child resources deleted also.
  • false if the resource can not be deleted.


Examples

bool RDelstatus =Resource_delete(37278397);
print(RDelstatus);     // result: true