/**
  * Construct a new merchant gateway
  */
 public function __construct()
 {
     // Load components required by this gateway
     Loader::loadComponents($this, array("Input"));
     // Load the language required by this gateway
     Language::loadLang("nonmerchant_demo", null, dirname(__FILE__) . DS . "language" . DS);
 }
 public function __construct()
 {
     Loader::loadComponents($this, array("Input"));
     Language::loadLang("lang", null, dirname(__FILE__) . DS . "language" . DS);
     Loader::loadHelpers($this, array("Html"));
     $this->loadConfig(dirname(__FILE__) . DS . "config.json");
 }
 public function __construct()
 {
     // Load components required by this module
     Loader::loadComponents($this, array("Input"));
     // Load the language required by this module
     Language::loadLang("paymentwall", null, dirname(__FILE__) . DS . "language" . DS);
 }
 /**
  * Initialize
  */
 public function __construct()
 {
     parent::__construct();
     // Set the company ID
     $this->company_id = Configure::get("Blesta.company_id");
     $this->dir = PLUGINDIR . "css_javascript_toolbox/includes/" . $this->company_id . "/";
     Language::loadLang("model", null, PLUGINDIR . "css_javascript_toolbox" . DS . "language" . DS);
 }
 /**
  * Initializes the module
  */
 public function __construct()
 {
     // Load components required by this module
     Loader::loadComponents($this, array("Input", "Json"));
     Loader::loadHelpers($this, array("DataStructure"));
     // Load the language required by this module
     Language::loadLang("cpanelextended", null, dirname(__FILE__) . DS . "language" . DS);
 }
 /**
  * Initializes the module 
  *	 
  * /DONE/
  */
 public function __construct()
 {
     // Load components required by this module
     Loader::loadComponents($this, array("Input"));
     // Load config
     $this->loadConfig(dirname(__FILE__) . DS . "config.json");
     // Load the language required by this module
     Language::loadLang("proxmoxv2", null, dirname(__FILE__) . DS . "language" . DS);
 }
 public function __construct()
 {
     Language::loadLang("admin", null, dirname(__FILE__) . DS . "language" . DS);
     // Load components required by this plugin
     Loader::loadComponents($this, array("Input", "Record"));
     // Load modules for this plugun
     Loader::loadModels($this, array("ModuleManager"));
     $this->loadConfig(dirname(__FILE__) . DS . "config.json");
     $this->upload_path = PLUGINDIR . "css_javascript_toolbox/includes/" . Configure::get("Blesta.company_id") . DS;
 }
 public function __construct($orientation = 'P', $unit = 'mm', $format = 'A4', $unicode = true, $encoding = 'UTF-8')
 {
     Language::loadLang("html_invoice", null, dirname(__FILE__) . DS . "language" . DS);
     Loader::loadModels($this, array("Companies", "Transactions"));
     $company_id = Configure::get("Blesta.company_id");
     $this->company = $this->Companies->get($company_id);
     $this->Html = new Html();
     $buffer = '';
     $this->rtl = '';
 }
Exemple #9
0
 /**
  * Initializes the module
  */
 public function __construct()
 {
     // Load components required by this module
     Loader::loadComponents($this, array("Input"));
     // Load the language required by this module
     Language::loadLang("gogetsslv2", null, dirname(__FILE__) . DS . "language" . DS);
     //load our config file
     Configure::load("gogetsslv2", dirname(__FILE__) . DS . "config" . DS);
     //error_reporting(E_ALL);
     //ini_set('display_errors', 1);
 }
 public function __construct($orientation = 'P', $unit = 'mm', $format = 'A4', $unicode = true, $encoding = 'UTF-8', $diskcache = false, $font = null)
 {
     Language::loadLang("pdf_invoice", null, dirname(__FILE__) . DS . "language" . DS);
     // Invoke the parent constructor
     parent::__construct($orientation, $unit, $format, $unicode, $encoding, $diskcache);
     $this->line_options = array('font_size' => self::$font_size, 'x_pos' => 44, 'y_pos' => $this->table_heading_y_pos, 'border' => "BR", 'height' => 22, 'line_style' => array('width' => 0.5, 'cap' => "butt", 'join' => "miter", 'dash' => 2, 'color' => self::$primary_color), 'font_size' => self::$font_size_alt, 'padding' => self::$font_size_alt, 'col' => array('name' => array('width' => 312), 'qty' => array('width' => 70, 'align' => 'C'), 'unit_price' => array('width' => 70, 'align' => 'R'), 'price' => array('width' => 70, 'align' => 'R', 'border' => "B")), 'cell' => array(array('name' => array('align' => 'L'))));
     $this->payment_options = array('x_pos' => 44, 'y_pos' => $this->table_heading_y_pos, 'border' => "BR", 'height' => 22, 'line_style' => array('width' => 0.5, 'cap' => "butt", 'join' => "miter", 'dash' => 2, 'color' => self::$primary_color), 'font_size' => self::$font_size_alt, 'padding' => self::$font_size_alt, 'col' => array('applied_date' => array('width' => 130.5), 'type_name' => array('width' => 130.5, 'align' => 'C'), 'transaction_id' => array('width' => 130.5, 'align' => 'R'), 'applied_amount' => array('width' => 130.5, 'align' => 'R', 'border' => "B")), 'cell' => array(array('applied_date' => array('align' => 'L'))));
     // Set tag to use on page numbering replacement
     $this->AliasNbPages("{P}");
     // Set image scale factor
     $this->setImageScale(2);
     // Default monospaced font
     $this->SetDefaultMonospacedFont("courier");
     $this->setFontInfo($font);
     // Set margins
     $this->SetMargins(25, 260, 25);
     $this->SetFooterMargin(160);
     // Set auto page breaks y-px from the bottom of the page
     $this->SetAutoPageBreak(true, 190);
 }
 public function __construct()
 {
     Loader::loadComponents($this, array("Input", "Record"));
     Language::loadLang("tastycpanel_lang", null, dirname(__FILE__) . DS . "language" . DS);
     Loader::loadHelpers($this, array("Html"));
 }
 /**
  * Loads the language to be used for this invoice
  */
 public function __construct()
 {
     // Load language for this template
     Language::loadLang("template_invoice", null, dirname(__FILE__) . DS . "language" . DS);
 }