Config_Container::setDirective()

Config_Container::setDirective() -- Set child directive content or create new directive

Synopsis

require_once 'Config/Container.php';

void Config_Container::setDirective (string $name, mixed $content [, int $index = -1])

Описание

This is an helper method that will first try to find the item with the desired name using getItem(). If the item is found, it will call its setContent() method. If not, it will just create a new directive at the bottom with the given name and content.

Параметр

string $name

Name of the directive to look for

mixed $content

New content, usually a string

integer $index

Index of the directive to set, in case there are more than one directive with the same name

Возвращаемое значение

object - Newly set directive

Заметка

Эта функция не должна вызываться статически.


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ