當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。