-
Notifications
You must be signed in to change notification settings - Fork 1
reference:U
Aaron Junker edited this page Mar 20, 2021
·
2 revisions
- since Pb2.0Bfx0RCA
- in file
/includes/class.inc.php
This class is the main class of USOC.
You need to include configuration.php
first, then includes/class.inc.php
and last initialize the class with newClass()
.
After that you can access all the functions and variables defined in U
via $U
.
This class imports a function if the function is called. This is for saving resources. It's importing from includes/functionname.inc.php
. It's usually not allowed to import functions via including the file. That's only allowed if the function needs to parse difficult strings (like blobs), because the call function of U
can't handle them.
For example creating a function called examplePrint()
- Create a file called
examplePrint.inc.php
in/includes
- Define function
examplePrint()
- Create PHPDoc blocks for the file and for the function. Just look at the other files for examples
Look at the reference index
Manuals
- manual:Download-and-install-USOC
- manual:How to install USOC manually
- manual:plugins
- manual:Set-up-oAuth-with-google
Github Manuals
Reference Index