system
[
class tree: system
] [
index: system
] [
all elements
]
system
Packages:
no package
html
system
Source for file baliseConteneur.class.php
Documentation is available at
baliseConteneur.class.php
<?php
/**
* Attribut d'une balise.
*
*
@package
system
*
@author
Alain Defrance
*/
class
wpmBaliseConteneur
extends
wpmBaliseAbstraite
{
private
$content
;
public
function
__construct
(
$pBaliseName
)
{
parent
::
__construct
(
$pBaliseName
)
;
$this
->
content
=
Array
(
)
;
}
public
function
addContent
(
$composant
)
{
array_push
(
$this
->
content
,
$composant
)
;
}
public
function
generer
(
)
{
$toReturn
.=
wpmSystem
::
endl
(
)
.
wpmSystem
::
getIndent
(
)
.
"
<{
$this
->
getBaliseName
(
)
}
{
$this
->
genererAttributString
(
)
}
>
"
;
wpmSystem
::
identUp
(
)
;
foreach
(
$this
->
content
as
$unComposant
)
{
$toReturn
.=
wpmSystem
::
endl
(
)
.
wpmSystem
::
getIndent
(
)
.
$unComposant
->
generer
(
)
;
}
wpmSystem
::
identDown
(
)
;
$toReturn
.=
wpmSystem
::
endl
(
)
.
wpmSystem
::
getIndent
(
)
.
"
</{
$this
->
getBaliseName
(
)
}
>
"
;
return
$toReturn
;
}
}
;
?>
Documentation generated on Fri, 04 Jul 2008 23:38:38 +0200 by
phpDocumentor 1.4.0a2