PHP Class SlightPHP

Mostrar archivo Open project: hetao29/slightphp Class Usage Examples

Public Properties

Property Type Description
$appDir string
$defaultEntry string
$defaultPage string
$defaultZone string
$entry string current entry
$page string current page
$pathInfo string
$splitFlag string split flag of zone,classs,method
$zone string current zone
$zoneAlias array zoneAlias

Public Methods

Method Description
getAppDir ( ) : string appDir get
getDebug ( ) : boolean debug status get
getDefaultEntry ( ) : string defaultMethod get
getDefaultPage ( ) : string getDefaultClass get
getDefaultZone ( ) : string defaultZone get
getSplitFlag ( ) : string defaultMethod get
getZoneAlias ( string $zone ) : string | boolean
run ( string $path = "" ) : boolean main method!
setAppDir ( string $dir ) : boolean appDir set && get IMPORTANT: you must set absolute path if you use extension mode(extension=SlightPHP.so)
setDebug ( boolean $debug ) : boolean debug status set
setDefaultEntry ( string $entry ) : boolean defaultMethod set
setDefaultPage ( string $page ) : boolean defaultClass set
setDefaultZone ( string $zone ) : boolean defaultZone set
setPathInfo ( $pathInfo )
setSplitFlag ( string $flag ) : boolean splitFlag set
setZoneAlias ( string $zone, string $alias ) : boolean

Private Methods

Method Description
debug ( $debugmsg ) *private

Method Details

getAppDir() public static method

appDir get
public static getAppDir ( ) : string
return string

getDebug() public static method

debug status get
public static getDebug ( ) : boolean
return boolean

getDefaultEntry() public static method

defaultMethod get
public static getDefaultEntry ( ) : string
return string $method

getDefaultPage() public static method

getDefaultClass get
public static getDefaultPage ( ) : string
return string

getDefaultZone() public static method

defaultZone get
public static getDefaultZone ( ) : string
return string

getSplitFlag() public static method

defaultMethod get
public static getSplitFlag ( ) : string
return string

getZoneAlias() public static method

public static getZoneAlias ( string $zone ) : string | boolean
$zone string
return string | boolean | boolean

run() public static method

main method!
public static run ( string $path = "" ) : boolean
$path string
return boolean

setAppDir() public static method

appDir set && get IMPORTANT: you must set absolute path if you use extension mode(extension=SlightPHP.so)
public static setAppDir ( string $dir ) : boolean
$dir string
return boolean

setDebug() public static method

debug status set
public static setDebug ( boolean $debug ) : boolean
$debug boolean
return boolean

setDefaultEntry() public static method

defaultMethod set
public static setDefaultEntry ( string $entry ) : boolean
$entry string
return boolean

setDefaultPage() public static method

defaultClass set
public static setDefaultPage ( string $page ) : boolean
$page string
return boolean

setDefaultZone() public static method

defaultZone set
public static setDefaultZone ( string $zone ) : boolean
$zone string
return boolean

setPathInfo() public static method

public static setPathInfo ( $pathInfo )

setSplitFlag() public static method

splitFlag set
public static setSplitFlag ( string $flag ) : boolean
$flag string
return boolean

setZoneAlias() public static method

public static setZoneAlias ( string $zone, string $alias ) : boolean
$zone string
$alias string
return boolean

Property Details

$appDir public_oe static_oe property

public static string $appDir
return string

$defaultEntry public_oe static_oe property

public static string $defaultEntry
return string

$defaultPage public_oe static_oe property

public static string $defaultPage
return string

$defaultZone public_oe static_oe property

public static string $defaultZone
return string

$entry public_oe static_oe property

current entry
public static string $entry
return string

$page public_oe static_oe property

current page
public static string $page
return string

$pathInfo public_oe static_oe property

public static string $pathInfo
return string

$splitFlag public_oe static_oe property

split flag of zone,classs,method
public static string $splitFlag
return string

$zone public_oe static_oe property

current zone
public static string $zone
return string

$zoneAlias public_oe static_oe property

zoneAlias
public static array $zoneAlias
return array