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
Cg_pham (talk | contribs)
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
= Resource_delete =
{{HelpFiles}}
[[Category:Resource_Functions]]
= 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.
 
<br>
 
=== Syntax  ===
 
Resource_delete(ResourceID)
 
<br>


Delete a specific resource.
=== Arguments  ===
*User must have administrator right on the resource which will be deleted.
*And user also must have navigation access to that resource.


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


===Syntax===
<br>
Resource_delete(ResourceID);


=== Return type  ===


===Arguments===
Boolean
ResourceID: is a number. It is the resource id of resource.


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


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


=== Examples  ===


===Examples===
bool RDelstatus =Resource_delete(37278397); <br> print(RDelstatus);&nbsp; &nbsp;&nbsp; // result: true


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

Latest revision as of 02: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