This class provides various helper methods which can be used in any php development projects.
Methods
GetUserIP
GetUserIP() : string
Static
OwpPCdebug
OwpPCdebug(mixed $object, string $tag) : mixed
Static
Parameters
$object
mixedObject to debug
Returns
mixed
file_get_php_classes
file_get_php_classes($filepath) : array
Static
| method |
Get classes from a file. |
Parameters
$filepath
Returns
array
filterAction
filterAction($action) : string
Static
| method |
Includes file if it exists. |
| access |
public |
Parameters
$action
Returns
string
get_php_classes
get_php_classes($php_code) : array
Static
| method |
Get classes froma string. |
Parameters
$php_code
Returns
array
includeIfExists
includeIfExists(string $file) : mixed
Static
| method |
Includes file if it exists. |
| access |
public |
| author |
Brian Tafoya |
| version |
1.0 |
Parameters
$file
stringFile to include.
Returns
mixed
randomPasswordAlphaNum
randomPasswordAlphaNum(integer $length) : string
Static
Parameters
$length
integerRandom password length.
Returns
string
uuid
uuid() : string
Static