MCMS
[ class tree: MCMS ] [ index: MCMS ] [ all elements ]

Source for file Savable.php

Documentation is available at Savable.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4: */
  3. // +----------------------------------------------------------------------+
  4. // | MCMS: a PHP Content Management System for creating accessible sites. |
  5. // | Copyright (C) 2005  Silvio Moioli                                    |
  6. // |                                                                      |
  7. // | This program is free software; you can redistribute it and/or modify |
  8. // | it under the terms of the GNU General Public License as published by |
  9. // | the Free Software Foundation; either version 2 of the License, or    |
  10. // | (at your option) any later version.                                  |
  11. // |                                                                      |
  12. // | This program is distributed in the hope that it will be useful,      |
  13. // | but WITHOUT ANY WARRANTY; without even the implied warranty of       |
  14. // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        |
  15. // | GNU General Public License for more details.                         |
  16. // |                                                                      |
  17. // | You should have received a copy of the GNU General Public License    |
  18. // | along with this program; if not, write to the Free Software          |
  19. // | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 |
  20. // +----------------------------------------------------------------------+
  21. // | Authors: Silvio Moioli <silvio at moioli dot net> www.moioli.net     |
  22. // +----------------------------------------------------------------------+
  23. //
  24. //$Id:
  25.  
  26. /** Classe astratta che rappresenta una pagina XHTML. */
  27. require_once $_SERVER["DOCUMENT_ROOT"]."/admin/lib/view/Compilable.php";
  28.  
  29. /**
  30.  * Classe astratta che rappresenta una pagina XHTML compilabile staticamente
  31.  * in un file.
  32.  * Ogni sottoclasse deve implementare tutti i suoi metodi e potrà
  33.  * essere usata per generare il codice relativo tramite un oggetto Compiler.
  34.  * Sarà inoltre possibile salvare la pagina.
  35.  *
  36.  * @package  MCMS
  37.  * @version  2
  38.  * @author   Silvio Moioli <silvio at moioli dot net>
  39.  */
  40. /*abstract*/ class Savable extends Compilable
  41. {
  42.     /**
  43.      * Costruttore di default
  44.      *
  45.      */
  46.     function Savable()
  47.     {
  48.         parent::Compilable();
  49.     }
  50.     
  51.     /**
  52.      * Questo metodo è "astratto" pertanto dovrebbe essere implementato da
  53.      * tutte le classi che estendono questa classe.
  54.      *
  55.      * Ritorna il nome del file in cui questa pagina deve essere salvata.
  56.      *
  57.      * @return string il nome del file
  58.      */
  59.     /*abstract*/function getFileName()
  60.     {
  61.         return PEAR_raiseError("Unimplemented abstract method called!");
  62.     }
  63.     
  64.     /**
  65.      * Versione statica del metodo precedente: ritorna il nome del
  66.      * file in cui questa pagina deve essere salvata.
  67.      *
  68.      * @return string il nome del file
  69.      * @see Savable
  70.      */
  71.     /*abstract*/function staticGetFileName()
  72.     {
  73.         return PEAR_raiseError("Unimplemented abstract method called!");
  74.     }
  75. }
  76. ?>

Documentation generated on Wed, 26 Jul 2006 21:44:56 +0200 by phpDocumentor 1.3.0RC6