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


PHP DBFactory::__construct方法代码示例

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


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

示例1: __construct

 public function __construct($conn = null)
 {
     parent::__construct(USERS, USERS_USERID, $conn, array(
         USERS_USERID        => array(
             DataRules::TYPE         => DataRules::TYPE_NUM,
             DataRules::MINVALUE     => 1,
             DataRules::REQUIRED     => false
         ),
         USERS_USERNAME      => array(
             DataRules::TYPE         => DataRules::TYPE_STRING,
             DataRules::MAXLENGTH    => 40,
             DataRules::MINLENGTH    => 5,
             DataRules::REQUIRED     => true,
         ),
         USERS_PASSWORD      => array(
             DataRules::TYPE         => DataRules::TYPE_STRING,
             DataRules::MAXLENGTH    => 40,
             DataRules::MINLENGTH    => 40,
             DataRules::REQUIRED     => true,
         ),
         USERS_SALT          => array(
             DataRules::TYPE         => DataRules::TYPE_STRING,
             DataRules::MAXLENGTH    => 3,
             DataRules::MINLENGTH    => 3,
             DataRules::REQUIRED     => true,
         ),
         USERS_EMAIL         => array(
             DataRules::TYPE         => DataRules::TYPE_STRING,
             DataRules::MAXLENGTH    => 60,
             DataRules::MINLENGTH    => 5,
             DataRules::DEFAULT_     => "",
         ),
         USERS_SECRETQUESTION=> array(
             DataRules::TYPE         => DataRules::TYPE_STRING,
             DataRules::MAXLENGTH    => 255,
             DataRules::MINLENGTH    => 5,
             DataRules::DEFAULT_     => "",
         ),
         USERS_SECRETANSWER  => array(
             DataRules::TYPE         => DataRules::TYPE_STRING,
             DataRules::MAXLENGTH    => 255,
             DataRules::MINLENGTH    => 0,
             DataRules::DEFAULT_     => "",
         ),
         USERS_MASTERNOTES   => array(
             DataRules::TYPE         => DataRules::TYPE_STRING,
             DataRules::MAXLENGTH    => 255,
             DataRules::MINLENGTH    => 5,
             DataRules::DEFAULT_     => "",
         ),
         USERS_SCHEMEUSING   => array(
             DataRules::TYPE         => DataRules::TYPE_STRING,
             DataRules::MAXLENGTH    => 40,
             DataRules::MINLENGTH    => 5,
             DataRules::DEFAULT_     => "default",
         ),
         USERS_CANDOWNLOAD   => array(
             DataRules::TYPE     => DataRules::TYPE_INTBOOL,
             DataRules::DEFAULT_ => 0,
         ),
         USERS_CANUPLOAD     => array(
             DataRules::TYPE     => DataRules::TYPE_INTBOOL,
             DataRules::DEFAULT_ => 0,
         ),
         USERS_CANMESSAGE    => array(
             DataRules::TYPE     => DataRules::TYPE_INTBOOL,
             DataRules::DEFAULT_ => 0,
         ),
         USERS_CANCDSELF     => array(
             DataRules::TYPE     => DataRules::TYPE_INTBOOL,
             DataRules::DEFAULT_ => 0,
         ),
         USERS_CANCDOTHER    => array(
             DataRules::TYPE     => DataRules::TYPE_INTBOOL,
             DataRules::DEFAULT_ => 0,
         ),
         USERS_CANSCHEME     => array(
             DataRules::TYPE     => DataRules::TYPE_INTBOOL,
             DataRules::DEFAULT_ => 0,
         ),
         USERS_ISFAMILY      => array(
             DataRules::TYPE     => DataRules::TYPE_INTBOOL,
             DataRules::DEFAULT_ => 0,
         ),
         USERS_ISLOGGED      => array(
             DataRules::TYPE     => DataRules::TYPE_INTBOOL,
             DataRules::DEFAULT_ => 0,
         ),
         USERS_ISMASTER      => array(
             DataRules::TYPE     => DataRules::TYPE_INTBOOL,
             DataRules::DEFAULT_ => 0,
         ),
         USERS_ISACTIVE      => array(
             DataRules::TYPE     => DataRules::TYPE_INTBOOL,
             DataRules::DEFAULT_ => 0,
         ),
         USERS_ISPERMISSIONED=> array(
             DataRules::TYPE     => DataRules::TYPE_INTBOOL,
             DataRules::DEFAULT_ => 0,
         ),
//.........这里部分代码省略.........
开发者ID:rexfleischer,项目名称:web_dev,代码行数:101,代码来源:UsersFactory.php

示例2: __construct

 public function __construct($conn = null)
 {
     parent::__construct(SCHEME, SCHEME_SCHEMEID, $conn);
 }
开发者ID:rexfleischer,项目名称:web_dev,代码行数:4,代码来源:SchemeFactory.php

示例3: __construct

 public function __construct($conn = null)
 {
     parent::__construct(USERMANUAL, USERMANUAL_PAGEID, $conn);
 }
开发者ID:rexfleischer,项目名称:web_dev,代码行数:4,代码来源:UserManualFactory.php


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