/** * 构造方法:初始化分表数字 * @param integer $tableNum 分表数字,如果 >= 0 表示分表操作 */ public function __construct($tableNum = -1) { parent::__construct(); $this->_tableNum = (int) $tableNum; }
/** * 构造方法:初始化数据库操作类 */ public function __construct() { parent::__construct(); $this->_userGroups = new Usergroups(); }