当前位置: 首页>>代码示例>>PHP>>正文


PHP main::__construct方法代码示例

本文整理汇总了PHP中main::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP main::__construct方法的具体用法?PHP main::__construct怎么用?PHP main::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在main的用法示例。


在下文中一共展示了main::__construct方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Constructor
  *
  * @param \phpbb\db\driver\driver_interface $db         Database object
  * @param \phpbb\user                       $user       User object
  * @param string                            $table_name Name of the table used to store data
  *
  * @access public
  */
 public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\user $user, $table_name)
 {
     $this->db = $db;
     $this->user = $user;
     $this->currency_table = $table_name;
     parent::__construct($db, $user, 'PPDE_DC', 'CURRENCY', $table_name, array('item_id' => array('name' => 'currency_id', 'type' => 'integer'), 'item_name' => array('name' => 'currency_name', 'type' => 'string'), 'item_iso_code' => array('name' => 'currency_iso_code', 'type' => 'string'), 'item_symbol' => array('name' => 'currency_symbol', 'type' => 'string'), 'item_on_left' => array('name' => 'currency_on_left', 'type' => 'boolean'), 'item_enable' => array('name' => 'currency_enable', 'type' => 'boolean'), 'item_order' => array('name' => 'currency_order', 'type' => 'integer')));
 }
开发者ID:ErnadoO,项目名称:ext_paypal_donation,代码行数:16,代码来源:currency.php

示例2: __construct

 /**
  * Constructor
  *
  * @param \phpbb\db\driver\driver_interface $db         Database object
  * @param \phpbb\user                       $user       User object
  * @param string                            $table_name Name of the table used to store data
  *
  * @access public
  */
 public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\user $user, $table_name)
 {
     $this->db = $db;
     $this->user = $user;
     $this->transactions_log_table = $table_name;
     parent::__construct($db, $user, 'PPDE_DT', 'TRANSACTION', $table_name, array('item_id' => array('name' => 'transaction_id', 'type' => 'integer'), 'item_receiver_id' => array('name' => 'receiver_id', 'type' => 'string'), 'item_receiver_email' => array('name' => 'receiver_email', 'type' => 'string'), 'item_residence_country' => array('name' => 'residence_country', 'type' => 'string'), 'item_business' => array('name' => 'business', 'type' => 'string'), 'item_confirmed' => array('name' => 'confirmed', 'type' => 'boolean'), 'item_test_ipn' => array('name' => 'test_ipn', 'type' => 'boolean'), 'item_txn_id' => array('name' => 'txn_id', 'type' => 'string'), 'item_txn_type' => array('name' => 'txn_type', 'type' => 'string'), 'item_parent_txn_id' => array('name' => 'parent_txn_id', 'type' => 'string'), 'item_payer_email' => array('name' => 'payer_email', 'type' => 'string'), 'item_payer_id' => array('name' => 'payer_id', 'type' => 'string'), 'item_payer_status' => array('name' => 'payer_status', 'type' => 'string'), 'item_first_name' => array('name' => 'first_name', 'type' => 'string'), 'item_last_name' => array('name' => 'last_name', 'type' => 'string'), 'item_user_id' => array('name' => 'user_id', 'type' => 'integer'), 'item_custom' => array('name' => 'custom', 'type' => 'string'), 'item_item_name' => array('name' => 'item_name', 'type' => 'string'), 'item_item_number' => array('name' => 'item_number', 'type' => 'string'), 'item_mc_currency' => array('name' => 'mc_currency', 'type' => 'string'), 'item_mc_fee' => array('name' => 'mc_fee', 'type' => 'float'), 'item_mc_gross' => array('name' => 'mc_gross', 'type' => 'float'), 'item_net_amount' => array('name' => 'net_amount', 'type' => 'float'), 'item_payment_date' => array('name' => 'payment_date', 'type' => 'integer'), 'item_payment_status' => array('name' => 'payment_status', 'type' => 'string'), 'item_payment_type' => array('name' => 'payment_type', 'type' => 'string'), 'item_settle_amount' => array('name' => 'settle_amount', 'type' => 'float'), 'item_settle_currency' => array('name' => 'settle_currency', 'type' => 'string'), 'item_exchange_rate' => array('name' => 'exchange_rate', 'type' => 'string')));
 }
开发者ID:3D-I,项目名称:ext_paypal_donation,代码行数:16,代码来源:transactions.php

示例3: __construct

 /**
  * Constructor
  *
  * @param \phpbb\config\config              $config     Config object
  * @param \phpbb\db\driver\driver_interface $db         Database object
  * @param \phpbb\user                       $user       User object
  * @param string                            $table_name Name of the table used to store data
  *
  * @access public
  */
 public function __construct(\phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\user $user, $table_name)
 {
     $this->config = $config;
     $this->db = $db;
     $this->user = $user;
     $this->donation_pages_table = $table_name;
     parent::__construct($db, $user, 'PPDE_DP', 'DONATION_PAGES', $table_name, array('item_id' => array('name' => 'page_id', 'type' => 'integer'), 'item_name' => array('name' => 'page_title', 'type' => 'string'), 'item_lang_id' => array('name' => 'page_lang_id', 'type' => 'integer'), 'item_content' => array('name' => 'page_content', 'type' => 'string'), 'item_content_bbcode_bitfield' => array('name' => 'page_content_bbcode_bitfield', 'type' => 'string'), 'item_content_bbcode_uid' => array('name' => 'page_content_bbcode_uid', 'type' => 'string'), 'item_content_bbcode_options' => array('name' => 'page_content_bbcode_options', 'type' => 'integer')));
 }
开发者ID:3D-I,项目名称:ext_paypal_donation,代码行数:18,代码来源:donation_pages.php

示例4: __construct

 public function __construct()
 {
     //		$this->css[] = 'css';//在这里可以添加CSS文件
     //		$this->js[] = 'js';//在这里可以添加JS文件
     //$this->tt = $this->loadModel('test');//初始化model
     //$this->c_title = '系统消息'; //设置页面变量
     //if(!parent::is_login()){  //TODO 判断用户是否登陆
     //	header("Location:".PASSPORT_URL.'member/login/');
     //}
     parent::__construct();
 }
开发者ID:noikiy,项目名称:webgame,代码行数:11,代码来源:test.php

示例5: __construct

 public function __construct()
 {
     //		$this->css[] = 'css';//在这里可以添加CSS文件
     //		$this->js[] = 'js';//在这里可以添加JS文件
     $this->member = $this->loadModel('member_model');
     //初始化model
     //$this->c_title = '系统消息'; //设置页面变量
     //if(!parent::is_login()){  //TODO 判断用户是否登陆
     //	header("Location:".PASSPORT_URL.'member/login/');
     //}
     parent::__construct();
     $this->css[] = 'dialog';
     $this->js[] = 'dialogs';
     define("VALID_NUMBER", "<img id='valid_src' src='" . SITE_URL . "member/validn/?f=" . rand(0, 1000) . "' onclick=\"this.src='" . SITE_URL . "member/validn/?f='+Math.random()\" style='cursor:pointer;'  />");
 }
开发者ID:noikiy,项目名称:webgame,代码行数:15,代码来源:index.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     //验证码
     define("VALID_NUMBER", "<img id='valid_src' src='" . SITE_URL . "member/validn/?f=" . rand(0, 1000) . "' onclick=\"this.src='" . SITE_URL . "member/validn/?f='+Math.random()\" style='cursor:pointer;'  />");
 }
开发者ID:noikiy,项目名称:webgame,代码行数:6,代码来源:member.php


注:本文中的main::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。