/trunk/serveur/bibliotheque/classes/eflore_collection_block_de_donnees.class.php |
---|
1,4 → 1,4 |
<? |
<?php |
class collectionblockdedonnees{ |
37,7 → 37,7 |
function recupererIdentifiant() |
{ |
return $this->identifiant; |
return $this->identifiant; |
} |
function recupererErreur() |
/trunk/serveur/bibliotheque/classes/eflore_macro_element.class.php |
---|
9,10 → 9,10 |
protected $collectionblockdedonnees; |
protected $idRes; |
function __construct($aConn,$aParentDataBlock,$identifiant) |
function __construct($une_connexion, $un_block_données_parent, $identifiant) |
{ |
$this->connexion = $aConn; |
$this->blockdedonneesParent = $aParentDataBlock; |
$this->connexion = $une_connexion; |
$this->blockdedonneesParent = $un_block_donn; |
$this->identifiantblockdedonnees = $identifiant; |
$this->contexteRef = $this->blockdedonneesParent->recupererDonnees(); |
} |
19,8 → 19,8 |
function construire() |
{ |
$sql=$this->getSQL(); |
if(!is_NULL($sql)) { |
$sql = $this->getSQL(); |
if(!is_null($sql)) { |
$this->openCursor($sql); |
while ($this->fetch()); |
$this->closeCursor(); |
27,7 → 27,7 |
} |
} |
function contruireparrecursiviteplate() |
function contruireParRecursivitePlate() |
{ |
construire(); |
36,7 → 36,7 |
construire(); |
} |
function contruireparrecursivite() |
function contruireParRecursivite() |
{ |
} |
52,7 → 52,7 |
function fetch() |
{ |
$res=mysql_fetch_assoc($this->idRes); |
$res = mysql_fetch_assoc($this->idRes); |
if (!$res) { |
} else { |
/trunk/serveur/bibliotheque/classes/eflore_groupe_macro_element.class.php |
---|
9,9 → 9,9 |
protected $newContexte; |
protected $dblock; |
function __construct($aConn) |
function __construct($une_connexion) |
{ |
$this->connexion = $aConn; |
$this->connexion = $une_connexion; |
} |
function contruire() |
24,11 → 24,11 |
return $this->dblock; |
} |
function macroElementFactory($macroElementName,$parentDataBlock) |
function macroElementFactory($macro_element_nom, $block_donnees_parent) |
{ |
require_once EFSE_CHEMIN_MV_MACRO.$macroElementName.'.php'; |
$aMacroElement = new $macroElementName($this->connexion,$parentDataBlock,$macroElementName); |
return $aMacroElement; |
require_once EFSE_CHEMIN_MV_MACRO.$macro_element_nom.'.php'; |
$un_macro_element = new $macro_element_nom($this->connexion, $block_donnees_parent, $macro_element_nom); |
return $un_macro_element; |
} |
} |
?> |
/trunk/serveur/bibliotheque/classes/eflore_block_de_donnees.class.php |
---|
1,6 → 1,6 |
<? |
<?php |
class blockdedonnees{ |
class blockdedonnees { |
protected $identifiant; |
protected $donnees; |
7,20 → 7,20 |
protected $collectionBlocksfils; |
protected $erreur; |
function __construct($identifiant) |
{ |
$this->identifiant = $identifiant; |
$this->donnees = array(); |
$this->collectionBlocksfils = array(); |
} |
function __construct($identifiant) |
{ |
$this->identifiant = $identifiant; |
$this->donnees = array(); |
$this->collectionBlocksfils = array(); |
} |
function affecterIdentifiant($identifiant) |
{ |
function affecterIdentifiant($identifiant) |
{ |
$this->identifiant = $identifiant; |
} |
function affecterDonnees($donnees) |
{ |
function affecterDonnees($donnees) |
{ |
$this->donnees = $donnees; |
} |
29,7 → 29,7 |
return $this->donnees; |
} |
function ajouterDonnee($clef,$valeur) |
function ajouterDonnee($clef, $valeur) |
{ |
$this->donnees["$clef"] = $valeur; |
} |
49,52 → 49,43 |
return $this->blocksfils; |
} |
function ajouterCollectionBlockFils($collectionBlock) |
function ajouterCollectionBlockFils($collection_block) |
{ |
array_push($this->collectionBlocksfils,$collectionBlock); |
array_push($this->collectionBlocksfils, $collection_block); |
} |
function afficherPattern($chemin,$fonction) |
function afficherPattern($chemin, $fonction) |
{ |
if($chemin==$this->identifiant) |
{ |
} |
else |
{ |
$etape_chemin = explode('>',$chemin); |
if($chemin==$etape_chemin[0]) |
{ |
for($i=0;$i<count($this->collectionBlocksfils);$i++) |
{ |
$collection =$this->collectionBlocksfils[$i]; |
if ($collection->recupererIdentifiant()==$etape_chemin[1]) |
{ |
if ($chemin == $this->identifiant) { |
} else { |
$etape_chemin = explode('>', $chemin); |
if($chemin == $etape_chemin[0]) { |
for($i = 0; $i < count($this->collectionBlocksfils); $i++) { |
$collection = $this->collectionBlocksfils[$i]; |
if ($collection->recupererIdentifiant() == $etape_chemin[1]) { |
array_shift($etape_chemin); |
afficherPattern(implode('>',$etape_chemin),$fonction); |
} |
afficherPattern(implode('>', $etape_chemin), $fonction); |
} |
} |
} |
} |
} |
} |
function afficher() |
{ |
echo "<OL>"; |
echo '<ol>'; |
foreach($this->donnees as $key => $value) |
{ |
echo "<li>$key:$value "; |
echo '<li>'.$key.' : '.$value; |
} |
echo "</OL>"; |
for($i=0;$i<count($this->collectionBlocksfils);$i++) |
{ |
$collection =$this->collectionBlocksfils[$i]; |
echo "<OL>"; |
echo '</ol>'; |
for($i = 0; $i < count($this->collectionBlocksfils); $i++) { |
$collection = $this->collectionBlocksfils[$i]; |
echo '<ol>'; |
$collection->afficher(); |
echo "</OL>"; |
echo '</ol>'; |
} |
} |
} |
?> |
/trunk/serveur/bibliotheque/interfaces/eflore_vue.interface.php |
---|
1,6 → 1,6 |
<? |
<?php |
interface iVue { |
function __construct($unBlock); |
function __construct($un_block); |
function serialiser(); |
}; |
?> |
/trunk/serveur/bibliotheque/interfaces/eflore_model.interface.php |
---|
1,6 → 1,6 |
<? |
<?php |
interface iModel { |
function __construct($aConn); |
function __construct($une_connexion); |
function contruire(); |
function recupererBlockDeDonnees(); |
}; |