PHP 클래스 Pommo_Helper, poMMo

..);
파일 보기 프로젝트 열기: soonick/poMMo 1 사용 예제들

공개 메소드들

메소드 설명
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 )