~quam-plures-core/quam-plures/calendar_de-cored

« back to all changes in this revision

Viewing changes to qp_inc/plugins/model/_plugins_admin_no_db.class.php

  • Committer: EdB
  • Date: 2013-03-24 16:34:53 UTC
  • mfrom: (7660.2.1 quam-plures)
  • Revision ID: 1912webworks@gmail.com-20130324163453-865v9rc9pi2a7v03
update to current core

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
2
/**
3
 
 * This file implements the {@link Plugins_admin_no_DB} class, which gets used for administrative
4
 
 * handling of the {@link Plugin Plugins}, but without database.
5
 
 *
6
 
 * This file is part of the Quam Plures project - {@link http://quamplures.net/}.
7
 
 * See also {@link https://launchpad.net/quam-plures}.
8
 
 *
9
 
 * @copyright (c) 2009 - 2011 by the Quam Plures developers - {@link http://quamplures.net/}
10
 
 * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/}.
11
 
 * Parts of this file are copyright (c)2006 by Daniel HAHLER - {@link http://daniel.hahler.de/}.
12
 
 *
13
 
 * @license http://quamplures.net/license.html GNU General Public License (GPL)
14
 
 *
15
 
 * {@internal Open Source relicensing agreement:
16
 
 * Daniel HAHLER grants Francois PLANQUE the right to license
17
 
 * Daniel HAHLER's contributions to this file and the b2evolution project
18
 
 * under any OSI approved OSS license (http://www.opensource.org/licenses/).
19
 
 * }}
20
 
 *
21
 
 * @author blueyed: Daniel HAHLER
22
 
 *
23
 
 * @package plugins
24
 
 */
25
 
if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
26
 
 
27
 
 
28
 
load_class('plugins/model/_plugins_admin.class.php');
29
 
 
30
 
 
31
 
/**
32
 
 * A sub-class of {@link Plugins_admin} which will not load any DB info (i-e: Plugins and Events).
 
3
 * This file implements the Plugins_admin_no_DB class
 
4
 *
 
5
 * This gets used for administrative handling of the {@link Plugin Plugins}, but
 
6
 * without database. A sub-class of {@link Plugins_admin} which will not load
 
7
 * any DB info (i-e: Plugins and Events).
33
8
 *
34
9
 * This is useful for displaying a list of available plugins which can be installed.
35
 
 * This is also useful during installation in order to have a global $Plugins object that does not interfere with the installation process.
 
10
 * This is also useful during installation in order to have a global $Plugins object
 
11
 * that does not interfere with the installation process. This is probably quicker
 
12
 * and cleaner than using a member boolean in {@link Plugins_admin} itself.
36
13
 *
37
 
 * {@internal This is probably quicker and cleaner than using a member boolean in {@link Plugins_admin} itself.}}
 
14
 * @author {@link http://wonderwinds.com/ Ed Bennett}
 
15
 * @author {@link http://daniel.hahler.de/ Daniel HAHLER}
 
16
 * @author {@link http://fplanque.net/ Francois PLANQUE}
 
17
 * @copyright (c) 2009 by {@link http://quamplures.net/ the Quam Plures project}
 
18
 * @license http://www.gnu.org/licenses/gpl.txt GNU General Public License v3
 
19
 * @package plugins
 
20
 */
 
21
if(!defined('QP_MAIN_INIT')) die('fail');
 
22
 
 
23
/**
 
24
 * Plugins_admin_no_DB class
38
25
 *
39
26
 * @package plugins
40
27
 */
41
28
class Plugins_admin_no_DB extends Plugins_admin
42
29
{
 
30
 
43
31
        /**
44
 
         * No-operation.
 
32
         * No-operation
45
33
         */
46
34
        function load_plugins_table()
47
35
        {
48
36
        }
49
37
 
 
38
 
50
39
        /**
51
 
         * No-operation.
 
40
         * No-operation
52
41
         */
53
42
        function load_events()
54
43
        {
55
44
        }
 
45
 
56
46
}
57
47
 
58
 
 
59
48
?>