本文整理汇总了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,
),
//.........这里部分代码省略.........
示例2: __construct
public function __construct($conn = null)
{
parent::__construct(SCHEME, SCHEME_SCHEMEID, $conn);
}
示例3: __construct
public function __construct($conn = null)
{
parent::__construct(USERMANUAL, USERMANUAL_PAGEID, $conn);
}