previousConfig_Container::createBlank (Previous) (Next) Config_Container::createDirectivenext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

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');
?>
previousConfig_Container::createBlank (Previous) (Next) Config_Container::createDirectivenext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.