Automatisation de l'ajax "visibility"

Ajout de la méthode setVisibility à 3 Modèles
Bug Chrome sur les liens éliminé
This commit is contained in:
Chouchen
2010-09-22 14:02:40 +00:00
parent 81bf7cb785
commit 73e97a31be
9 changed files with 91 additions and 53 deletions

View File

@@ -23,6 +23,18 @@ class notes extends Module {
$notes = new notes($params);
}
public function setVisibility($visibility){
// Saving the position and z-index of the note:
$xmla = simplexml_load_file('../'.AccueilModules::CONFIG_FILE);
$path = $xmla->xpath("//item[@id='notes']");
$path[0]->visibility = $visibility;
$xmla->asXML('../'.AccueilModules::CONFIG_FILE);
echo "ok";
}
public static function updateConfig($updated){
foreach ($updated as $what=>$withWhat){
if(in_array($what, self::$paramsList)){