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


PHP F0FTable::__construct方法代码示例

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


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

示例1: __construct

 /**
  * Instantiate the table object
  *
  * @param   string     $table  Param
  * @param   string     $key    Param
  * @param   JDatabase  &$db    The Joomla! database object
  */
 public function __construct($table, $key, &$db)
 {
     parent::__construct('#__autotweet_automator', 'id', $db);
     $this->xtform = new JRegistry();
     $this->unix_mhdmd = null;
     $this->repeat_until = null;
 }
开发者ID:johngrange,项目名称:wookeyholeweb,代码行数:14,代码来源:itemeditor.php

示例2: __construct

 public function __construct($table, $key, &$db, $config = array())
 {
     $table = "#__j2store_productimages";
     //important
     $key = "j2store_productimage_id";
     parent::__construct($table, $key, $db, $config);
 }
开发者ID:davetheapple,项目名称:oakencraft,代码行数:7,代码来源:productimage.php

示例3: __construct

 /**
  * Public constructor. Overrides the parent constructor, making sure there are lft/rgt columns which make it
  * compatible with nested sets.
  *
  * @param   string          $table  Name of the database table to model.
  * @param   string          $key    Name of the primary key field in the table.
  * @param   JDatabaseDriver &$db    Database driver
  * @param   array           $config The configuration parameters array
  *
  * @throws \RuntimeException When lft/rgt columns are not found
  */
 public function __construct($table, $key, &$db, $config = array())
 {
     parent::__construct($table, $key, $db, $config);
     if (!$this->hasField('lft') || !$this->hasField('rgt')) {
         throw new \RuntimeException("Table " . $this->getTableName() . " is not compatible with F0FTableNested: it does not have lft/rgt columns");
     }
 }
开发者ID:chaudhary4k4,项目名称:modernstore,代码行数:18,代码来源:nested.php

示例4: __construct

 public function __construct($table, $key, &$db, $config = array())
 {
     $table = "#__j2store_product_options";
     $query = $db->getQuery(true)->select($db->qn('#__j2store_options') . '.option_name', $db->qn('#__j2store_options') . '.type')->leftJoin('#__j2store_options ON #__j2store_options.j2store_option_id = #__j2store_product_options.option_id');
     $this->setQueryJoin($query);
     parent::__construct($table, $key, $db, $config);
 }
开发者ID:davetheapple,项目名称:oakencraft,代码行数:7,代码来源:productoption.php

示例5: __construct

 public function __construct($table, $key, &$db, $config = array())
 {
     parent::__construct($table, $key, $db, $config);
     $this->addKnownField('_dontCheckPaymentID', false);
     $this->addKnownField('_dontNotify', false);
     $this->addKnownField('_noemail', false);
 }
开发者ID:ZoiaoDePeixe,项目名称:akeebasubs,代码行数:7,代码来源:subscription.php

示例6: __construct

 public function __construct($table, $key, &$db)
 {
     $table = '#__users';
     $key = 'id';
     $query = $db->getQuery(true)->select($db->qn('#__j2store_vendors') . '.j2store_vendor_id')->select($db->qn('#__j2store_vendors') . '.j2store_user_id')->select($db->qn('#__j2store_vendors') . '.address_id')->select($db->qn('#__j2store_addresses') . '.j2store_address_id')->select($db->qn('#__j2store_addresses') . '.first_name')->select($db->qn('#__j2store_addresses') . '.last_name')->select($db->qn('#__j2store_addresses') . '.address_1')->select($db->qn('#__j2store_addresses') . '.address_2')->select($db->qn('#__j2store_addresses') . '.user_id')->select($db->qn('#__j2store_addresses') . '.email')->select($db->qn('#__j2store_addresses') . '.city')->select($db->qn('#__j2store_addresses') . '.zip')->select($db->qn('#__j2store_addresses') . '.zone_id')->select($db->qn('#__j2store_addresses') . '.country_id')->select($db->qn('#__j2store_addresses') . '.phone_1')->select($db->qn('#__j2store_addresses') . '.phone_2')->select($db->qn('#__j2store_addresses') . '.fax')->select($db->qn('#__j2store_addresses') . '.type')->select($db->qn('#__j2store_addresses') . '.company')->select($db->qn('#__j2store_addresses') . '.tax_number')->select($db->qn('#__j2store_countries') . '.country_name')->select($db->qn('#__j2store_zones') . '.zone_name')->leftJoin('#__j2store_vendors ON #__j2store_vendors.j2store_user_id = #__users.id')->leftJoin('#__j2store_addresses ON #__j2store_addresses.j2store_address_id = #__j2store_vendors.address_id')->leftJoin('#__j2store_countries ON #__j2store_countries.j2store_country_id = #__j2store_addresses.country_id')->leftJoin('#__j2store_zones ON #__j2store_zones.j2store_zone_id = #__j2store_addresses.zone_id');
     $this->setQueryJoin($query);
     parent::__construct($table, $key, $db);
 }
开发者ID:davetheapple,项目名称:oakencraft,代码行数:8,代码来源:vendoruser.php

示例7: __construct

 public function __construct($table, $key, &$db, $config = array())
 {
     $table = '#__j2store_addresses';
     $key = 'j2store_address_id';
     parent::__construct($table, $key, $db, $config);
     $session = JFactory::getSession();
     if ($session->has('is_vat_valid', 'j2store')) {
         $vat_result = $session->get('is_vat_valid', 'invalid', 'j2store');
         if (strtolower($vat_result == 'valid')) {
             $this->set_is_vat_exempt(1);
         }
     }
 }
开发者ID:davetheapple,项目名称:oakencraft,代码行数:13,代码来源:customer.php

示例8: __construct

 public function __construct($table, $key, &$db)
 {
     $query = JFactory::getDbo()->getQuery(true);
     $query->leftJoin('#__j2store_countries as billingcountry ON billingcountry.j2store_country_id = #__j2store_orderinfos.billing_country_id');
     $query->select('billingcountry.country_name as billing_country_name');
     $query->leftJoin('#__j2store_countries as shippingcountry ON shippingcountry.j2store_country_id = #__j2store_orderinfos.shipping_country_id');
     $query->select('shippingcountry.country_name as shipping_country_name');
     $query->leftJoin('#__j2store_zones as billingzone ON billingzone.j2store_zone_id = #__j2store_orderinfos.billing_zone_id');
     $query->select('billingzone.zone_name as billing_zone_name');
     $query->leftJoin('#__j2store_zones as shippingzone ON shippingzone.j2store_zone_id = #__j2store_orderinfos.shipping_zone_id');
     $query->select('shippingzone.zone_name as shipping_zone_name');
     $this->setQueryJoin($query);
     parent::__construct($table, $key, $db);
 }
开发者ID:davetheapple,项目名称:oakencraft,代码行数:14,代码来源:orderinfo.php

示例9: __construct

 public function __construct($table, $key, &$db, $config = array())
 {
     $query = $db->getQuery(true)->select($db->qn('#__j2store_productimages') . '.' . $db->qn('j2store_productimage_id'))->select($db->qn('#__j2store_productimages') . '.' . $db->qn('main_image'))->select($db->qn('#__j2store_productimages') . '.' . $db->qn('thumb_image'))->select($db->qn('#__j2store_productimages') . '.' . $db->qn('additional_images'))->join('LEFT OUTER', $db->qn('#__j2store_productimages') . ' ON ' . $db->qn('#__j2store_products') . '.' . $db->qn('j2store_product_id') . ' = ' . $db->qn('#__j2store_productimages') . '.' . $db->qn('product_id'));
     //manufacturer
     $query->join('LEFT OUTER', $db->qn('#__j2store_manufacturers') . ' ON ' . $db->qn('#__j2store_products') . '.' . $db->qn('manufacturer_id') . ' = ' . $db->qn('#__j2store_manufacturers.j2store_manufacturer_id'));
     //vendors
     $query->join('LEFT OUTER', $db->qn('#__j2store_vendors') . ' ON ' . $db->qn('#__j2store_products') . '.' . $db->qn('vendor_id') . ' = ' . $db->qn('#__j2store_vendors.j2store_vendor_id'));
     //now join manufacturer address id with address table
     $query->select($db->qn('#__j2store_addresses') . '.' . $db->qn('first_name') . ' AS manufacturer_first_name')->select($db->qn('#__j2store_addresses') . '.' . $db->qn('last_name') . ' AS manufacturer_last_name')->select($db->qn('#__j2store_addresses') . '.' . $db->qn('company') . ' AS manufacturer')->join('LEFT OUTER', $db->qn('#__j2store_addresses') . ' ON ' . $db->qn('#__j2store_manufacturers') . '.' . $db->qn('address_id') . ' = ' . $db->qn('#__j2store_addresses') . '.' . $db->qn('j2store_address_id'));
     //now join vendor address id with address table
     /* 	$query
     		->select('vendoraddress.first_name as vendor_first_name')
     		->select('vendoraddress.last_name as vendor_last_name')
     		->select('vendoraddress.company as vendor')
     		->join('LEFT_OUTER', '#__j2store_addresses AS vendoraddress ON #__j2store_vendors.address_id = vendoraddress.j2store_address_id'); */
     $this->setQueryJoin($query);
     parent::__construct($table, $key, $db, $config);
 }
开发者ID:afend,项目名称:RULug,代码行数:18,代码来源:product.php

示例10: __construct

 public function __construct($table, $key, &$db)
 {
     parent::__construct('#__admintools_badwords', 'id', $db);
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:4,代码来源:badword.php

示例11: __construct

 /**
  * Instantiate the table object
  *
  * @param   string     $table  Param
  * @param   string     $key    Param
  * @param   JDatabase  &$db    The Joomla! database object
  */
 public function __construct($table, $key, &$db)
 {
     parent::__construct('#__content', 'id', $db, array('behaviors' => array('tags', 'autotweetcontentassets')));
     $this->_columnAlias = array('enabled' => 'published', 'created_on' => 'created', 'modified_on' => 'modified', 'locked_on' => 'checked_out_time', 'locked_by' => 'checked_out');
     $this->id = 0;
 }
开发者ID:johngrange,项目名称:wookeyholeweb,代码行数:13,代码来源:feedcontent.php

示例12: __construct

 public function __construct($table, $key, &$db)
 {
     $table = "#__extensions";
     $key = "extension_id";
     parent::__construct($table, $key, $db);
 }
开发者ID:davetheapple,项目名称:oakencraft,代码行数:6,代码来源:report.php

示例13: __construct

 /**
  * Instantiate the table object
  *
  * @param   string     $table  Param
  * @param   string     $key    Param
  * @param   JDatabase  &$db    The Joomla! database object
  */
 public function __construct($table, $key, &$db)
 {
     parent::__construct('#__autotweet_requests', 'id', $db);
     $this->_columnAlias = array('enabled' => 'published', 'created_on' => 'created', 'modified_on' => 'modified', 'locked_on' => 'checked_out_time', 'locked_by' => 'checked_out');
     $this->_trackAssets = true;
 }
开发者ID:johngrange,项目名称:wookeyholeweb,代码行数:13,代码来源:request.php

示例14: __construct

 public function __construct($table, $key, &$db, $config = array())
 {
     parent::__construct($table, $key, $db, $config);
     $this->addKnownField('localformat', false);
 }
开发者ID:ZoiaoDePeixe,项目名称:akeebasubs,代码行数:5,代码来源:invoicetemplate.php

示例15: __construct

 public function __construct($table, $key, &$db, $config = array())
 {
     parent::__construct($table, $key, $db, $config = array());
 }
开发者ID:davetheapple,项目名称:oakencraft,代码行数:4,代码来源:shippingmethod.php


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