Difference between revisions of "Resource delete"

From Catglobe Wiki
Jump to: navigation, search
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Resource_delete'''<br>;
+
{{HelpFiles}}
<br>&nbsp;&nbsp;&nbsp;&nbsp; Delete a resource.<br> &nbsp;&nbsp; - User must have full access to that resource or error will return false if no access to child resources or problem with deleting.<br> &nbsp;&nbsp; - And user must have nav access to the right xxx_delete also.
+
= Resource_delete =
  
'''Syntax'''
+
Delete a specific resource.
  
'''&nbsp;'''&nbsp;'''&nbsp;''' Resource_delete(ResourceID);
+
*User must have administrator right on the resource which will be deleted.
 +
*And user also must have navigation access to that resource.
  
<br> '''Arguments''' <br>ResourceID: is a number. <br>  
+
<br>  
  
'''Return type''' bool. + true if deleted and child resources deleted also.
+
=== Syntax  ===
  
'''Examples'''
+
Resource_delete(ResourceID)
  
bool RDelstatus =Resource_delete(37278397);
+
<br>
  
print(RDelstatus);  
+
=== Arguments  ===
 +
 
 +
ResourceID: is a number. It is the resource id of resource.
 +
 
 +
<br>
 +
 
 +
=== Return type  ===
 +
 
 +
Boolean
 +
 
 +
*true if deleted and child resources deleted also.
 +
*false if the resource can not be deleted.
 +
 
 +
<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 04: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