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\api\module;
 4 use rpf\api\apiModule;
 5 
 6 /**
 7  * Implementation of bbOrder:readDisposition
 8  * @see https://doku.premium-admin.eu/doku.php/api/methoden/bborder/readdisposition
 9  * @package system\module
10  */
11 class bbOrder_readDisposition extends apiModule
12 {
13     const rpcMethod = 'bbOrder::readDisposition';
14 
15     /**
16      * @param int $oeid
17      * @return $this|bbOrder_readDisposition
18      */
19     public function setFilterOrderId($oeid = 0)
20     {
21         return $this->addParam('oeid', (int) $oeid);
22     }
23 
24     /**
25      * @param bool|false $accountable
26      * @return $this|bbOrder_readDisposition
27      */
28     public function setFilterAccountable($accountable = false)
29     {
30         return $this->addParam('return_accountable', (bool) $accountable);
31     }
32 
33     /**
34      * @param bool|false $active
35      * @return $this|bbOrder_readDisposition
36      */
37     public function setFilterActive($active = false)
38     {
39         return $this->addParam('return_active', (bool) $active);
40     }
41 
42 
43     protected function getPatchedResult($result = array())
44     {
45         /*
46          * Patch for stupid/none implemented exchange // df-ticket #5402091 / #5401975
47          */
48         if (strpos($result['so_type'], 'hosting_zusatz_exchange_') === 0)
49         {
50             $regex = "/^(\\S*@\\S*\\.\\S{2,8})/";
51             preg_match($regex, $result['name'], $matches);
52             $result['_patch_exchange_account'] = $matches[1];
53         }
54 
55         /*
56          * Patch against stupid/none implemented ssl-certificate // df-ticket #5401975
57          */
58         else if($result['so_type'] == 'ssl')
59         {
60             $regEx = "/(\\S*\\.\\S*\\.\\S*)/";
61             preg_match($regEx, $row['descr'], $domain);
62             $result['_patch_ssldomain'] = $domain[1];
63         }
64     }
65 
66 
67 
68 
69     public function getDisposition($ordNr = false)
70     {
71         if ($ordNr !== false && isset($this->disposition[$ordNr]))
72         {
73             return $this->disposition[$ordNr];
74         }
75         else if (!empty($this->disposition))
76         {
77             return $this->disposition;
78         }
79         else
80         {
81             throw new \Exception('We don\'t have any dispositions', 404);
82         }
83     }
84 }
API documentation generated by ApiGen