ZenMagick 0.9.8


org.zenmagick.store.services.ZMConfig
\store\services\ZMConfig.php at line 34

Class ZMConfig

ZMObject
└─ZMConfig

public class ZMConfig
extends ZMObject

Configuration.

Author:
DerManoMann
Version:
$Id: ZMConfig.php 2694 2009-12-03 22:32:18Z dermanomann $

Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

ZMConfig()

Create new instance.

Method Summary
void

createConfigValue(string title, string key, string value, int groupId, string description, int sortOrder, string setFunction, string useFunction)

Create config value.

array

getConfigGroups()

Get all configuration groups.

array

getConfigValues(string pattern)

Get all config values for a given key pattern.

static void

instance()

Get instance.

void

removeConfigValue(string key)

Remove config value.

void

removeConfigValues(string pattern)

Remove config value for the given key pattern.

void

updateConfigValue(string key, string value)

Update config value.

Methods inherited from org.zenmagick.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\services\ZMConfig.php at line 39

ZMConfig

public ZMConfig()

Create new instance.


Method Detail

\store\services\ZMConfig.php at line 70

createConfigValue

public void createConfigValue(string title, string key, string value, int groupId, string description, int sortOrder, string setFunction, string useFunction)

Create config value.

Parameters:
title - The title.
key - The configuration key (with or without the common prefix).
value - The value.
groupId - The config group id.
description - The description; defaults to ''.
sortOrder - optional sort order; defaults to 0.
setFunction - The set function; defaults to null.
useFunction - The use function; defaults to null.

\store\services\ZMConfig.php at line 169

getConfigGroups

public array getConfigGroups()

Get all configuration groups.

Returns:
List of ZMConfigGroup instances.

\store\services\ZMConfig.php at line 114

getConfigValues

public array getConfigValues(string pattern)

Get all config values for a given key pattern.

Parameters:
pattern - The key pattern; for example 'foo_%'.
Returns:
A list of ZMConfigValue or ZMWidget instances.

\store\services\ZMConfig.php at line 53

instance

public static void instance()

Get instance.


\store\services\ZMConfig.php at line 147

removeConfigValue

public void removeConfigValue(string key)

Remove config value.

Parameters:
key - The config key.

\store\services\ZMConfig.php at line 158

removeConfigValues

public void removeConfigValues(string pattern)

Remove config value for the given key pattern.

Parameters:
pattern - The key pattern; for example 'foo_%'.

\store\services\ZMConfig.php at line 100

updateConfigValue

public void updateConfigValue(string key, string value)

Update config value.

Parameters:
key - The config key.
value - The new value.

ZenMagick 0.9.8