5 * Copyright (C) 2008 Vincent Tunru
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; version 2
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
20 * @license http://www.fsf.org/licensing/licenses/info/GPLv2.html GPL v.2
21 * @category PivipPluginsDefault
22 * @package Plugin_Openid
23 * @copyright (C) 2008 Vincent Tunru
24 * @author Vincent Tunru <email@vincentt.org>
28 * Manage the Openid plugin
30 * The Openid plugin allows for authentication using OpenID.
32 * @see /library/Pivip/Plugin/Abstract.php
33 * @link http://openid.net/ OpenID.net
35 class Openid_Plugin
extends Pivip_Plugin_Abstract
38 * Defines the dependencies
40 * Openid depends on Pivip and the Page plugin
42 public function __construct()
47 * Checks whether the OpenID database table exists
49 * Will check for a cache hit - if there's a hit, Plugin_Openid is installed,
50 * if there's a miss, it will check whether the database table has been
51 * created. If it has, then it will save it to cache.
53 * @return boolean Whether Openid is already installed.
55 public static function isInstalled()
60 * Communicate that Openid needs configuration
62 * Always returns true since OpenID needs to be told the name of the first,
65 * @return boolean True, OpenID needs to be configured
67 public static function needsConfiguring()
73 * Creates the table in the database and perform the first authentication
75 * @throws Pivip_Install_Exception
76 * @return boolean Whether the installation succeeded
78 public function install()
83 * Remove the table from the database
85 * @throws Pivip_Install_Exception
86 * @return boolean Whether uninstallation succeeded
88 public function uninstall()
97 public static function bootstrap()