User Tools

Site Tools


uphp:library_functions:library_functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

uphp:library_functions:library_functions [2021/04/07 10:39]
admin
uphp:library_functions:library_functions [2021/09/13 05:57]
Line 1: Line 1:
-======uPHP Library Reference====== 
- 
-uPHP Library functions are functions that are written in uPHP and distributed with the WattmonOS installation.  You will need to include the relevant file using include() before calling the function. 
- 
-Click on the function name for further details: 
- 
-^FUNCTION NAME^PARAMETER(S)^RETURN^DESCRIPTION^ 
-|[[add_cron]]|<html><span style="color:green">int<span style="color:blue"> filename<span style="color:black">,  
-<span style="color:green">string<span style="color:blue"> interval<span style="color:black"> 
-</html>|<html><span style="color:black"> int</html>|Add a scheduled CRON script| 
-|[[add_role]]|<html><span style="color:green">int<span style="color:blue"> id<span style="color:black">,  
-<span style="color:green">string<span style="color:blue"> role_name<span style="color:black">, 
-<span style="color:green">int<span style="color:blue"> role_group<span style="color:black">,  
-<span style="color:green">int<span style="color:blue"> role_type<span style="color:black">,  
-<span style="color:green">int<span style="color:blue"> role_show<span style="color:black">,  
-<span style="color:green">int<span style="color:blue"> role_def<span style="color:black">,  
-<span style="color:green">string<span style="color:blue"> role_devices<span style="color:black"> 
-</html>|<html><span style="color:black"> none</html>|Add a system role| 
-|[[fgets_long]]|<html><span style="color:green">int<span style="color:blue"> handle</html>|<html><span style="color:green">string<span style="color:black"> line</html>|Read a line without length restriction from an open file| 
-|[[quick_sort]]|<html><span style="color:green">array<span style="color:blue"> src_array<span style="color:black">,  
-<span style="color:green">int<span style="color:blue"> sort_type<span style="color:black"></html>|<html><span style="color:green">array<span style="color:black"> res</html>|Sort an array using quicksort| 
-|[[remove_cron]]|<html><span style="color:green">int<span style="color:blue"> filename<span style="color:black"> 
-</html>|<html><span style="color:black"> int</html>|Remove a scheduled CRON script| 
  
uphp/library_functions/library_functions.txt · Last modified: 2021/09/13 05:57 (external edit)