Config_Container::createDirective()

Config_Container::createDirective() -- Add directive to item

Referentiesamenvatting

require_once 'Config/Container.php';

object Config_Container::createDirective (string $name, string $content [, mixed $attributes = NULL [, string $where = 'bottom' [, mixed $target = NULL]]])

Beschrijving

The current item must be a section. This is a helper method that calls createItem()

Parameter

string $name

Name of new directive

string $content

Content of new directive

mixed $attributes

Directive attributes

string $where

Where to create the new item ('top', 'bottom', 'before', 'after')

object $target

Required only if 'before' or 'after' is used for $where

Return waarde

object - reference to new item

Throws

Tabel 32-1. Mogelijke PEAR_Error waarden

Error codeError valueMeaningSolution
 ""  

Note

Deze functie kan niet statisch worden aangeroepen.

Voorbeeld