setParams($params); echo ' Add a note'; include 'notes_extract.php'; } private function setParams($params){ $this->params = $params; } public static function start($params){ $notes = new notes($params); } 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); } } } }