\

Namespaces

Alo
Controller

Classes

Alo The global framework class
EasyPeasyICS Class EasyPeasyICS.
Kint
Kint_Decorators_Concise
Kint_Decorators_Plain
Kint_Decorators_Rich
Kint_Parsers_ArrayObject
Kint_Parsers_ClassMethods
Kint_Parsers_ClassStatics
Kint_Parsers_Color
Kint_Parsers_Json
Kint_Parsers_Microtime
Kint_Parsers_SplFileInfo
Kint_Parsers_SplObjectStorage
Kint_Parsers_Timestamp
Kint_Parsers_Xml
kintParser
kintVariableData
Log Logs messages
ntlm_sasl_client_class
PHPMailer PHPMailer - PHP email creation and transport class.
phpmailerException PHPMailer exception handler
POP3 PHPMailer POP-Before-SMTP Authentication Class.
SMTP PHPMailer RFC821 SMTP email transport class.

Constants

ALO_EMAIL_AUTH

ALO_EMAIL_AUTH

Whether to use authentication

ALO_EMAIL_ERR_LANG

ALO_EMAIL_ERR_LANG

Default email error message language. See files at /sys/external/email/language

ALO_EMAIL_FROM_DEFAULT_ADDR

ALO_EMAIL_FROM_DEFAULT_ADDR

Address messages will come from by default

ALO_EMAIL_FROM_DEFAULT_NAME

ALO_EMAIL_FROM_DEFAULT_NAME

Sender name by default

ALO_EMAIL_HOSTS

ALO_EMAIL_HOSTS

Hosts as well as backup hosts to use, separated by semicolon

ALO_EMAIL_HTML_ENABLED

ALO_EMAIL_HTML_ENABLED

Whether to enable HTML emails by defualt

ALO_EMAIL_PASSWORD

ALO_EMAIL_PASSWORD

Authentication password

ALO_EMAIL_PORT

ALO_EMAIL_PORT

Email port

ALO_EMAIL_SECURE

ALO_EMAIL_SECURE

Security protocol to use

ALO_EMAIL_SUBJECT_DEFAULT

ALO_EMAIL_SUBJECT_DEFAULT

Default subject to set

ALO_EMAIL_USE_SMTP

ALO_EMAIL_USE_SMTP

Whether to use SMTP by default

ALO_EMAIL_USERNAME

ALO_EMAIL_USERNAME

Authentication username

ALO_MEMCACHED_IP

ALO_MEMCACHED_IP

The default Memcached IP to use

ALO_MEMCACHED_PORT

ALO_MEMCACHED_PORT

The default Memcached port to use

ALO_MYSQL_CACHE

ALO_MYSQL_CACHE

Which caching class to use. These are found in sys/class/alo/cache

ALO_MYSQL_CACHE_PREFIX

ALO_MYSQL_CACHE_PREFIX

The prefix to use for DB cache keys

ALO_MYSQL_DATABASE

ALO_MYSQL_DATABASE

The default database to connect to

ALO_MYSQL_PORT

ALO_MYSQL_PORT

The default database port to use

ALO_MYSQL_PW

ALO_MYSQL_PW

The default password to use

ALO_MYSQL_SERVER

ALO_MYSQL_SERVER

The default database server IP/host to use

ALO_MYSQL_USER

ALO_MYSQL_USER

The default username to use

ALO_SESSION_CLEANUP

ALO_SESSION_CLEANUP

Probability of a session cleanup. To be called on request. Entering 100 would mean that there is a 1/100 chance.

ALO_SESSION_FINGERPRINT

ALO_SESSION_FINGERPRINT

The fingerprint variable key for sessions

ALO_SESSION_MC_PREFIX

ALO_SESSION_MC_PREFIX

The prefix for MemcachedSession keys

ALO_SESSION_TIMEOUT

ALO_SESSION_TIMEOUT

Session cookie timeout in seconds

DIR_APP

DIR_APP

Application directory

DIR_INDEX

DIR_INDEX

Index directory

DIR_SYS

DIR_SYS

System directory

DIR_TMP

DIR_TMP

The temp directory

ENV_DEVELOPMENT

ENV_DEVELOPMENT

Defines the environment as "development"

ENV_PRODUCTION

ENV_PRODUCTION

Defines the environment as "production"

ENV_SETUP

ENV_SETUP

Defines the environment as "setup"

ENVIRONMENT

ENVIRONMENT

The application environment. Valid values are "setup" "dev

GEN_START

GEN_START

To calculate generation time

KINT_DIR

KINT_DIR

Kint is a zero-setup debugging tool to output information about variables and stack traces prettily and comfortably. https://github.com/raveren/kint

LOG_INTENSE

LOG_INTENSE

If logging is set to intense, an entire debug backtrace will be appended to each row, otherwise it's just the last file and line number

LOG_LEVEL

LOG_LEVEL

Defines the log level. Valid values are LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR and LOG_LEVEL_NONE

LOG_LEVEL_DEBUG

LOG_LEVEL_DEBUG

Defines a logging level as "debug"

LOG_LEVEL_ERROR

LOG_LEVEL_ERROR

Defines a logging level as "error"

LOG_LEVEL_NONE

LOG_LEVEL_NONE

Defines a logging level as "no logging"

SASL_CONTINUE

SASL_CONTINUE

SASL_FAIL

SASL_FAIL

SASL_NTLM_STATE_DONE

SASL_NTLM_STATE_DONE

SASL_NTLM_STATE_IDENTIFY_DOMAIN

SASL_NTLM_STATE_IDENTIFY_DOMAIN

SASL_NTLM_STATE_RESPOND_CHALLENGE

SASL_NTLM_STATE_RESPOND_CHALLENGE

SASL_NTLM_STATE_START

SASL_NTLM_STATE_START

T_NS_SEPARATOR

T_NS_SEPARATOR

Functions

__autoload()

__autoload(string  $classname) 

Fall back to traditional autoload for old PHP versions

Parameters

string $classname

The name of the class to load

dd()

dd() : string

Alias of Kint::dump() [!!!] IMPORTANT: execution will halt after call to this function

Returns

string

debug()

debug() : string

Returns a debug string of the passed on variables

Returns

string

escape()

escape(String|array  $item) : String|array

Escapes a string or array

Parameters

String|array $item

The item to be escaped

Returns

String|array

get()

get(mixed  $var) : mixed

A shortcut to isset($var) ? $var : null

Parameters

mixed $var

The variable to "return"

Returns

mixed

getallheaders()

getallheaders() : array

Implement getallheaders() for non-apache servers

Returns

array

getFingerprint()

getFingerprint() : string

Returns an unhashed browser/IP fingerprint

Returns

string

getUniqid()

getUniqid(string  $hash = 'md5', string|integer  $prefix = null, integer  $entropy = 5) : string

Generates a unique identifier

Parameters

string $hash

Hash algorithm

string|integer $prefix

Prefix for the identifier

integer $entropy

Number of pseudo bytes used in entropy

Returns

string

HTMLFilter()

HTMLFilter(  $body,   $trans_image_path,   $block_external_images = false) 

Parameters

$body
$trans_image_path
$block_external_images

kintLite()

kintLite(  $var, integer  $level) : string

lightweight version of Kint::dump(). Uses whitespace for formatting instead of html sadly not DRY yet

Parameters

$var
integer $level

Returns

string

lite_debug()

lite_debug() : string

Returns a lite debug string of passed on variables

Returns

string

PHPMailerAutoload()

PHPMailerAutoload(string  $classname) 

PHPMailer SPL autoloader.

Parameters

string $classname

The name of the class to load

s()

s() : string

Alias of kintLite()

Returns

string

sd()

sd() : string

Alias of kintLite() [!!!] IMPORTANT: execution will halt after call to this function

Returns

string

timestamp_precise()

timestamp_precise(float  $microtime = null) : string

Returns a very precise timestamp

Parameters

float $microtime

Optionally, supply your own microtime

Returns

string —

Y-m-d H:i:s:{milliseconds}

tln_body2div()

tln_body2div(  $attary,   $trans_image_path) 

Parameters

$attary
$trans_image_path

tln_casenormalize()

tln_casenormalize(string  $val) : void

A small helper function to use with array_walk. Modifies a by-ref value and makes it lowercase.

Parameters

string $val

a value passed by-ref.

tln_deent()

tln_deent(string  $attvalue, string  $regex, boolean  $hex = false) : boolean

Translates entities into literal values so they can be checked.

Parameters

string $attvalue

the by-ref value to check.

string $regex

the regular expression to check against.

boolean $hex

whether the entites are hexadecimal.

Returns

boolean —

True or False depending on whether there were matches.

tln_defang()

tln_defang(string  $attvalue) : \Void,

This function checks attribute values for entity-encoded values and returns them translated into 8-bit strings so we can run checks on them.

Parameters

string $attvalue

A string to run entity check against.

Returns

\Void, —

modifies a reference value.

tln_findnxreg()

tln_findnxreg(string  $body, integer  $offset, string  $reg) : array|boolean

This function takes a PCRE-style regexp and tries to match it within the string.

Parameters

string $body

The string to look for needle in.

integer $offset

Start looking from here.

string $reg

A PCRE-style regex to match.

Returns

array|boolean —

Returns a false if no matches found, or an array with the following members:

  • integer with the location of the match within $body
  • string with whatever content between offset and the match
  • string with whatever it is we matched

tln_findnxstr()

tln_findnxstr(string  $body, integer  $offset, string  $needle) : integer

This function looks for the next character within a string. It's really just a glorified "strpos", except it catches the failures nicely.

Parameters

string $body

The string to look for needle in.

integer $offset

Start looking from this position.

string $needle

The character/string to look for.

Returns

integer —

location of the next occurrence of the needle, or strlen($body) if needle wasn't found.

tln_fixatts()

tln_fixatts(string  $tagname, array  $attary, array  $rm_attnames, array  $bad_attvals, array  $add_attr_to_tag, string  $trans_image_path, boolean  $block_external_images) : Array

This function runs various checks against the attributes.

Parameters

string $tagname

String with the name of the tag.

array $attary

Array with all tag attributes.

array $rm_attnames

See description for tln_sanitize

array $bad_attvals

See description for tln_sanitize

array $add_attr_to_tag

See description for tln_sanitize

string $trans_image_path
boolean $block_external_images

Returns

Array —

with modified attributes.

tln_fixstyle()

tln_fixstyle(  $body,   $pos,   $trans_image_path,   $block_external_images) 

Parameters

$body
$pos
$trans_image_path
$block_external_images

tln_fixurl()

tln_fixurl(  $attname,   $attvalue,   $trans_image_path,   $block_external_images) 

Parameters

$attname
$attvalue
$trans_image_path
$block_external_images

tln_getnxtag()

tln_getnxtag(string  $body, integer  $offset) : array|boolean

This function looks for the next tag.

Parameters

string $body

String where to look for the next tag.

integer $offset

Start looking from here.

Returns

array|boolean —

false if no more tags exist in the body, or an array with the following members:

  • string with the name of the tag
  • array with attributes and their values
  • integer with tag type (1, 2, or 3)
  • integer where the tag starts (starting "<")
  • integer where the tag ends (ending ">") first three members will be false, if the tag is invalid.

tln_sanitize()

tln_sanitize(string  $body, array  $tag_list, array  $rm_tags_with_content, array  $self_closing_tags, boolean  $force_tag_closing, array  $rm_attnames, array  $bad_attvals, array  $add_attr_to_tag, string  $trans_image_path, boolean  $block_external_images) : string

Parameters

string $body

The HTML you wish to filter

array $tag_list

see description above

array $rm_tags_with_content

see description above

array $self_closing_tags

see description above

boolean $force_tag_closing

see description above

array $rm_attnames

see description above

array $bad_attvals

see description above

array $add_attr_to_tag

see description above

string $trans_image_path
boolean $block_external_images

Returns

string —

Sanitized html safe to show on your pages.

tln_skipspace()

tln_skipspace(string  $body, integer  $offset) : integer

This function skips any whitespace from the current position within a string and to the next non-whitespace value.

Parameters

string $body

the string

integer $offset

the offset within the string where we should start looking for the next non-whitespace character.

Returns

integer —

the location within the $body where the next non-whitespace char is located.

tln_tagprint()

tln_tagprint(string  $tagname, array  $attary, integer  $tagtype) : string

This function returns the final tag out of the tag name, an array of attributes, and the type of the tag. This function is called by tln_sanitize internally.

Parameters

string $tagname

the name of the tag.

array $attary

the array of attributes and their values

integer $tagtype

The type of the tag (see in comments).

Returns

string —

A string with the final tag representation.

tln_unspace()

tln_unspace(string  $attvalue) : \Void,

Kill any tabs, newlines, or carriage returns. Our friends the makers of the browser with 95% market value decided that it'd be funny to make "java[tab]script" be just as good as "javascript".

Parameters

string $attvalue

The attribute value before extraneous spaces removed.

Returns

\Void, —

modifies a reference value.