Config_Container::createComment

Config_Container::createComment() – Ajoute un commentaire à l'élément

Synopsis

require_once 'Config/Container.php';

objet Config_Container::createComment ( chaîne $contenu = '' , chaîne $emplacement = 'bottom' , objet $cible = = null )

Description

L'élément courrant doit être une section. C'est en fait une méthode d'aide qui appelle createItem()

Parameter

string $contenu

Contenu du commentaire

string $emplacement

Où créer le nouvel élément ('top' , 'bottom' , 'before' , 'after' )

object $cible

Requis seulement si $emplacement est fixé à 'before' ou 'after' .

Return value

objet - référence au nouvel élément

Throws

Note

This function can not be called statically.

Example

Create a new directive using createComment()

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