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 .
Afficher le fichier Open project: intelliants/subrion Class Usage Examples

Méthodes publiques

Свойство Type Description
$iaCache
$iaDb
$iaView
$language
$languages
$packagesData
$requestPath

Protected Properties

Свойство Type Description
$_accessType
$_checkDomain
$_config
$_configDbTable
$_configGroupsDbTable
$_customConfig
$_customConfigDbTable
$_hooks

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

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

Private Methods

Méthode Description
_setTimezone ( $timezone )

Method Details

__clone() protected méthode

protected __clone ( )

__construct() protected méthode

protected __construct ( )

__destruct() public méthode

public __destruct ( )

_checkPermissions() protected méthode

protected _checkPermissions ( )

_defineModule() protected méthode

protected _defineModule ( )

_executeModule() protected méthode

protected _executeModule ( )

_fetchHooks() protected méthode

Set the list of available hooks
protected _fetchHooks ( )

_forgeryCheck() protected méthode

protected _forgeryCheck ( )

_parseUrl() protected méthode

protected _parseUrl ( )

_setConstants() protected méthode

Set constants
protected _setConstants ( )

checkDomain() public méthode

public checkDomain ( )

factory() public méthode

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

factoryPackage() public méthode

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

factoryPlugin() public méthode

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

get() public méthode

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
Résultat string

getAccessType() public méthode

public getAccessType ( )

getConfig() public méthode

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

getConfigGroupsTable() public static méthode

Get config groups table name
public static getConfigGroupsTable ( ) : string
Résultat string

getConfigTable() public static méthode

Get config table name
public static getConfigTable ( ) : string
Résultat string

getCustomConfig() public méthode

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
Résultat array

getCustomConfigTable() public static méthode

Get custom config table name
public static getCustomConfigTable ( ) : string
Résultat string

getExtras() public méthode

public getExtras ( $package )

getHooks() public méthode

Get the list of hooks
public getHooks ( ) : array
Résultat array

getSecurityToken() public méthode

public getSecurityToken ( )

init() public méthode

public init ( )

instance() public static méthode

public static instance ( )

loadClass() public méthode

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

set() public méthode

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
Résultat boolean

setPackagesData() public méthode

public setPackagesData ( $regenerate = false )

startHook() public méthode

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

util() public static méthode

public static util ( )

Property Details

$_accessType protected_oe property

protected $_accessType

$_checkDomain protected_oe property

protected $_checkDomain

$_config protected_oe property

protected $_config

$_configDbTable protected_oe static_oe property

protected static $_configDbTable

$_configGroupsDbTable protected_oe static_oe property

protected static $_configGroupsDbTable

$_customConfig protected_oe property

protected $_customConfig

$_customConfigDbTable protected_oe static_oe property

protected static $_customConfigDbTable

$_hooks protected_oe property

protected $_hooks

$iaCache public_oe property

public $iaCache

$iaDb public_oe property

public $iaDb

$iaView public_oe property

public $iaView

$language public_oe property

public $language

$languages public_oe property

public $languages

$packagesData public_oe property

public $packagesData

$requestPath public_oe property

public $requestPath