Plugins' bootstrap code is now called
[pivip.git] / project / plugins / Admin / Plugin.php
blob6897f276950ba3127381cfe1cff877256aa8f58d
1 <?php
3 /**
4 * Pivip
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_Admin
23 * @copyright (C) 2008 Vincent Tunru
24 * @author Vincent Tunru <email@vincentt.org>
27 /**
28 * Manage the Admin plugin
30 * The Admin plugin provides an administrative interface to Pivip and plugins.
32 * @see /library/Pivip/Plugin/Abstract.php
34 class Admin_Plugin extends Pivip_Plugin_Abstract
36 /**
37 * Checks whether the Admin plugin is installed
39 * @return boolean Whether Admin is already installed.
41 public static function isInstalled()
45 /**
46 * Communicate that Admin does not need configuration
48 * Always returns false.
50 * @return boolean false, Admin does not need to be configured
52 public static function needsConfiguring()
54 return false;
57 /**
58 * Install the Admin plugin
60 * @throws Pivip_Install_Exception
61 * @return boolean Whether the installation succeeded
63 public function install()
67 /**
68 * Uninstall the Admin plugin
70 * @throws Pivip_Install_Exception
71 * @return boolean Whether uninstallation succeeded
73 public function uninstall()
77 /**
78 * Load the plugin
80 * Set up routes.
82 public static function bootstrap()