Constants

CONTAINER_NAME

CONTAINER_NAME

Session container for table instances

CACHE_TYPE_NONE

CACHE_TYPE_NONE

Cache type none

CACHE_TYPE_SESSION

CACHE_TYPE_SESSION

Cache type session

CACHE_TYPE_RUNTIME

CACHE_TYPE_RUNTIME

Cache type runtime (data will be written to file and loaded as PHP)

Properties

$_tableInstanceCacheType

$_tableInstanceCacheType : integer

Type

integer

$_tableInstances

$_tableInstances : 

Type

$_actionInstances

$_actionInstances : 

Type

Methods

getCacheType()

getCacheType(string  $value) : integer

Gets the cache type for given name

Parameters

string $value

Returns

integer

checkInstance()

checkInstance(object  $obj, string|null  $superClass = null) : void

Checks if objected is of given class type

Parameters

object $obj
string|null $superClass

Throws

\Fuman_Exception

createInstance()

createInstance(string  $className, null|string  $superClass = null) : object

Creates an instance of the given className. Checks if the instance is an instance of superClass.

Parameters

string $className
null|string $superClass

Throws

\Fuman_Exception

Returns

object

getDb()

getDb(\stdClass  $dbConfig) : \Fuman_Db_Abstract

Returns a Instance of {@link Fuman_Db_Abstract}

Parameters

\stdClass $dbConfig

Throws

\Fuman_Exception

When Driver is not available on System

Returns

\Fuman_Db_Abstract

createUriBuilder()

createUriBuilder(string  $uriClassName) : \Fuman_Uri_AbstractBuilder

Returns an instance of {@link Fuman_Uri_AbstractBuilder}

Parameters

string $uriClassName

Returns

\Fuman_Uri_AbstractBuilder

getAction()

getAction(string  $appName, string  $actionName, boolean  $forceNew = false) : \Fuman_Action_Abstract

Returns an instance of {@link Fuman_Action_Abstract}

Parameters

string $appName
string $actionName
boolean $forceNew

Returns

\Fuman_Action_Abstract

getTableInstance()

getTableInstance(string  $uniqueName, boolean  $notFromCache = false) : \Fuman_Table

Returns an instance of {@link Fuman_Table}

Internally we use an array instead of stdClass that it can be serialized into RuntimeCache

Parameters

string $uniqueName
boolean $notFromCache

Throws

\Fuman_Exception

Returns

\Fuman_Table

invalidateCaches()

invalidateCaches() 

Deletes internal caches if any

getGlobalAuth()

getGlobalAuth() : \Fuman_Auth_Http_Abstract

Returns an instance of the configured globalauth_classname This class will protect all requests!

Throws

\Fuman_Exception

Returns

\Fuman_Auth_Http_Abstract

| Fuman_Action_Abstract

getHttpAuth()

getHttpAuth() : \Fuman_Auth_Http_Abstract

Returns an instance of the configured httpauth_classname This class will protected all requests to actions which does accept http auth.

Throws

\Fuman_Exception

Returns

\Fuman_Auth_Http_Abstract

_getTableDisplayName()

_getTableDisplayName(  $tableInfo,   $key) : string

Parameters

$tableInfo
$key

Returns

string