Ejemplo n.º 1
0
 /**
  * Class constructor of traffic. Gets reference for database connection,
  * admin mode and service name.
  *
  * @param db     Reference to database handler
  * @param int    For admin mode set 1, otherwise 0
  * @param string The name of the service
  *
  * @author Former03 GmbH :: Florian Lippert <*****@*****.**>
  */
 function __construct($db, $mode = 0, $service_name = '')
 {
     $this->allowLastInvoicedDatePastServiceStart = true;
     $this->toInvoiceTableData = array('table' => getModeDetails($mode, 'TABLE_PANEL_USERS', 'table'), 'keyfield' => getModeDetails($mode, 'TABLE_PANEL_USERS', 'key'), 'condfield' => getModeDetails($mode, 'TABLE_PANEL_USERS', 'key'));
     if ($service_name == '') {
         $service_name = 'traffic';
     }
     parent::__construct(&$db, $mode, $service_name);
 }
Ejemplo n.º 2
0
 /**
  * Class constructor of hosting. Gets reference for database connection,
  * admin mode and service name.
  *
  * @param db     Reference to database handler
  * @param int    For admin mode set 1, otherwise 0
  * @param string The name of the service
  *
  * @author Former03 GmbH :: Florian Lippert <*****@*****.**>
  */
 function __construct($db, $mode = 0, $service_name = '')
 {
     $this->endServiceImmediately = true;
     $this->toInvoiceTableData = array('table' => getModeDetails($mode, 'TABLE_PANEL_USERS', 'table'), 'keyfield' => getModeDetails($mode, 'TABLE_PANEL_USERS', 'key'), 'condfield' => getModeDetails($mode, 'TABLE_PANEL_USERS', 'key'));
     if ($service_name == '') {
         $service_name = 'hosting';
     }
     parent::__construct(&$db, $mode, $service_name);
 }
Ejemplo n.º 3
0
 /**
  * Class constructor of domains. Gets reference for database connection,
  * admin mode and service name.
  *
  * @param db     Reference to database handler
  * @param int    For admin mode set 1, otherwise 0
  * @param string The name of the service
  *
  * @author Former03 GmbH :: Florian Lippert <*****@*****.**>
  */
 function __construct($db, $mode = 0, $service_name = '')
 {
     $this->toInvoiceTableData = array('table' => TABLE_PANEL_DOMAINS, 'keyfield' => 'id', 'condfield' => 'customerid');
     $this->serviceTemplateTableData = array('table' => TABLE_BILLING_SERVICE_DOMAINS_TEMPLATES, 'keyfield' => 'tld');
     if ($service_name == '') {
         $service_name = 'domains';
     }
     parent::__construct(&$db, $mode, $service_name);
 }
Ejemplo n.º 4
0
 /**
  * Class constructor of other. Gets reference for database connection,
  * admin mode and service name.
  *
  * @param db     Reference to database handler
  * @param int    For admin mode set 1, otherwise 0
  * @param string The name of the service
  *
  * @author Former03 GmbH :: Florian Lippert <*****@*****.**>
  */
 function __construct($db, $mode = 0, $service_name = '')
 {
     $this->toInvoiceTableData = array('table' => TABLE_BILLING_SERVICE_OTHER, 'keyfield' => 'id', 'condfield' => 'customerid');
     $this->serviceTemplateTableData = array('table' => TABLE_BILLING_SERVICE_OTHER_TEMPLATES, 'keyfield' => 'templateid');
     if ($service_name == '') {
         $service_name = 'other';
     }
     parent::__construct(&$db, $mode, $service_name);
 }