phpDocumentor lodel-logic
[ class tree: lodel-logic ] [ index: lodel-logic ] [ all elements ]

Source for file class.tasks.php

Documentation is available at class.tasks.php

  1. <?php
  2. /**    
  3.  * Logique des tâches
  4.  *
  5.  * PHP versions 4 et 5
  6.  *
  7.  * LODEL - Logiciel d'Edition ELectronique.
  8.  *
  9.  * Home page: http://www.lodel.org
  10.  * E-Mail: lodel@lodel.org
  11.  *
  12.  * All Rights Reserved
  13.  *
  14.  * This program is free software; you can redistribute it and/or modify
  15.  * it under the terms of the GNU General Public License as published by
  16.  * the Free Software Foundation; either version 2 of the License, or
  17.  * (at your option) any later version.
  18.  *
  19.  * This program is distributed in the hope that it will be useful,
  20.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  22.  * GNU General Public License for more details.
  23.  *
  24.  * You should have received a copy of the GNU General Public License
  25.  * along with this program; if not, write to the Free Software
  26.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  27.  *
  28.  * @package lodel/logic
  29.  * @author Ghislain Picard
  30.  * @author Jean Lamy
  31.  * @copyright 2001-2002, Ghislain Picard, Marin Dacos
  32.  * @copyright 2003, Ghislain Picard, Marin Dacos, Luc Santeramo, Nicolas Nutten, Anne Gentil-Beccot
  33.  * @copyright 2004, Ghislain Picard, Marin Dacos, Luc Santeramo, Anne Gentil-Beccot, Bruno Cénou
  34.  * @copyright 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou
  35.  * @copyright 2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse
  36.  * @copyright 2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot
  37.  * @licence http://www.gnu.org/copyleft/gpl.html
  38.  * @since Fichier ajouté depuis la version 0.8
  39.  * @version CVS:$Id: class.tasks.php 4006 2007-10-05 11:53:41Z malafosse $
  40.  */
  41.  
  42.  
  43. /**
  44.  * Classe de logique des tâches
  45.  * 
  46.  * @package lodel/logic
  47.  * @author Ghislain Picard
  48.  * @author Jean Lamy
  49.  * @copyright 2001-2002, Ghislain Picard, Marin Dacos
  50.  * @copyright 2003, Ghislain Picard, Marin Dacos, Luc Santeramo, Nicolas Nutten, Anne Gentil-Beccot
  51.  * @copyright 2004, Ghislain Picard, Marin Dacos, Luc Santeramo, Anne Gentil-Beccot, Bruno Cénou
  52.  * @copyright 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou
  53.  * @copyright 2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse
  54.  * @copyright 2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot
  55.  * @licence http://www.gnu.org/copyleft/gpl.html
  56.  * @since Classe ajouté depuis la version 0.8
  57.  * @see logic.php
  58.  */
  59. class TasksLogic extends Logic {
  60.  
  61.     /**
  62.     * generic equivalent assoc array
  63.     */
  64.     var $g_name;
  65.  
  66.  
  67.     /** Constructor
  68.     */
  69.     function TasksLogic({
  70.         $this->Logic("tasks");
  71.     }
  72.  
  73.  
  74.  
  75.  
  76.  
  77.     /**
  78.      * Affichage d'un objet
  79.      *
  80.      * @param array &$context le contexte passé par référence
  81.      * @param array &$error le tableau des erreurs éventuelles passé par référence
  82.      */
  83.     function viewAction(&$context,&$error)
  84.     {
  85.         die("TasksLogic::viewAction");
  86.     }
  87.  
  88.  
  89.     /**
  90.      * Changement du rang d'un objet
  91.      *
  92.      * @param array &$context le contexte passé par référence
  93.      * @param array &$error le tableau des erreurs éventuelles passé par référence
  94.      */
  95.     function changeRankAction(&$context&$error)
  96.     {
  97.         die("TasksLogic::changeRankAction");
  98.     }
  99.  
  100.     /**
  101.         * add/edit Action
  102.         */
  103.  
  104.     function editAction(&$context,&$error)
  105.     die("TasksLogic::editAction")}
  106.  
  107.     /*---------------------------------------------------------------*/
  108.     //! Private or protected from this point
  109.     /**
  110.         * @private
  111.         */
  112.  
  113.  
  114.     /**
  115.     *  Indique si un objet est protégé en suppression
  116.     *
  117.     * Cette méthode indique si un objet, identifié par son identifiant numérique et
  118.     * éventuellement son status, ne peut pas être supprimé. Dans le cas où un objet ne serait
  119.     * pas supprimable un message est retourné indiquant la cause. Sinon la méthode renvoit le
  120.     * booleen false.
  121.     *
  122.     * @param integer $id identifiant de l'objet
  123.     * @param integer $status status de l'objet
  124.     * @return false si l'objet n'est pas protégé en suppression, un message sinon
  125.     */
  126.     function isdeletelocked($id,$status=0)
  127.  
  128.     {
  129.         global $lodeluser;
  130.  
  131.         // basic check. Should be more advanced because of the potential conflict between 
  132.         // adminlodel adn othe rusers
  133.         $dao=$this->_getMainTableDAO();
  134.         $vo=$dao->find("id='".$id."' AND user='".$lodeluser['id']."'","id");
  135.         return $vo->id false true ;
  136.     }
  137.  
  138.  
  139.     // begin{publicfields} automatic generation  //
  140.  
  141.     /**
  142.      * Retourne la liste des champs publics
  143.      * @access private
  144.      */
  145.     function _publicfields(
  146.     {
  147.         return array();
  148.     }
  149.     // end{publicfields} automatic generation  //
  150.  
  151.     // begin{uniquefields} automatic generation  //
  152.  
  153.     // end{uniquefields} automatic generation  //
  154.  
  155.  
  156. // class 
  157.  
  158.  
  159.  
  160. /*-----------------------------------*/
  161. /* loops                             */
  162.  
  163.  
  164.  
  165. ?>

Documentation generated on Thu, 24 Jul 2008 05:08:17 +0200 by phpDocumentor 1.4.0a2