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


PHP core::Singleton方法代码示例

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


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

示例1: getRealName

 private function getRealName($user_id)
 {
     $user = core::Singleton('user.borrow_info');
     $result = $user->getRealName($user_id);
     unset($user);
     return $result;
 }
开发者ID:GStepOne,项目名称:CI,代码行数:7,代码来源:class.authentication_get.php

示例2: _homeAct

 /**
  *  精选标
  */
 public function _homeAct()
 {
     core::Singleton('comm.remote.remote');
     $data['sname'] = 'topborrow.get';
     $data = transferAPI($data);
     if ($data['code'] == 0) {
         if ($data['ratio']) {
             core::Singleton('comm.remote.remote');
             $data['sname'] = 'topborrow.get';
             $data = transferAPI($data);
         }
         $this->view->assign('bondname', $data["data"]["bname"]);
         $this->view->assign('rate', sprintf('%.1f', $data["data"]["interest_rate"]));
         $this->view->assign('deadline', $data['data']["borrow_duration"]);
         $this->view->assign('ratio', $data['data']["ratio"]);
         $this->view->assign('min', str2val_money($data['data']["borrow_min"]));
         $monery = $data['data']["borrow_money"] / 10000;
         $this->view->assign('money', '<i>' . $monery . '</i>');
         $this->view->assign('bid', $data['data']['id']);
     }
     $data['sname'] = 'banner.get';
     $data['latest_time'] = time();
     $data = transferAPI($data);
     $a = $img = '';
     if ($data['code'] == 0) {
         foreach ($data['data'] as $k => $d) {
             $img = $img . ',' . '"' . $d['pic_url'] . '"';
             $a = $a . ',' . '"' . $d['link'] . '"';
         }
         $this->view->assign('img', trim($img, ','));
         $this->view->assign('a', trim($a, ','));
         $this->view->assign('BENNERTIME', BENNERTIME);
     }
 }
开发者ID:GStepOne,项目名称:CI,代码行数:37,代码来源:class.act.index.php

示例3: modifyUserPass

 private function modifyUserPass($userId, $passwd)
 {
     $user = core::Singleton('user.dts_user');
     $isOrNot = $user->modifyUserPassword($userId, $passwd);
     unset($user);
     return $isOrNot;
 }
开发者ID:GStepOne,项目名称:CI,代码行数:7,代码来源:class.password_modify.php

示例4: getSingleList

 private function getSingleList($bid)
 {
     $user = core::Singleton('user.borrow_info');
     $borrowSingle = $user->getSingleBorrow($bid);
     unset($user);
     return $borrowSingle;
 }
开发者ID:GStepOne,项目名称:CI,代码行数:7,代码来源:class.borrow_summary.php

示例5: isRegisted

 private function isRegisted($mobile)
 {
     $user = core::Singleton('user.dts_user');
     $isOrNot = $user->is_exist_cell_phone_number($mobile);
     unset($user);
     return $isOrNot;
 }
开发者ID:GStepOne,项目名称:CI,代码行数:7,代码来源:class.user_isreg.php

示例6: getTotal

 private function getTotal()
 {
     $user = core::Singleton('user.dts_user');
     $total = $user->getBorrowTotal();
     unset($user);
     return $total;
 }
开发者ID:GStepOne,项目名称:CI,代码行数:7,代码来源:class.borrow_list.php

示例7: getTodayInvest

 public function getTodayInvest($userId)
 {
     $lj = core::Singleton('user.borrow_info');
     $result = $lj->getTodayInvest($userId);
     unset($lj);
     return $result;
 }
开发者ID:GStepOne,项目名称:CI,代码行数:7,代码来源:class.todayinvest_get.php

示例8: getReceivePlan

 private function getReceivePlan($userId, $year, $search_month)
 {
     $user = core::Singleton('user.receive');
     $result = $user->getMyInvest($userId, $year, $search_month);
     unset($user);
     return $result;
 }
开发者ID:GStepOne,项目名称:CI,代码行数:7,代码来源:class.receive_plan.php

示例9: getPact

 private function getPact($bid)
 {
     $user = core::Singleton('user.borrow_info');
     $bpact = $user->getPact($bid);
     unset($user);
     return $bpact;
 }
开发者ID:GStepOne,项目名称:CI,代码行数:7,代码来源:class.borrow_pact.php

示例10: getAreaInfo

 private function getAreaInfo($idno)
 {
     $user = core::Singleton('user.area');
     $result = $user->getArea($idno);
     unset($user);
     return $result;
 }
开发者ID:GStepOne,项目名称:CI,代码行数:7,代码来源:class.areainfo_get.php

示例11: _accesstokenAct

 function _accesstokenAct()
 {
     //$weixin = core::Singleton("comm.application.weixin");
     $test = core::Singleton('comm.remote.wxcurl');
     $test->curl_send(WX_URL_access_token);
     exit;
 }
开发者ID:GStepOne,项目名称:CI,代码行数:7,代码来源:class.act.weixin.php

示例12: getDescription

 private function getDescription($bid)
 {
     $user = core::Singleton('user.borrow_info');
     $result = $user->getBorrowDescription($bid);
     unset($user);
     return $result;
 }
开发者ID:GStepOne,项目名称:CI,代码行数:7,代码来源:class.borrow_detail.php

示例13: initialize

 public function initialize()
 {
     $this->config = core::Singleton('comm.application.config.config');
     $this->urlParams = $_GET[$this->paramsName];
     $this->prepareParms();
     $this->parse();
 }
开发者ID:GStepOne,项目名称:CI,代码行数:7,代码来源:intface.urlparse.php

示例14: dahanSMS

 /**
  * 发送短信
  * @return int 操作结果状态码
  */
 function dahanSMS($mobiles, $msg)
 {
     //		$error_mobiles[] = '13567012211';
     //		$error_mobiles[] = '15921743399';
     //		$error_mobiles[] = '15921741132';
     //		$error_mobiles[] = '18919344113';
     //		$error_mobiles[] = '18116341417';
     //		$error_mobiles[] = '13482492354';
     //		$error_mobiles[] = '13162894954';
     //		$error_mobiles[] = '13818164224';
     //		$error_mobiles[] = '13524552711';
     //		$error_mobiles[] = '13916866929';
     //		$error_mobiles[] = '18930056835';
     $user = core::Singleton('user.member');
     $error_mobiles = $user->getBlackList($bid);
     unset($user);
     if (in_array($mobiles, $error_mobiles)) {
         $response = " 手机号{$mobiles在不通知人名单内}";
         return $response;
     }
     //发送短信
     $message = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><message>" . "<account>" . $this->userName . "</account><password>" . $this->userPass . "</password>" . "<msgid></msgid><phones>" . $mobiles . "</phones><content>" . $msg . "</content><subcode>" . "" . "</subcode><sendtime></sendtime></message>";
     try {
         $response = $this->soap->submit($message);
         //
     } catch (SoapFault $soapFault) {
         file_put_contents('/tmp/sms', date('m-d H:i:s') . " " . print_r($message, true) . "\n", FILE_APPEND);
         file_put_contents('/tmp/sms', date('m-d H:i:s') . " " . print_r(htmlentities($this->soap->__getLastRequest()), true) . "\n", FILE_APPEND);
     }
     //$response = $this->soap->submit($message);//
     return $response;
 }
开发者ID:GStepOne,项目名称:CI,代码行数:36,代码来源:class.dahansms.php

示例15: getTending

 private function getTending($userId)
 {
     $user = core::Singleton('user.borrow_info');
     $investList = $user->getTending($userId);
     unset($user);
     return $investList;
 }
开发者ID:GStepOne,项目名称:CI,代码行数:7,代码来源:class.tending_get.php


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