PHP Класс Jarves\Configuration\Configs

Наследование: implements IteratorAggregate
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$core Jarves\Jarves
$needRebootBy
$triggeredReboot

Открытые методы

Метод Описание
__construct ( Jarves $core, array $bundles = null )
__sleep ( )
addConfig ( Bundle $bundle )
addReboot ( string $source ) Recalls bootRunTime on each field when this is call inside one bootRunTime.
boot ( ) : boolean
getConfig ( string $bundleName ) : Bundle
getConfigFiles ( Symfony\Component\HttpKernel\Bundle\BundleInterface $bundle ) : string[]
getConfigHash ( string $bundleName ) : string Returns a md5 hash of all jarves config files (Resources/config/jarves.*.xml).
getConfigs ( ) : Bundle[]
getContentType ( string $id ) : ContentType | null
getContentTypes ( ) : ContentType[]
getFieldType ( string $id ) : FieldType | null
getFieldTypes ( ) : FieldType[]
getIterator ( ) : Bundle[]
getJarves ( ) : Jarves
getObject ( string $objectKey ) : Object
getObjects ( ) : Object[]
getTheme ( string $themeId ) : Theme | null
getTriggeredReboots ( ) : array
getXmlConfigsForBundle ( Symfony\Component\HttpKernel\Bundle\BundleInterface $bundle ) : array Returns a array with following structure:
loadBundles ( array $bundles )
needsReboot ( )
normalizeBundleName ( string $bundleName ) : string
parseConfig ( array $configs ) : Bundle[] $configs = $configs[$bundleName][$priority][] = $bundleDomElement;
resetReboot ( )
setCore ( Jarves $core )
toArray ( ) : array

Описание методов

__construct() публичный Метод

public __construct ( Jarves $core, array $bundles = null )
$core Jarves\Jarves
$bundles array

__sleep() публичный Метод

public __sleep ( )

addConfig() публичный Метод

public addConfig ( Bundle $bundle )
$bundle Bundle

addReboot() публичный Метод

Needed to keep all bootRunTime informed when someone added or changed a field.
public addReboot ( string $source )
$source string

boot() публичный Метод

public boot ( ) : boolean
Результат boolean

getConfig() публичный Метод

public getConfig ( string $bundleName ) : Bundle
$bundleName string
Результат Bundle

getConfigFiles() публичный Метод

public getConfigFiles ( Symfony\Component\HttpKernel\Bundle\BundleInterface $bundle ) : string[]
$bundle Symfony\Component\HttpKernel\Bundle\BundleInterface
Результат string[]

getConfigHash() публичный Метод

Returns a md5 hash of all jarves config files (Resources/config/jarves.*.xml).
public getConfigHash ( string $bundleName ) : string
$bundleName string
Результат string

getConfigs() публичный Метод

public getConfigs ( ) : Bundle[]
Результат Bundle[]

getContentType() публичный Метод

public getContentType ( string $id ) : ContentType | null
$id string
Результат ContentType | null

getContentTypes() публичный Метод

public getContentTypes ( ) : ContentType[]
Результат ContentType[]

getFieldType() публичный Метод

public getFieldType ( string $id ) : FieldType | null
$id string
Результат FieldType | null

getFieldTypes() публичный Метод

public getFieldTypes ( ) : FieldType[]
Результат FieldType[]

getIterator() публичный Метод

public getIterator ( ) : Bundle[]
Результат Bundle[]

getJarves() публичный Метод

public getJarves ( ) : Jarves
Результат Jarves\Jarves

getObject() публичный Метод

public getObject ( string $objectKey ) : Object
$objectKey string
Результат Object

getObjects() публичный Метод

public getObjects ( ) : Object[]
Результат Object[]

getTheme() публичный Метод

public getTheme ( string $themeId ) : Theme | null
$themeId string
Результат Theme | null

getTriggeredReboots() публичный Метод

public getTriggeredReboots ( ) : array
Результат array

getXmlConfigsForBundle() публичный Метод

array[$bundleName][$priority][$file] = $bundle
public getXmlConfigsForBundle ( Symfony\Component\HttpKernel\Bundle\BundleInterface $bundle ) : array
$bundle Symfony\Component\HttpKernel\Bundle\BundleInterface
Результат array

loadBundles() публичный Метод

public loadBundles ( array $bundles )
$bundles array

needsReboot() публичный Метод

public needsReboot ( )

normalizeBundleName() публичный Метод

public normalizeBundleName ( string $bundleName ) : string
$bundleName string short version, long bundle name of full php class name
Результат string short lowercased bundle name

parseConfig() публичный Метод

Parses and merges(imports) bundle configurations.
public parseConfig ( array $configs ) : Bundle[]
$configs array
Результат Bundle[]

resetReboot() публичный Метод

public resetReboot ( )

setCore() публичный Метод

public setCore ( Jarves $core )
$core Jarves\Jarves

toArray() публичный Метод

public toArray ( ) : array
Результат array

Описание свойств

$core защищенное свойство

protected Jarves,Jarves $core
Результат Jarves\Jarves

$needRebootBy защищенное свойство

protected $needRebootBy

$triggeredReboot защищенное свойство

protected $triggeredReboot