Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Resource delete: Difference between revisions

From Catglobe Wiki
Tungocman (talk | contribs)
No edit summary
Tungocman (talk | contribs)
No edit summary
Line 1: Line 1:
=Resource_delete=
= Resource_delete =
&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.
[[Category:Resource_Functions]]
 
 
 
'''Syntax'''<br> '''&nbsp;'''&nbsp;'''&nbsp;''' Resource_delete(ResourceID);


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.




'''Arguments''' <br>&nbsp;&nbsp; ResourceID: is a number. It is the resource id of resource.<br>
===Syntax===
Resource_delete(ResourceID);  




===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.


===Return type===
Boolean
*true if deleted and child resources deleted also.




'''Examples'''
===Examples===


bool RDelstatus =Resource_delete(37278397); <br> print(RDelstatus);&nbsp; &nbsp;&nbsp; // result: true<br>
bool RDelstatus =Resource_delete(37278397); <br>  
 
print(RDelstatus);&nbsp; &nbsp;&nbsp; // result: true
[[Category:Resource_Functions]]

Revision as of 08:28, 9 November 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.


Examples

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