[ Index ] |
|
Code source de SPIP Agora 1.4 |
1 <?php 2 /***************************************************** 3 * This file is part of Agora, web based content management system. 4 * 5 * Agora is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License. 8 * 9 * Agora is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details (file "COPYING"). 13 * 14 * Copyright © Arnaud Martin, Antoine Pitrou et Philippe Rivière. 15 * List of authors detailed in "copyright_fr.html" file. 16 * E-mail : agora@sig.premier-ministre.gouv.fr 17 * Web site : http://www.agora.gouv.fr 18 *****************************************************/ 19 // Base class for Authorization abstraction. 20 // 21 22 require_once("PEAR.php"); 23 24 require_once("DB.php"); 25 require_once dirname(__FILE__). "/trivial_authorization.php"; 26 27 // {{{ authorization:: class 28 29 /** 30 * AbstractAuthorizationManager is a base class for authorization abstraction manager, and must be 31 * inherited by all such. 32 * 33 * @package authorizarion 34 * @author Antoine Angénieux <aangenieux@clever-age.com> 35 * @author Erwan Le Bescond <elebescond@clever-age.com> 36 * @access public 37 */ 38 39 // }}} 40 class AbstractAuthorizationManager { 41 // {{{ properties 42 43 // }}} 44 45 // {{{ factory() 46 function &factory () { 47 $obj = &new TrivialAuthorizationManager(); 48 return $obj; 49 } 50 51 // }}} 52 53 // {{{ constructor 54 55 /** 56 * AbstractAuthorizationManager constructor. 57 * 58 * @access public 59 */ 60 61 function AbstractAuthorizationManager () { } 62 63 // }}} 64 65 // {{{ getAllProfiles() 66 67 /** 68 * Get all the available profiles into an array 69 * @access public 70 * @return array 71 */ 72 73 function getAllProfiles () { } 74 75 // }}} 76 77 // {{{ isAuthorized() 78 79 /** 80 * Get if a user is authorized to access to a command 81 * @param $idUser 82 * @param $command 83 * @param $parameters 84 * @access public 85 * @return bool 86 */ 87 88 function isAuthorized ($idUser, $command, $parameters = null) { } 89 90 // }}} 91 92 } 93 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |