Source for file AdminError.php
Documentation is available at AdminError.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 |
// +----------------------------------------------------------------------+
/** Importa la classe di base per l'interfaccia utente (autore) */
require_once $_SERVER["DOCUMENT_ROOT"]. "/admin/lib/view/AdminPage.php";
/** Importa la libreria per semplificare l'aggiunta di tag XML */
require_once $_SERVER["DOCUMENT_ROOT"]. "/admin/lib/view/Tagger.php";
* Pagina utilizzata per avvertire l'utente dell'immissione di dati non
* @author Silvio Moioli <silvio at moioli dot net>
/** @var string Il messaggio di errore da mostrare all'utente */
/** @var array Eventuali parametri GET della pagina $returnTo */
* @param string $errorMessage Il messaggio di errore da mostrare all'utente
* @param string $returnTo La pagina a cui andare dopo la segnalazione d'errore
* @param string $params Eventuali parametri GET della pagina $returnTo
function AdminError($errorMessage, $returnTo, $params)
//Disabilitiamo l'azione in corso (che ha generato l'errore)
unset ($this->params["action"]);
//Rimpiazziamo la pagina di ritorno
$this->params["goTo"]= $returnTo;
* Ritorna il titolo (in XHTML) di questa pagina.
* @return string una stringa XHTML rappresentante il titolo della pagina
return "Errore di immissione dei dati";
* Ritorna un array di stringhe XHTML relative al menu (barra di navigazione)
* @return array vettore di stringhe XHTML rappresentante il menu della pagina
return "Torna alla ". a("do.php?goTo=AdminIndex",
"Torna alla selezione degli autori");
* Ritorna il contenuto (XHTML) del corpo di questa pagina.
* @return string la stringa XHTML rappresentante il corpo della pagina
foreach ($this->params as $key => $value) {
$url .= "$key=$value&";
a($url,"Torna alla pagina precedente"));
|