PHP Class iaCore

Subrion - open source content management system Copyright (C) 2016 Intelliants, LLC This file is part of Subrion. Subrion is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Subrion is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Subrion. If not, see .
Show file Open project: intelliants/subrion Class Usage Examples

Public Properties

Property Type Description
$iaCache
$iaDb
$iaView
$language
$languages
$packagesData
$requestPath

Protected Properties

Property Type Description
$_accessType
$_checkDomain
$_config
$_configDbTable
$_configGroupsDbTable
$_customConfig
$_customConfigDbTable
$_hooks

Public Methods

Method Description
__destruct ( )
checkDomain ( )
factory ( $name, $type = self::CORE )
factoryPackage ( $name, $package, $type = self::FRONT, $params = null )
factoryPlugin ( $plugin, $type = self::FRONT, $name = null )
get ( string $key, boolean | false $default = false, boolean | true $custom = true, boolean | false $db = false ) : string Get the specified configuration value
getAccessType ( )
getConfig ( boolean | false $reloadRequired = false ) : array Get the list of configuration values & cache it when needed
getConfigGroupsTable ( ) : string Get config groups table name
getConfigTable ( ) : string Get config table name
getCustomConfig ( null $user = null, null $group = null ) : array Get the list of user/group specific configuration values
getCustomConfigTable ( ) : string Get custom config table name
getExtras ( $package )
getHooks ( ) : array Get the list of hooks
getSecurityToken ( )
init ( )
instance ( )
loadClass ( $type = self::CORE, $className = '', $pluginName = null, $packageName = null )
set ( string $key, string $value, boolean | false $permanent = false ) : boolean Set a given configuration value
setPackagesData ( $regenerate = false )
startHook ( $name, array $params = [] )
util ( )

Protected Methods

Method Description
__clone ( )
__construct ( )
_checkPermissions ( )
_defineModule ( )
_executeModule ( )
_fetchHooks ( ) Set the list of available hooks
_forgeryCheck ( )
_parseUrl ( )
_setConstants ( ) Set constants

Private Methods

Method Description
_setTimezone ( $timezone )

Method Details

__clone() protected method

protected __clone ( )

__construct() protected method

protected __construct ( )

__destruct() public method

public __destruct ( )

_checkPermissions() protected method

protected _checkPermissions ( )

_defineModule() protected method

protected _defineModule ( )

_executeModule() protected method

protected _executeModule ( )

_fetchHooks() protected method

Set the list of available hooks
protected _fetchHooks ( )

_forgeryCheck() protected method

protected _forgeryCheck ( )

_parseUrl() protected method

protected _parseUrl ( )

_setConstants() protected method

Set constants
protected _setConstants ( )

checkDomain() public method

public checkDomain ( )

factory() public method

public factory ( $name, $type = self::CORE )

factoryPackage() public method

public factoryPackage ( $name, $package, $type = self::FRONT, $params = null )

factoryPlugin() public method

public factoryPlugin ( $plugin, $type = self::FRONT, $name = null )

get() public method

Get the specified configuration value
public get ( string $key, boolean | false $default = false, boolean | true $custom = true, boolean | false $db = false ) : string
$key string configuration key
$default boolean | false default value
$custom boolean | true custom config flag
$db boolean | false true gets from database directly
return string

getAccessType() public method

public getAccessType ( )

getConfig() public method

Get the list of configuration values & cache it when needed
public getConfig ( boolean | false $reloadRequired = false ) : array
$reloadRequired boolean | false true forces cache reload
return array

getConfigGroupsTable() public static method

Get config groups table name
public static getConfigGroupsTable ( ) : string
return string

getConfigTable() public static method

Get config table name
public static getConfigTable ( ) : string
return string

getCustomConfig() public method

Get the list of user/group specific configuration values
public getCustomConfig ( null $user = null, null $group = null ) : array
$user null user id
$group null group id
return array

getCustomConfigTable() public static method

Get custom config table name
public static getCustomConfigTable ( ) : string
return string

getExtras() public method

public getExtras ( $package )

getHooks() public method

Get the list of hooks
public getHooks ( ) : array
return array

getSecurityToken() public method

public getSecurityToken ( )

init() public method

public init ( )

instance() public static method

public static instance ( )

loadClass() public method

public loadClass ( $type = self::CORE, $className = '', $pluginName = null, $packageName = null )

set() public method

Set a given configuration value
public set ( string $key, string $value, boolean | false $permanent = false ) : boolean
$key string configuration key
$value string configuration value
$permanent boolean | false saves permanently in db
return boolean

setPackagesData() public method

public setPackagesData ( $regenerate = false )

startHook() public method

public startHook ( $name, array $params = [] )
$params array

util() public static method

public static util ( )

Property Details

$_accessType protected property

protected $_accessType

$_checkDomain protected property

protected $_checkDomain

$_config protected property

protected $_config

$_configDbTable protected static property

protected static $_configDbTable

$_configGroupsDbTable protected static property

protected static $_configGroupsDbTable

$_customConfig protected property

protected $_customConfig

$_customConfigDbTable protected static property

protected static $_customConfigDbTable

$_hooks protected property

protected $_hooks

$iaCache public property

public $iaCache

$iaDb public property

public $iaDb

$iaView public property

public $iaView

$language public property

public $language

$languages public property

public $languages

$packagesData public property

public $packagesData

$requestPath public property

public $requestPath