当前位置: 首页>>代码示例>>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;未经允许,请勿转载。