Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 23095 программистов и 1587 роботов. Сейчас ищут 1793 программиста ...

Config_Container::createComment

Вернуться к: Config_Container class

Config_Container::createComment

Config_Container::createComment() – Add comment to item

Synopsis

require_once 'Config/Container.php';

objectConfig_Container::createComment ( string $content = '' , string $where = 'bottom' , object $target = null )

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

Parameter

string $content

Comment content

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 value

object - reference to new item

Throws

Possible PEAR_Error values
Error code Error value Meaning Solution
"

Note

This function can not be called statically.

Example

Create a new directive using createComment()

<?php
$section 
=& new Config_Container('section''conf');
$section->createComment('Database Configuration');
?>


Вернуться к: Config_Container class

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware