Documentation

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

$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

Methods

getAppDir()

appDir get

public static getAppDir() : string
Return values
string

getDebug()

debug status get

public static getDebug() : bool
Return values
bool

getDefaultEntry()

defaultMethod get

public static getDefaultEntry() : string
Return values
string

$method

getDefaultPage()

defaultPage get

public static getDefaultPage() : string
Return values
string

getDefaultType()

defaultType get

public static getDefaultType() : string
Return values
string

getDefaultZone()

defaultZone get

public static getDefaultZone() : string
Return values
string

getPageAlias()

public static getPageAlias(string $page) : string|bool
Parameters
$page : string
Return values
string|bool

getSplitFlag()

defaultMethod get

public static getSplitFlag() : string
Return values
string

getZoneAlias()

public static getZoneAlias(string $zone) : string|bool
Parameters
$zone : string
Return values
string|bool

run()

main method!

public static run([string $path = "" ]) : bool
Parameters
$path : string = ""
Return values
bool

setAppDir()

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
bool

setDebug()

debug status set

public static setDebug(bool $debug) : bool
Parameters
$debug : bool
Return values
bool

setDefaultEntry()

defaultMethod set

public static setDefaultEntry(string $entry) : bool
Parameters
$entry : string
Return values
bool

setDefaultPage()

defaultClass set

public static setDefaultPage(string $page) : bool
Parameters
$page : string
Return values
bool

setDefaultType()

defaultType set

public static setDefaultType(mixed $type) : bool
Parameters
$type : mixed
Return values
bool

setDefaultZone()

defaultZone set

public static setDefaultZone(string $zone) : bool
Parameters
$zone : string
Return values
bool

setPageAlias()

public static setPageAlias(string $page, string $alias) : bool
Parameters
$page : string
$alias : string
Return values
bool

setPathInfo()

public static setPathInfo(mixed $pathInfo) : mixed
Parameters
$pathInfo : mixed

setSplitFlag()

splitFlag set

public static setSplitFlag(string $flag) : bool
Parameters
$flag : string
Return values
bool

setZoneAlias()

public static setZoneAlias(string $zone, string $alias) : bool
Parameters
$zone : string
$alias : string
Return values
bool

debug()

private static debug(mixed $debugmsg) : mixed
Parameters
$debugmsg : mixed

        
On this page

Search results