Accueil/class/Notes.php

33 lines
845 B
PHP
Raw Normal View History

<?php
2010-09-20 11:40:27 +02:00
class notes extends Module {
protected static $paramsList = array(
'visibility'
);
public $params = array();
public function __construct($params){
$this->setParams($params);
echo '<script type="text/javascript" src="js/jquery.notes.js"></script>
<link rel="stylesheet" type="text/css" href="css/note.css">
<a id="addButton" class="green-button" href="add_note.html">Add a note</a>';
include 'notes_extract.php';
}
private function setParams($params){
$this->params = $params;
}
public static function start($params){
$notes = new notes($params);
}
2010-09-20 11:40:27 +02:00
public static function updateConfig($updated){
foreach ($updated as $what=>$withWhat){
if(in_array($what, self::$paramsList)){
call_user_func(array(get_class(), "set".ucfirst($what)), $withWhat);
}
}
2010-09-20 11:40:27 +02:00
}
}