<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>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                **基礎控制器【grace】源碼及說明** 所有的自定義控制器必須繼承 grace 基礎控制器,基礎控制器內置了一些常用的方法以便您的開發!您也可以擴展 grace 來實現更為便捷的開發 ^\_^ ~~~ <?php class?grace{ public?$gets;?//url??參數集合 public?$tableName??=?null;?//綁定數據表名稱 public?$tableKey???=?null;?//對應數據表的主鍵 public?$db;?//數據表操作對象 public?$order??????=?null;?//查詢排序 public?$postFilter?=?true;?//是否過濾?post?內的攻擊性字符 public?$pageInfo???=?array('',?'',?'');?//網站開發是頁面的標題、關鍵字、描述 public?function?__construct(){} //初始化函數 public?function?__init(){} //視圖展示函數,系統會自動展示視圖,您也可以使用此方法手動調用視圖 public?function?display($tplName?=?null){} //語言包設置函數 protected?function?setLang($langType){} //json?結果輸出函數,會終止運行,參數?1?:?數據內容,參數?2?:?狀態【默認?ok】 protected?function?json($data,?$type?=?'ok'){ pgExit(json_encode(array('status'?=>?$type,?'data'?=>?$data))); } //根據數據表配置獲取數據列表【帶有分頁】 protected?function?dataList($everyPagerNum?=?20,?$fields?=?'*'){ } //根據數據表配置獲取數據【利用主鍵獲取】 protected?function?getDataById(){ if(empty($this->gets[0])){return?null;} return?$this->db->where($this->tableKey?.'?=??',?array(intval($this->gets[0])))->fetch(); } //表單的默認值填充【依賴?jquery】 protected?function?getDefaultVal($exception?=?array()){ if(empty($this->gets[0])){return?null;} //...... return?$data; } //跳轉到分組首頁并終止程序運行 public?function?skipToIndex(){ header('location:'.PG_SROOT); exit; } //檢查?$this->gets[xx]?是否存在或為空,為空則為其賦指定的值 protected?function?initVal($key,?$val?=?''){ if(empty($this->gets[$key])){$this->gets[$key]?=?$val;} } //檢查?$this->gets[xx]?是否存在或為空,為空則為其賦指定的值,不為空則進行整數規范 protected?function?intVal($key,?$val?=?0){ if(empty($this->gets[$key])){ $this->gets[$key]?=?0; }else{ $this->gets[$key]?=?intval($this->gets[$key]); } } } ~~~
                  <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>

                              哎呀哎呀视频在线观看