当前位置: 首页>>代码示例>>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;未经允许,请勿转载。