Source for file UserPage.php
Documentation is available at UserPage.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | MCMS: a PHP Content Management System for creating accessible sites. |
// | Copyright (C) 2005 Silvio Moioli |
// | 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 |
// +----------------------------------------------------------------------+
// | Authors: Silvio Moioli <silvio at moioli dot net> www.moioli.net |
// +----------------------------------------------------------------------+
require_once $_SERVER["DOCUMENT_ROOT"]. "/admin/lib/view/Savable.php";
require_once $_SERVER["DOCUMENT_ROOT"]. "/admin/lib/view/Tagger.php";
* Classe astratta che rappresenta una pagina del sito creato.
* Puņ essere salvata su un file (implementa Savable) e i plugin
* (sottoclassi di Component) possono esservi applicati.
/** @var Site il sito a cui questa pagina appartiene */
/** @var string i caratteri ammessi nel nome di un file */
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_';
* @param Site $site il sito a cui questa pagina appartiene
* Ritorna il sito a cui questa pagina appartiene.
* @return Site il sito a cui questa pagina appartiene.
* Le pagine di finali usano un template unico.
* @return string il nome del file del template
return "userTemplate.tpl";
* I plugin vengono applicati indistintamente a tutte le pagine del sito finale.
* @return un array di Components
* Ritorna una stringa con i soli caratteri ammessi in un nome di file.
for($i= 0; $i< strlen($fullName);$i++ ){
|