Overview
  • Namespace
  • Class

Namespaces

  • rpf
    • api
      • module
    • extension
      • module
    • system
      • module

Classes

  • rpf\api\api
  • rpf\api\apiModule
  • rpf\api\bbRpc
  • rpf\api\module\bbCustomer_getFreeOrdNr
  • rpf\api\module\bbCustomer_readAddress
  • rpf\api\module\bbCustomer_readDiscount
  • rpf\api\module\bbCustomer_readEntry
  • rpf\api\module\bbCustomer_readPayment
  • rpf\api\module\bbCustomer_readTitle
  • rpf\api\module\bbCustomer_saveAdress
  • rpf\api\module\bbCustomer_validateAddress
  • rpf\api\module\bbCustomer_validateEntry
  • rpf\api\module\bbCustomer_validatePayinfo
  • rpf\api\module\bbDomain_readEntry
  • rpf\api\module\bbDomain_readFrontpage
  • rpf\api\module\bbDomain_readHandles
  • rpf\api\module\bbDomain_readPhpini
  • rpf\api\module\bbDomain_readSettings
  • rpf\api\module\bbDomain_readSubdomain
  • rpf\api\module\bbDomain_readWebalizerSettings
  • rpf\api\module\bbDomain_searchEntry
  • rpf\api\module\bbEmail_readAccount
  • rpf\api\module\bbMysql_inuseEntry
  • rpf\api\module\bbMysql_makeBackup
  • rpf\api\module\bbMysql_readEntry
  • rpf\api\module\bbOrder_readAccountAddress
  • rpf\api\module\bbOrder_readAccountEntry
  • rpf\api\module\bbOrder_readDisposition
  • rpf\api\module\bbOrder_readEntry
  • rpf\api\module\bbQuota_readEntry
  • rpf\api\module\customer
  • rpf\api\module\email
  • rpf\api\module\order
  • rpf\api\module\placeholder
  • rpf\api\module\user
  • rpf\extension\extension
  • rpf\extension\extensionModule
  • rpf\extension\invoiceTextExport
  • rpf\extension\mailExport
  • rpf\extension\module\domainExport
  • rpf\extension\module\index
  • rpf\extension\module\mgntRatioExport
  • rpf\system\module
  • rpf\system\module\log
  • rpf\system\module\moduleManager
  • rpf\system\rpf

Exceptions

  • rpf\system\module\exception
 1 <?php
 2 
 3 namespace rpf\system;
 4 use rpf\api\api;
 5 use rpf\extension\extension;
 6 use rpf\system\module\exception;
 7 use rpf\system\module\log;
 8 use rpf\system\module\moduleManager;
 9 
10 /**
11  * Generic RPF Module
12  *
13  * @author Andreas Doebeling <ad@1601.com>
14  * @copyright 1601.production siegler&thuemmler ohg
15  * @link https://github.com/ADoebeling/RP2-Framework
16  * @link https://xing-ad.1601.com
17  * @package system
18  */
19 class module
20 {
21     /**
22      * @var moduleManager
23      */
24     private $module;
25 
26     public function __construct()
27     {
28         if (!isset($GLOBALS['rpfModule']))
29         {
30             $GLOBALS['rpfModule'] = new moduleManager();
31         }
32         $this->module =& $GLOBALS['rpfModule'];
33     }
34 
35     /**
36      * Get the global api-object
37      * @return api
38      */
39     public function getApi()
40     {
41         return $this->getModule('\rpf\api\api');
42     }
43 
44     /**
45      * Get the global extension-object
46      * @return extension
47      */
48     public function getExtension()
49     {
50         return $this->getModule('\rpf\extension\extension');
51     }
52 
53     /**
54      * @return exception
55      */
56     public function getException()
57     {
58         return $this->getModule('exception');
59     }
60 
61 
62     /**
63      * Returns the system-instance of the requested object.
64      * If the instance doesn't exists, it builds the instance into
65      * $this->module[$name]
66      *
67      * @param $name
68      * @return object
69      */
70     protected function getModule($name)
71     {
72         return $this->module->get($name);
73     }
74 
75     
76     protected function addModule($nameOrObject)
77     {
78         return $this->module->add($nameOrObject);
79     }
80 }
API documentation generated by ApiGen