当前位置: 首页>>代码示例>>PHP>>正文


PHP Dal::get方法代码示例

本文整理汇总了PHP中Dal::get方法的典型用法代码示例。如果您正苦于以下问题:PHP Dal::get方法的具体用法?PHP Dal::get怎么用?PHP Dal::get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Dal的用法示例。


在下文中一共展示了Dal::get方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: alllist

 public function alllist($request, $response)
 {
     $fragments = Dal::get()->find_all('Fragment');
     $response->fragments = $fragments;
 }
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:5,代码来源:fragmentcontroller.php

示例2: listOfTag

 public function listOfTag($request, $response)
 {
     $relateobjtype = $request->relateobjtype;
     $relateobjid = $request->relateobjid;
     $cond = " relateobjid=:relateobjid\n\t\t\t\t and relateobjtype=:relateobjtype\n\t\t\t\t and objtype='Paper'\n\t\t\t\t order by istop desc, sequence,power desc,objid desc\n    \t\t\t";
     $bind = array();
     $bind[':relateobjid'] = $relateobjid;
     $bind[':relateobjtype'] = $relateobjtype;
     $cmsobjrefs = Dal::get()->getDao('cmsobjref')->find_all_by_condition($cond, $bind);
     $response->cmsobjrefs = $cmsobjrefs;
     $response->relateobjtype = $relateobjtype;
     $response->relateobjid = $relateobjid;
 }
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:13,代码来源:papercontroller.php

示例3: doFindPwd

 public function doFindPwd($request, $response)
 {/*{{{*/
     if ($request->password1 != $request->password2)
     {
         $results = array('res' => 'failure', 'msg' => mb_convert_encoding('输入的密码不一致,请重新输入', 'UTF-8', 'GBK'), 'next' => '');
         echo json_encode($results);
         return self::DIRECT_OUTPUT;
     }
     if (Captcha::verify($request->key, XIpLocation::getIp(), 'password', $request->mobile, $request->token))
     {
         $user = Dal::get()->find('user', $request->userId);
         UserClient::getInstance()->updatePassword($user->id, $request->password1);
         $results = array('res' => 'success', 'msg' => '', 'next' => $response->router->urlfor('user/login', array('userId' => $request->userId, 'forward' => $request->forward)));
     }
     else
     {
         $results = array('res' => 'failure', 'msg' => mb_convert_encoding('验证码过期,请重新获取', 'UTF-8', 'GBK'), 'next' => '');
     }
     echo json_encode($results);
     return self::DIRECT_OUTPUT;
 }/*}}}*/
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:21,代码来源:usercontroller.php

示例4: letterCountDetail

 public function letterCountDetail($request, $response)
 {
     /*{{{*/
     $date = $request->getRequest('date', '');
     $tel = $request->getRequest('tel', '');
     $userName = $request->getRequest('userName', '');
     $nowPage = $request->getRequest('p', 1);
     $pageSize = 50;
     $tel = XString::decodeMobileNo($tel);
     $userids = array();
     if (empty($tel) == false && empty($userName) == false) {
         $userids = Dal::get()->find_id_by_name_and_mobile('user', $userName, $tel);
         if (empty($userids) == true) {
             return;
         }
     } else {
         if (empty($tel) == false && empty($userName) == true) {
             $userids = Dal::get()->find_id_by_mobile('user', $tel);
             if (empty($userids) == true) {
                 return;
             }
         } else {
             if (empty($tel) == true && empty($userName) == false) {
                 $userids = Dal::get()->find_id_by_name('user', $userName);
                 if (empty($userids) == true) {
                     return;
                 }
             }
         }
     }
     $res = StationLetterClient::getInstance()->getStationLetterList($date, $userids, $nowPage, $pageSize);
     $messageids = array();
     foreach ($res['ids'] as $value) {
         $messageids[] = $value['messageid'];
     }
     $userids = array();
     foreach ($res['ids'] as $value) {
         $userids[] = $value['userid'];
     }
     $out['list'] = array();
     if (empty($messageids) == false) {
         $out['list'] = DAL::get()->find('message', $messageids);
     }
     $out['userlist'] = array();
     if (empty($messageids) == false) {
         $out['userlist'] = Dal::get()->find('user', $userids);
     }
     $response->ids = $res['ids'];
     $response->messageList = $out['list'];
     $response->userList = $out['userlist'];
     $response->pagelink = PageNav::getNavLink(PageNav::getPageNavTemplate("/message/lettercountdetail?date={$date}&tel={$tel}&userName={$userName}&p="), $res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'], $res['pageInfo']['total']);
 }
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:52,代码来源:messagecontroller.php

示例5: listOfTag4Diseasepage

 public function listOfTag4Diseasepage($request, $response)
 {
     /*{{{*/
     $relateobjtype = $request->relateobjtype;
     $relateobjid = $request->relateobjid;
     $cond = " relateobjid=:relateobjid\n\t\t\t\t and relateobjtype=:relateobjtype\n\t\t\t\t and objtype in ('Article', 'Thesis', 'Paper') and isTop = :top and power in (2,3) \n\t\t\t\t order by istop desc, sequence,power desc,objid desc\n    \t\t\t";
     $bind = array();
     $bind[':relateobjid'] = $relateobjid;
     $bind[':relateobjtype'] = $relateobjtype;
     $bind[':top'] = CmsObjRef::IS_TOP_YES;
     $cmsobjrefs = Dal::get()->getDao('cmsobjref')->find_all_by_condition($cond, $bind);
     $response->cmsobjrefs = $cmsobjrefs;
     $response->relateobjtype = $relateobjtype;
     $response->relateobjid = $relateobjid;
 }
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:15,代码来源:cmsobjrefcontroller.php


注:本文中的Dal::get方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。