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


PHP table::__construct方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct('import', array('id_product' => 'i', 'id_buyer' => 'i'));
     // parent::setFormFields(
     //   array('id_product' => array('text', ''  ),
     //    'id_buyer' => array('text', ''  )));
 }
开发者ID:stanhelen87,项目名称:OOOO,代码行数:7,代码来源:table_import.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->set_table(S_DB_PREFIX . 'comment');
     $this->set_where("com_lang = '" . S_LANG . "'");
     $this->set_order('com_id');
 }
开发者ID:jechiy,项目名称:xiu-cms,代码行数:7,代码来源:comment.class.php

示例3: __construct

 public function __construct()
 {
     parent::__construct('inkind', array('inkind' => 's', 'kindparent' => 's', 'id_inkind' => 'i', 'id_parent' => 'i'));
     parent::setDefaultOrder('id_parent asc');
     parent::setTableSelect('inkind natural join kindparent');
     parent::setFormFields(array('inkind' => array('text', 'Название вида')));
 }
开发者ID:stanhelen87,项目名称:OOOO,代码行数:7,代码来源:table_kindparent.php

示例4: __construct

 public function __construct()
 {
     parent::__construct('buyer', array('login' => 's', 'password' => 's'));
     parent::setFormFields(array('login' => array('text', 'Логин'), 'password' => array('password', 'Пароль')));
     //'id_hours' => array('radio', 'C 6 00 до 12 00  ','C 12 00 до 18 00  ','C 18 00 до 21 00  ')));
     parent::setValidationRules(array('login' => '/[A-Za-z]{1,20}/', 'password' => '/[A-Za-z]{1,20}/'));
 }
开发者ID:stanhelen87,项目名称:OOOO,代码行数:7,代码来源:table_buyerin.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $this->set_table(S_DB_PREFIX . 'message');
     $this->set_where("mes_lang = '" . S_LANG . "'");
     $this->set_order('mes_id');
 }
开发者ID:jechiy,项目名称:xiu-cms,代码行数:7,代码来源:message.class.php

示例6: __construct

 public function __construct()
 {
     parent::__construct('buyer', array('id_buyer' => 'i', 'surname' => 's', 'name' => 's', 'middlename' => 's', 'address' => 's', 'number' => 's', 'hours' => 's', 'login' => 's', 'password' => 's'));
     parent::setFormFields(array('surname' => array('text', 'Фамилия'), 'name' => array('text', 'Имя'), 'middlename' => array('text', 'Отчество'), 'address' => array('text', 'Адрес'), 'number' => array('text', 'Телефон'), 'hours' => array('text', 'Желаемое время доставки'), 'login' => array('text', 'Логин'), 'password' => array('password', 'Пароль')));
     //'id_hours' => array('radio', 'C 6 00 до 12 00  ','C 12 00 до 18 00  ','C 18 00 до 21 00  ')));
     parent::setValidationRules(array('surname' => '/[А-Яа-яЁё]{1,20}/', 'name' => '/[А-Яа-яЁё]{1,20}/', 'middlename' => '/[А-Яа-яЁё]{1,20}/', 'address' => '/[А-Яа-яЁё]{1,20}/', 'number' => '/\\b[0-9]{1,20}\\b/', 'hours' => '/\\b[0-9]{1,20}\\b/', 'login' => '/[A-Za-z]{1,20}/', 'password' => '/[A-Za-z]{1,20}/'));
 }
开发者ID:stanhelen87,项目名称:OOOO,代码行数:7,代码来源:table_buyer.php

示例7: __construct

 public function __construct()
 {
     parent::__construct('buyer', array('id_buyer' => 'i', 'hours' => 's', 'address' => 's'));
     parent::setTableSelect('buyer natural join product');
     parent::setFormFields(array('id_buyer' => array('', ''), 'hours' => array('text', 'Желаемое время'), 'address' => array('text', 'Адрес')));
     //'id_hours' => array('radio', 'C 6 00 до 12 00  ','C 12 00 до 18 00  ','C 18 00 до 21 00  ')));
     parent::setValidationRules(array('hours' => '/\\b[0-9]{1,20}\\b/', 'address' => '/[А-Яа-яЁё]{1,20}/'));
 }
开发者ID:stanhelen87,项目名称:OOOO,代码行数:8,代码来源:table_dostavka.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->set_table(S_DB_PREFIX . 'att_art');
     $this->set_where("att_lang = '" . S_LANG . "'");
     $this->set_order('att_top');
     $this->set_order('att_index');
     $this->set_order('att_id', 'asc');
 }
开发者ID:jechiy,项目名称:xiu-cms,代码行数:9,代码来源:att_art.class.php

示例9:

 function __construct($attributes, $table_name, $page_name)
 {
     // table-header
     parent::__construct($attributes, $table_name, $page_name);
     $this->setAutoGrow(true);
     $this->setAutoFill(" ");
     $this->table_name = $table_name;
     $this->page_name = $page_name;
 }
开发者ID:BackupTheBerlios,项目名称:cosmopool-multi-svn,代码行数:9,代码来源:tableSort.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $this->set_table(S_DB_PREFIX . 'link');
     $this->set_where("lin_lang = '" . S_LANG . "'");
     $this->set_order('lin_top');
     $this->set_order('lin_index');
     $this->set_order('lin_id');
 }
开发者ID:jechiy,项目名称:xiu-cms,代码行数:9,代码来源:link.class.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     $this->set_table(S_DB_PREFIX . 'channel');
     $this->set_where("cha_lang = '" . S_LANG . "'");
     $this->set_where('cha_show = 1');
     $this->set_order('cha_top');
     $this->set_order('cha_index');
     $this->set_order('cha_id');
 }
开发者ID:jechiy,项目名称:xiu-cms,代码行数:10,代码来源:channel.class.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->set_table(S_DB_PREFIX . 'menu');
     $this->set_where("men_lang = '" . S_LANG . "'");
     $this->set_where('men_show = 1');
     $this->set_order('men_top');
     $this->set_order('men_index');
     $this->set_order('men_id', 'asc');
 }
开发者ID:jechiy,项目名称:xiu-cms,代码行数:10,代码来源:menu.class.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     $this->set_table(S_DB_PREFIX . 'article');
     $this->set_where("art_lang = '" . S_LANG . "'");
     $this->set_where('art_show = 1');
     $this->set_order('art_top');
     $this->set_order('art_index');
     $this->set_order('art_id');
 }
开发者ID:jechiy,项目名称:xiu-cms,代码行数:10,代码来源:article.class.php

示例14: __construct

 public function __construct()
 {
     parent::__construct('product', array('cost' => 'i', 'name_product' => 's', 'id_producer' => 'i', 'inkind' => 's', 'id_inkind' => 'i', 'id_product' => 'i', 'id_parent' => 'i', 'sum' => 'i', 'img' => 's'));
     parent::setDefaultOrder('id_parent asc');
     parent::setTableSelect('product natural join inkind ');
     //  parent::setFormFields(
     //array('name_product' => array('text', 'Название продукта'  ),
     //    'id_inkind' => array('', ''  ),
     //  'cost' => array('', ''  ),
     //    'sum' => array('', ''  )));
 }
开发者ID:stanhelen87,项目名称:OOOO,代码行数:11,代码来源:table_product.php

示例15: __construct

 public function __construct()
 {
     parent::__construct();
     $this->set_table(S_DB_PREFIX . 'varia');
     $this->set_where("(var_lang = 'none' or var_lang = '" . S_LANG . "')");
 }
开发者ID:jechiy,项目名称:xiu-cms,代码行数:6,代码来源:varia.class.php


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