<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # 插件數據庫模型 創建插件自定義模型 ```php <?php namespace plugins\Demo\Model;//Demo插件英文名,改成你的插件英文就行了 use Common\Model\CommonModel;//繼承CommonModel class PluginDemoModel extends CommonModel{ //Demo插件英文名,改成你的插件英文就行了,插件數據表最好加個plugin前綴再加表名,這個類就是對應“表前綴+plugin_demo”表 //自動驗證 protected $_validate = array( //array(驗證字段,驗證規則,錯誤提示,驗證條件,附加規則,驗證時間) //array('ad_name', 'require', '廣告名稱不能為空!', 1, 'regex', 3), ); protected function _before_write(&$data) { parent::_before_write($data); } //自定義方法 function test(){ echo "hello"; } } ``` 實例化模型: ```php $plugin_demo_model=D("plugins://Demo/PluginDemo");//實例化自定義模型PluginDemo $plugin_demo_model->test();//調用自定義模型PluginDemo里的test方法 $users_model=D("Users");//實例化Common模塊下的Users模型 //$users_model=D("Common/Users");//也可以這樣實例化Common模塊下的Users模型 $users=$users_model->limit(0,5)->select(); print_r($users); ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看