PHP Класс Pommo_Helper, poMMo

..);
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
arrayIntersect ( &$a1, &$a2 ) returns an array containing all the values of array1 which have matching keys that are present in a2
isAjax ( ) returns true if the page has been requested via a browser XMLHTTPRequest (AJAX call)
isDupe ( &$in, $includeUnsubscribed = false ) returns an array of duplicate found emails. FALSE if no dupes were found.
isEmail ( $_address ) returns email legitimacy (bool)
isEmailS ( $value )
makeCode ( $length = false ) returns code (str)
makePassword ( )
parseConfig ( $file ) Parse a config file, return an array containing key: value
slashStrip ( $input ) deeply strips slashes added by magic quotes. Generally used on $_POST & $_GET.
timeFromStr ( $str ) piggy backs on adodb's excellent time library -- supporting a wide range of dates (100AD +)
timeGetFormat ( ) Returns the current dateformat as a string
timeToStr ( $int ) Function will allow overidding of default date display format (MM/DD/YY vs. DD/MM/YY vs. YYYY/MM/DD etc.)
trimArray ( &$a ) trims an array of whitespace
trimValue ( &$value )

Описание методов

arrayIntersect() статический публичный Метод

returns an array containing all the values of array1 which have matching keys that are present in a2
static public arrayIntersect ( &$a1, &$a2 )

isAjax() публичный Метод

returns true if the page has been requested via a browser XMLHTTPRequest (AJAX call)
public isAjax ( )

isDupe() публичный статический Метод

returns an array of duplicate found emails. FALSE if no dupes were found.
public static isDupe ( &$in, $includeUnsubscribed = false )

isEmail() публичный статический Метод

returns email legitimacy (bool)
public static isEmail ( $_address )

isEmailS() публичный Метод

public isEmailS ( $value )

makeCode() статический публичный Метод

returns code (str)
static public makeCode ( $length = false )

makePassword() публичный Метод

public makePassword ( )

parseConfig() статический публичный Метод

Grammar of config file is; [key] = "value" or [key] = i am a value If parser comes across a trimmed line not beginning with [, the line will be ignored. this flexible grammar allows for commets and user error (non homogenous syntax)
static public parseConfig ( $file )

slashStrip() публичный Метод

deeply strips slashes added by magic quotes. Generally used on $_POST & $_GET.
public slashStrip ( $input )

timeFromStr() публичный Метод

piggy backs on adodb's excellent time library -- supporting a wide range of dates (100AD +)
public timeFromStr ( $str )

timeGetFormat() публичный Метод

Returns the current dateformat as a string
public timeGetFormat ( )

timeToStr() публичный Метод

Function will allow overidding of default date display format (MM/DD/YY vs. DD/MM/YY vs. YYYY/MM/DD etc.)
public timeToStr ( $int )

trimArray() публичный Метод

trims an array of whitespace
public trimArray ( &$a )

trimValue() публичный Метод

public trimValue ( &$value )