當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Connect::select方法代碼示例

本文整理匯總了PHP中Connect::select方法的典型用法代碼示例。如果您正苦於以下問題:PHP Connect::select方法的具體用法?PHP Connect::select怎麽用?PHP Connect::select使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Connect的用法示例。


在下文中一共展示了Connect::select方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getMessageTopParent

 public function getMessageTopParent($id)
 {
     $rid = $id;
     if ($rid > 0) {
         while ($rid > 0) {
             $parent = $rid;
             $res = $this->connect->select("rid", $this->tableName, "id = :id", [':id' => $rid]);
             $rid = $res[0]['rid'];
         }
     }
     return $parent;
 }
開發者ID:bogolubov,項目名稱:owncollab_talks-1,代碼行數:12,代碼來源:messages.php

示例2: setAllText

 private function setAllText()
 {
     $result = Connect::select("text", "");
     foreach ($result as $val) {
         App::$text[$val['key_t']] = $val['content'];
     }
 }
開發者ID:raPhat,項目名稱:webWat,代碼行數:7,代碼來源:App.class.php

示例3: getUserStatus

 public function getUserStatus($mid)
 {
     if ($mid) {
         $users = array();
         $userlist = $this->connect->select('uid, status', $this->tableName, 'mid = ' . $mid);
         foreach ($userlist as $u => $user) {
             $users[$user['uid']] = $user['status'];
         }
         return $users;
     } else {
         return false;
     }
 }
開發者ID:bogolubov,項目名稱:owncollab_talks-1,代碼行數:13,代碼來源:usermessages.php

示例4: login

 function login()
 {
     require_once ROOT_REQUEST . "loginRequest.php";
     $req = new loginRequest();
     if ($req->_error()) {
         $user = Connect::select("user", " WHERE email='" . $req->_req('email') . "' and password='" . md5($req->_req('password')) . "' ");
         if (count($user) > 0) {
             $_SESSION['email'] = $req->_req('email');
             $_SESSION['password'] = md5($req->_req('password'));
             echo json_encode(['status' => true]);
             exit(0);
         }
     }
     echo json_encode(['status' => false]);
 }
開發者ID:raPhat,項目名稱:webWat,代碼行數:15,代碼來源:adminController.php

示例5: getChildren

 /**
  * @param $id
  * @return mixed
  */
 public function getChildren($id)
 {
     $message = $this->connect->select("*", $this->tableName, "status < 2 AND rid = :rid ", [':rid' => $id]);
     return $message;
 }
開發者ID:Werdffelynir,項目名稱:owncollab_talks,代碼行數:9,代碼來源:messages.php

示例6: getById

 public function getById($id)
 {
     $project = $this->connect->select("*", $this->tableName, "id = :id", [':id' => 1]);
     return $project;
 }
開發者ID:bogolubov,項目名稱:ownCollab_Talks,代碼行數:5,代碼來源:resource.php

示例7: getMimeType

 public function getMimeType($id)
 {
     $mimetype = $this->connect->select("mimetype", "oc_mimetypes", "id = :id", [':id' => $id]);
     return $mimetype;
 }
開發者ID:bogolubov,項目名稱:owncollab_talks-1,代碼行數:5,代碼來源:files.php

示例8: getById

 public function getById($id)
 {
     $user = $this->connect->select("*", $this->tableName, "uid = :id", [':id' => $id]);
     return $user;
 }
開發者ID:bogolubov,項目名稱:owncollab_talks-1,代碼行數:5,代碼來源:users.php

示例9: get

 /**
  * Retrieve all date of links project-tasks
  * @return array|null
  */
 public function get()
 {
     return $this->connect->select('*', $this->tableName);
 }
開發者ID:Werdffelynir,項目名稱:owncollab_chart,代碼行數:8,代碼來源:link.php

示例10: get

 /**
  * Retrieve all date of links project-tasks
  *
  * @return array|null
  */
 public function get()
 {
     return $this->connect->select('*', $this->tableName, 'deleted != 1');
 }
開發者ID:raceface2nd,項目名稱:owncollab,代碼行數:9,代碼來源:link.php


注:本文中的Connect::select方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。