SlightPHP
in package
FinalYes
Table of Contents
Properties
- $appDir : string
- $defaultEntry : string
- $defaultPage : string
- $defaultType : string
- default file type, like $defaultZone.$defaultType.php
- $defaultZone : string
- $entry : string
- current entry
- $page : string
- current page
- $pageAlias : array<string|int, mixed>
- pageAlias
- $pathInfo : string
- $splitFlag : string
- split flag of zone,classs,method
- $type : string
- current type
- $zone : string
- current zone
- $zoneAlias : array<string|int, mixed>
- zoneAlias
- $_debug : bool
Methods
- getAppDir() : string
- appDir get
- getDebug() : bool
- debug status get
- getDefaultEntry() : string
- defaultMethod get
- getDefaultPage() : string
- defaultPage get
- getDefaultType() : string
- defaultType get
- getDefaultZone() : string
- defaultZone get
- getPageAlias() : string|bool
- getSplitFlag() : string
- defaultMethod get
- getZoneAlias() : string|bool
- run() : bool
- main method!
- setAppDir() : bool
- appDir set && get IMPORTANT: you must set absolute path if you use extension mode(extension=SlightPHP.so)
- setDebug() : bool
- debug status set
- setDefaultEntry() : bool
- defaultMethod set
- setDefaultPage() : bool
- defaultClass set
- setDefaultType() : bool
- defaultType set
- setDefaultZone() : bool
- defaultZone set
- setPageAlias() : bool
- setPathInfo() : mixed
- setSplitFlag() : bool
- splitFlag set
- setZoneAlias() : bool
- debug() : mixed
Properties
$appDir
public
static string
$appDir
= "."
$defaultEntry
public
static string
$defaultEntry
= "entry"
$defaultPage
public
static string
$defaultPage
= "page"
$defaultType
default file type, like $defaultZone.$defaultType.php
public
static string
$defaultType
= "page"
$defaultZone
public
static string
$defaultZone
= "zone"
$entry
current entry
public
static string
$entry
$page
current page
public
static string
$page
$pageAlias
pageAlias
public
static array<string|int, mixed>
$pageAlias
$pathInfo
public
static string
$pathInfo
= ""
$splitFlag
split flag of zone,classs,method
public
static string
$splitFlag
= "/"
$type
current type
public
static string
$type
$zone
current zone
public
static string
$zone
$zoneAlias
zoneAlias
public
static array<string|int, mixed>
$zoneAlias
$_debug
private
static bool
$_debug
= 0
Methods
getAppDir()
appDir get
public
static getAppDir() : string
Return values
stringgetDebug()
debug status get
public
static getDebug() : bool
Return values
boolgetDefaultEntry()
defaultMethod get
public
static getDefaultEntry() : string
Return values
string —$method
getDefaultPage()
defaultPage get
public
static getDefaultPage() : string
Return values
stringgetDefaultType()
defaultType get
public
static getDefaultType() : string
Return values
stringgetDefaultZone()
defaultZone get
public
static getDefaultZone() : string
Return values
stringgetPageAlias()
public
static getPageAlias(string $page) : string|bool
Parameters
- $page : string
Return values
string|boolgetSplitFlag()
defaultMethod get
public
static getSplitFlag() : string
Return values
stringgetZoneAlias()
public
static getZoneAlias(string $zone) : string|bool
Parameters
- $zone : string
Return values
string|boolrun()
main method!
public
static run([string $path = "" ]) : bool
Parameters
- $path : string = ""
Return values
boolsetAppDir()
appDir set && get IMPORTANT: you must set absolute path if you use extension mode(extension=SlightPHP.so)
public
static setAppDir(string $dir) : bool
Parameters
- $dir : string
Return values
boolsetDebug()
debug status set
public
static setDebug(bool $debug) : bool
Parameters
- $debug : bool
Return values
boolsetDefaultEntry()
defaultMethod set
public
static setDefaultEntry(string $entry) : bool
Parameters
- $entry : string
Return values
boolsetDefaultPage()
defaultClass set
public
static setDefaultPage(string $page) : bool
Parameters
- $page : string
Return values
boolsetDefaultType()
defaultType set
public
static setDefaultType(mixed $type) : bool
Parameters
- $type : mixed
Return values
boolsetDefaultZone()
defaultZone set
public
static setDefaultZone(string $zone) : bool
Parameters
- $zone : string
Return values
boolsetPageAlias()
public
static setPageAlias(string $page, string $alias) : bool
Parameters
- $page : string
- $alias : string
Return values
boolsetPathInfo()
public
static setPathInfo(mixed $pathInfo) : mixed
Parameters
- $pathInfo : mixed
setSplitFlag()
splitFlag set
public
static setSplitFlag(string $flag) : bool
Parameters
- $flag : string
Return values
boolsetZoneAlias()
public
static setZoneAlias(string $zone, string $alias) : bool
Parameters
- $zone : string
- $alias : string
Return values
booldebug()
private
static debug(mixed $debugmsg) : mixed
Parameters
- $debugmsg : mixed