This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class Concrete5_Model_Config

Concrete5_Library_Object
Extended by Object
Extended by Concrete5_Model_Config

Direct known subclasses

Config

Package: Utilities
Located at core/models/config.php

Methods summary

public static
# setStore( ConfigStore $store )
protected static ConfigStore
# getStore( )
public
public string
# get( string $cfKey, boolean $getFullObject = false )

Gets the config value for a given key

public static array
# getListByPackage( package $pkg )

gets a list of all the configs associated with a package

public
# getOrDefine( $key, $defaultValue )
public
# getAndDefine( string $key, string $defaultValue )

Checks to see if the given key is defined or not if it isn't then it is defined as the default value

public
# clear( string $cfKey )

Clears a gived config key

public
# save( string $cfKey, string $cfValue )

Saves a given value to a key

public static
# exportList( $x )

Properties summary

protected boolean $pkg
# false
protected static $store
#

Properties inherited from Concrete5_Library_Object

$error