當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Language::loadLang方法代碼示例

本文整理匯總了PHP中Language::loadLang方法的典型用法代碼示例。如果您正苦於以下問題:PHP Language::loadLang方法的具體用法?PHP Language::loadLang怎麽用?PHP Language::loadLang使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Language的用法示例。


在下文中一共展示了Language::loadLang方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * 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);
 }
開發者ID:adrzei,項目名稱:blesta_sdk,代碼行數:10,代碼來源:nonmerchant_demo.php

示例2: __construct

 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");
 }
開發者ID:blesta,項目名稱:module-digitalocean,代碼行數:7,代碼來源:digitaloceanmodule.php

示例3: __construct

 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);
 }
開發者ID:paymentwall,項目名稱:module-blesta,代碼行數:7,代碼來源:paymentwall.php

示例4: __construct

 /**
  * 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);
 }
開發者ID:Blesta-Addons,項目名稱:Css_Javascript_Toolbox,代碼行數:11,代碼來源:toolbox.php

示例5: __construct

 /**
  * 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);
 }
開發者ID:netluxe,項目名稱:cPanel-Extended,代碼行數:11,代碼來源:cpanelextended.php

示例6: __construct

 /**
  * 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);
 }
開發者ID:OpenIaaS,項目名稱:proxmox-module,代碼行數:14,代碼來源:proxmoxv2.php

示例7: __construct

 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;
 }
開發者ID:Blesta-Addons,項目名稱:Css_Javascript_Toolbox,代碼行數:10,代碼來源:css_javascript_toolbox_plugin.php

示例8: __construct

 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 = '';
 }
開發者ID:robertol,項目名稱:html_invoice,代碼行數:10,代碼來源:html_invoice_htm.php

示例9: __construct

 /**
  * 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);
 }
開發者ID:NETLINK,項目名稱:gogetsslv2,代碼行數:14,代碼來源:gogetsslv2.php

示例10: __construct

 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);
 }
開發者ID:robertol,項目名稱:html_invoice,代碼行數:20,代碼來源:html_invoice_pdf.php

示例11: __construct

 public function __construct()
 {
     Loader::loadComponents($this, array("Input", "Record"));
     Language::loadLang("tastycpanel_lang", null, dirname(__FILE__) . DS . "language" . DS);
     Loader::loadHelpers($this, array("Html"));
 }
開發者ID:netluxe,項目名稱:module-tastycpanel,代碼行數:6,代碼來源:tastycpanelmodule.php

示例12: __construct

 /**
  * 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);
 }
開發者ID:robertol,項目名稱:html_invoice,代碼行數:8,代碼來源:html_invoice.php


注:本文中的Language::loadLang方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。