|
|
@@ -73,11 +73,11 @@ class Configure {
|
|
|
* ]);
|
|
|
* }}}
|
|
|
*
|
|
|
- * @link http://book.cakephp.org/2.0/en/development/configuration.html#Configure::write
|
|
|
* @param string|array $config The key to write, can be a dot notation value.
|
|
|
* Alternatively can be an array containing key(s) and value(s).
|
|
|
* @param mixed $value Value to set for var
|
|
|
* @return bool True if write was successful
|
|
|
+ * @link http://book.cakephp.org/2.0/en/development/configuration.html#Configure::write
|
|
|
*/
|
|
|
public static function write($config, $value = null) {
|
|
|
if (!is_array($config)) {
|
|
|
@@ -109,9 +109,9 @@ class Configure {
|
|
|
* Configure::read('Name.key'); will return only the value of Configure::Name[key]
|
|
|
* }}}
|
|
|
*
|
|
|
- * @link http://book.cakephp.org/2.0/en/development/configuration.html#Configure::read
|
|
|
* @param string $var Variable to obtain. Use '.' to access array elements.
|
|
|
* @return mixed value stored in configure, or null.
|
|
|
+ * @link http://book.cakephp.org/2.0/en/development/configuration.html#Configure::read
|
|
|
*/
|
|
|
public static function read($var = null) {
|
|
|
if ($var === null) {
|
|
|
@@ -142,9 +142,9 @@ class Configure {
|
|
|
* Configure::delete('Name.key'); will delete only the Configure::Name[key]
|
|
|
* }}}
|
|
|
*
|
|
|
- * @link http://book.cakephp.org/2.0/en/development/configuration.html#Configure::delete
|
|
|
* @param string $var the var to be deleted
|
|
|
* @return void
|
|
|
+ * @link http://book.cakephp.org/2.0/en/development/configuration.html#Configure::delete
|
|
|
*/
|
|
|
public static function delete($var = null) {
|
|
|
static::$_values = Hash::remove(static::$_values, $var);
|
|
|
@@ -195,7 +195,7 @@ class Configure {
|
|
|
/**
|
|
|
* Gets the names of the configured Engine objects.
|
|
|
*
|
|
|
- * @param string $name
|
|
|
+ * @param string $name Engine name.
|
|
|
* @return array Array of the configured Engine objects.
|
|
|
*/
|
|
|
public static function configured($name = null) {
|
|
|
@@ -238,11 +238,11 @@ class Configure {
|
|
|
* If using `default` config and no engine has been configured for it yet,
|
|
|
* one will be automatically created using PhpConfig
|
|
|
*
|
|
|
- * @link http://book.cakephp.org/2.0/en/development/configuration.html#Configure::load
|
|
|
* @param string $key name of configuration resource to load.
|
|
|
* @param string $config Name of the configured engine to use to read the resource identified by $key.
|
|
|
* @param bool $merge if config files should be merged instead of simply overridden
|
|
|
* @return mixed false if file not found, void if load successful.
|
|
|
+ * @link http://book.cakephp.org/2.0/en/development/configuration.html#Configure::load
|
|
|
*/
|
|
|
public static function load($key, $config = 'default', $merge = true) {
|
|
|
$engine = static::_getEngine($config);
|