Commit 061d7420 authored by gliss's avatar gliss
Browse files

interfaces poil aux poufiasses

parent b53e7eae
<?php
/**
* Copyright 2008
* - Manuel Vonthron <manuel DOT vonthron AT acadis DOT org>
* - Pierre Mauduit <pierre POINT mauduit CHEZ utbm POINT fr>
*
* Ce fichier fait partie du site de l'Association des Étudiants de
* l'UTBM, http://ae.utbm.fr/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
/**
* Gestion de la représentation graphique d'un emploi du temps
* @ingroup stdentity
* @author Manuel Vonthron
* @author Pierre Mauduit
*/
class edt extends stdentity
{
var $id_utilisateur;
var $semestre;
var $seances;
var $prefs;
private function load_by_id(){}
public function load_by_utl_semestre($id_utilisateur, $semestre=SEMESTER_NOW){
}
private function _load(){
}
public function set_prefs(){
}
public function generate(){
}
public function clear_cache(){
}
public function get_image_link(){
}
}
?>
<?php
/**
* Copyright 2008
* - Manuel Vonthron <manuel DOT vonthron AT acadis DOT org>
*
* Ce fichier fait partie du site de l'Association des Étudiants de
* l'UTBM, http://ae.utbm.fr/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
/**
* extension de l'utilisateur site AE pour utilisation de
* la partie pedagogie
*/
class pedag_user extends utilisateur{
/* UV actuelles */
var $uv_suivies = array();
/* UV suivies dans le passé */
var $uv_passe = array();
public function add_uv_result($id_uv, $semestre, $result){
}
public function remove_uv_result($id_result){
}
public function update_uv_result($id_result, $id_uv, $semestre, $result){
}
public function join_uv_group($id_group, $semaine){
}
public function leave_uv_group($id_group){
}
/* desincription d'une UV entiere, donc desinscrition de tous les groupes */
public function get_out_from_uv($id_uv){
}
}
?>
<?php
/**
* Copyright 2008
* - Manuel Vonthron <manuel DOT vonthron AT acadis DOT org>
* - Pierre Mauduit <pierre POINT mauduit CHEZ utbm POINT fr>
*
* Ce fichier fait partie du site de l'Association des Étudiants de
* l'UTBM, http://ae.utbm.fr/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
/**
* les enumerations et constantes ci-dessous doivent respecter les
* valeurs de leurs équivalents dans la BDD
*/
/* Resultat */
define("RESULT_A", 1);
define("RESULT_B", 2);
define("RESULT_C", 3);
define("RESULT_D", 4);
define("RESULT_E", 5);
define("RESULT_F", 6);
define("RESULT_FX", 7);
define("RESULT_ABS", 8);
define("RESULT_EQUIV", 9);
/* type de cours */
define("GROUP_C", 1);
define("GROUP_TD", 2);
define("GROUP_TP", 3);
define("GROUP_THE",4);
/* departements */
define("DPT_HUMA", 1);
define("DPT_TC", 2);
define("DPT_GI", 3);
define("DPT_GESC", 4);
define("DPT_IMAP", 5);
define("DPT_GMC", 6);
define("DPT_EDIM", 7);
$dpt_short = array(
DPT_HUMA => "Humas",
DPT_TC => "TC",
DPT_GI => "GI",
DPT_GESC => "GESC",
DPT_IMAP => "IMAP",
DPT_MC => "MC",
DPT_EDIM => "EDIM"
);
$dpt_long = array(
DPT_HUMA => "Humanités",
DPT_TC => "Tronc Commun",
DPT_GI => "Informatique",
DPT_GESC => "Génie Électrique et Systèmes de Commande",
DPT_IMAP => "Ingénierie et Management de Process",
DPT_MC => "Mécanique et Conception",
DPT_EDIM => "Ergonomie, Design et Ingénierie Mécanique"
);
/* definition du semestre actuel */
$m = date('n');
if($m > 7 || $m == 1) $s = 'A'; /* entre Aout et Janvier */
else $s = 'P' /* entre Fevrier et Juillet */
define("SEMESTER_NOW", $s.date('Y'));
/**
* Vérifie si le format de semestre est bien au format A2004
* @param $value donnee a vérifiée
* @return true/false suivant le résultat
*/
function check_semester_format($value){
}
/**
* Tri d'un tableau par semestre A2005, P2008...
* @param $data tableau a trier
* @param $id_row indice de la colonne dans laquelle se trouve le semestre
*/
function sort_by_semester(&$data, $id_row){
}
?>
<?php
/**
* Copyright 2008
* - Manuel Vonthron <manuel DOT vonthron AT acadis DOT org>
* - Pierre Mauduit <pierre POINT mauduit CHEZ utbm POINT fr>
*
* Ce fichier fait partie du site de l'Association des Étudiants de
* l'UTBM, http://ae.utbm.fr/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
/**
* Représentation atomique d'une UV à l'UTBM
* @ingroup stdentity
* @author Manuel Vonthron
* @author Pierre Mauduit
*/
class uv extends stdentity
{
var $id;
var $code;
var $intitule;
/**
* chargement d'une UV par son id dans la BDD
* n'initialise que les principaux attributs (code, intitulé, ...)
* @param $id Id de l'UV
* @return true/false selon le résultat
* @see load_extra()
*/
public function load_by_id($id){
}
/**
* chargement d'une UV a partir de son code UTBM (ex RE41)
* @param $code code de l'UV
* @return true/false selon le résultat
* @see load_extra()
*/
public function load_by_code($code){
}
private function _load(){
}
/**
* Ajout d'une UV
*/
public function add($code, $intitule){
}
/**
* charge les informations complementaires, susceptibles d'etre utiles
* dans une presentation "guide" plutot que liste succinte
* ex: departements, credits, tags, ...
*/
public function load_extra(){
}
public function set_open($value){
}
public function update($set_valid=false){
}
/**
* L'UV est-elle un alias d'une autre UV ? ex XE03 => LE03
* @return id de l'UV cible si c'est un alias, false sinon
*/
public function is_alias(){
}
public function set_alias_of($id_uv, $comment=null){
}
/**
* Antecedents
*/
public function has_antecedent(){
}
public function add_antecedent($id_uv, $comment=null, $obligatoire=true){
}
/* nombre d'eleves inscrits a l'UV pour un semestre donne
* @param $semestre semestre visé, courant par défaut
* @return nombre d'eleves
*/
public function get_nb_students($semestre=null){
}
/**
* gestion des groupes
*/
public function add_group($type, $num, $freq, $semestre, $jour, $debut, $fin, $salle=null){
}
/* suppression de groupe
* realisee uniquement si personne n'y est inscrit */
public function remove_group($id_group){
}
public function update_group($id_group, $type, $num, $freq, $semestre, $jour, $debut, $fin, $salle=null){
}
public function get_nb_students_group($id_group=SEMESTER_NOW){
}
/**
* Departements
*/
public function add_to_dpt($dpt){
}
public function remove_from_dpt($dpt){
}
}
?>
<?php
/**
* Copyright 2008
* - Manuel Vonthron <manuel DOT vonthron AT acadis DOT org>
* - Pierre Mauduit <pierre POINT mauduit CHEZ utbm POINT fr>
*
* Ce fichier fait partie du site de l'Association des Étudiants de
* l'UTBM, http://ae.utbm.fr/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
$VAL_GENERALE = array (
'-1' => 'Sans avis',
'0' => 'Nul',
'1' => 'Pas terrible',
'2' => 'Neutre',
'3' => 'Pas mal',
'4' => 'Génial'
);
$VAL_UTILITE = array(
'-1' => 'Non renseigné',
'0' => 'Inutile',
'1' => 'Pas très utile',
'2' => 'Utile',
'3' => 'Très utile',
'4' => 'Indispensable'
);
$VAL_INTERET = array(
'-1' => 'Non renseigné',
'0' => 'Aucun',
'1' => 'Faible',
'2' => 'Bof',
'3' => 'Intéressant',
'4' => 'Passionnant'
);
$VAL_ENSEIGNEMENT = array (
'-1' => 'Sans avis',
'0' => 'Inexistante',
'1' => 'Mauvaise',
'2' => 'Moyenne',
'3' => 'Bonne',
'4' => 'Excellente'
);
$VAL_TRAVAIL = array (
'-1' => 'Non renseigné',
'0' => 'Symbolique',
'1' => 'Faible',
'2' => 'Moyenne',
'3' => 'Importante',
'4' => 'Très importante'
);
/**
* Représentation d'un commentaire à une UV
* @ingroup stdentity
* @author Manuel Vonthron
* @author Pierre Mauduit
*/
class uv_comment extends stdentity
{
var $id;
var $id_uv; /* en general, uv_comment appele depuis une UV, donc a n'utiliser que dans les autres cas */
var $id_utilisateur;
/* notes entre 0 et 5 */
var $note_generale;
var $note_utilite;
var $note_interet;
var $note_enseignement;
var $note_travail;
var $content;
var $date;
public function load_by_id($id){
}
private function _load($row){
}
public function add($id_uv, $id_utilisateur,
$note_generale, $note_utilite, $note_interet, $note_enseignement, $note_travail,
$content){
}
public function update(){
}
public function remove(){
}
public function set_valid($value=1){
}
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment