本文整理汇总了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', '' )));
}
示例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');
}
示例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', 'Название вида')));
}
示例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}/'));
}
示例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');
}
示例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}/'));
}
示例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}/'));
}
示例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');
}
示例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;
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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('', '' )));
}
示例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 . "')");
}