This class provides various helper methods which can be used in any php development projects.

package OwpSupportMethods

 Methods

GetUserIP

GetUserIP() : string
Static
method
access public
author Brian Tafoya
version 1.0

Returns

string

OwpPCdebug

OwpPCdebug(mixed $object, string $tag) : mixed
Static
method Debug method.

Parameters

$object

mixed

Object to debug

$tag

string

Object tag

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

string

File to include.

Returns

mixed

randomPasswordAlphaNum

randomPasswordAlphaNum(integer $length) : string
Static
method
access public
author Brian Tafoya
version 1.0

Parameters

$length

integer

Random password length.

Returns

string

uuid

uuid() : string
Static
method
access public
author Brian Tafoya
version 1.0

Returns

string