PHP Class Jarves\Configuration\Configs

Inheritance: implements IteratorAggregate
Mostra file Open project: jarves/jarves Class Usage Examples

Protected Properties

Property Type Description
$core Jarves\Jarves
$needRebootBy
$triggeredReboot

Public Methods

Method Description
__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

Method Details

__construct() public method

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

__sleep() public method

public __sleep ( )

addConfig() public method

public addConfig ( Bundle $bundle )
$bundle Bundle

addReboot() public method

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

boot() public method

public boot ( ) : boolean
return boolean

getConfig() public method

public getConfig ( string $bundleName ) : Bundle
$bundleName string
return Bundle

getConfigFiles() public method

public getConfigFiles ( Symfony\Component\HttpKernel\Bundle\BundleInterface $bundle ) : string[]
$bundle Symfony\Component\HttpKernel\Bundle\BundleInterface
return string[]

getConfigHash() public method

Returns a md5 hash of all jarves config files (Resources/config/jarves.*.xml).
public getConfigHash ( string $bundleName ) : string
$bundleName string
return string

getConfigs() public method

public getConfigs ( ) : Bundle[]
return Bundle[]

getContentType() public method

public getContentType ( string $id ) : ContentType | null
$id string
return ContentType | null

getContentTypes() public method

public getContentTypes ( ) : ContentType[]
return ContentType[]

getFieldType() public method

public getFieldType ( string $id ) : FieldType | null
$id string
return FieldType | null

getFieldTypes() public method

public getFieldTypes ( ) : FieldType[]
return FieldType[]

getIterator() public method

public getIterator ( ) : Bundle[]
return Bundle[]

getJarves() public method

public getJarves ( ) : Jarves
return Jarves\Jarves

getObject() public method

public getObject ( string $objectKey ) : Object
$objectKey string
return Object

getObjects() public method

public getObjects ( ) : Object[]
return Object[]

getTheme() public method

public getTheme ( string $themeId ) : Theme | null
$themeId string
return Theme | null

getTriggeredReboots() public method

public getTriggeredReboots ( ) : array
return array

getXmlConfigsForBundle() public method

array[$bundleName][$priority][$file] = $bundle
public getXmlConfigsForBundle ( Symfony\Component\HttpKernel\Bundle\BundleInterface $bundle ) : array
$bundle Symfony\Component\HttpKernel\Bundle\BundleInterface
return array

loadBundles() public method

public loadBundles ( array $bundles )
$bundles array

needsReboot() public method

public needsReboot ( )

normalizeBundleName() public method

public normalizeBundleName ( string $bundleName ) : string
$bundleName string short version, long bundle name of full php class name
return string short lowercased bundle name

parseConfig() public method

Parses and merges(imports) bundle configurations.
public parseConfig ( array $configs ) : Bundle[]
$configs array
return Bundle[]

resetReboot() public method

public resetReboot ( )

setCore() public method

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

toArray() public method

public toArray ( ) : array
return array

Property Details

$core protected_oe property

protected Jarves,Jarves $core
return Jarves\Jarves

$needRebootBy protected_oe property

protected $needRebootBy

$triggeredReboot protected_oe property

protected $triggeredReboot