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


PHP WindidApi::api方法代碼示例

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


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

示例1: editUser

 public function editUser($uid)
 {
     $api = WindidApi::api('user');
     $user = $api->getUser($uid);
     //你係統的   editUser($user);
     return true;
 }
開發者ID:sanzhumu,項目名稱:nextwind,代碼行數:7,代碼來源:notify.php

示例2: __call

 public function __call($method, $args)
 {
     if ($this->method == $method) {
         return $this->value;
     }
     $cls = WindidApi::api($this->api);
     return call_user_func_array(array($cls, $method), $args);
 }
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:8,代碼來源:PwWindidStd.php

示例3: schoolAction

 /**
  * 學校獲取(typeid = 1:小學,2:中學,3:大學)
  */
 public function schoolAction()
 {
     list($type, $areaid, $name, $first) = $this->getInput(array('typeid', 'areaid', 'name', 'first'));
     !$type && ($type = 3);
     Wind::import('WINDID:service.school.vo.WindidSchoolSo');
     $schoolSo = new WindidSchoolSo();
     $schoolSo->setName($name)->setTypeid($type)->setFirstChar($first)->setAreaid($areaid);
     $list = WindidApi::api('school')->searchSchoolData($schoolSo, 1000);
     exit($list ? Pw::jsonEncode($list) : '');
 }
開發者ID:chendong0444,項目名稱:phpwind,代碼行數:13,代碼來源:WebDataController.php

示例4: getConfigCacheValue

 protected function getConfigCacheValue()
 {
     $vkeys = array('site', 'components', 'verify', 'attachment', 'reg');
     $array = WindidApi::api('config')->fetchConfig($vkeys);
     $config = array();
     foreach ($vkeys as $key => $value) {
         $config[$value] = array();
     }
     foreach ($array as $key => $value) {
         $config[$value['namespace']][$value['name']] = $value['vtype'] != 'string' ? unserialize($value['value']) : $value['value'];
     }
     return $config;
 }
開發者ID:ccq18,項目名稱:EduSoho,代碼行數:13,代碼來源:windidclientBoot.php

示例5: deleteThread

 private function deleteThread($topic)
 {
     $tid = $topic['tid'];
     $fid = $topic['fid'];
     $subject = $topic['subject'];
     $created_userid = $topic['created_userid'];
     $dm = new PwTopicRecycleDm();
     $dm->setTid($tid)->setFid($fid)->setOperateTime(time())->setOperateUsername('system')->setReason('長期斷種');
     Wekit::load('recycle.PwTopicRecycle')->add($dm);
     $dm = new PwTopicDm($tid);
     $dm->setDisabled(2)->setTopped(0)->setDigest(0);
     Wekit::load('forum.PwThread')->updateThread($dm);
     $api = WindidApi::api('message');
     $api->send($created_userid, '您的種子 ' . $subject . ' 因長期斷種已被係統自動移入回收站,如有異議請盡快聯係管理員,管理員將根據相關規定決定恢複或徹底刪除。', 1);
 }
開發者ID:Going2333,項目名稱:WindPT,代碼行數:15,代碼來源:PwCronDoClearTorrents.php

示例6: dostroageAction

 /**
  * 附件存儲方式設置列表頁
  */
 public function dostroageAction()
 {
     $att_storage = $this->getInput('att_storage', 'post');
     $avatar_storage = $this->getInput('avatar_storage', 'post');
     /* @var $attService PwAttacmentService */
     $attService = Wekit::load('LIB:storage.PwStorage');
     $_r = $attService->setStoragesComponents($att_storage);
     if ($_r !== true) {
         $this->showError($_r->getError());
     }
     $config = new PwConfigSet('attachment');
     $config->set('storage.type', $att_storage)->flush();
     $result = WindidApi::api('avatar')->setStorages($avatar_storage);
     if ($result == '1') {
         Wekit::C()->setConfig('site', 'avatarUrl', WindidApi::api('avatar')->getAvatarUrl());
     }
     $this->showMessage('ADMIN:success');
 }
開發者ID:YoursBoss,項目名稱:nextwind,代碼行數:21,代碼來源:AttachmentController.php

示例7: _beforeAdd

 protected function _beforeAdd()
 {
     if (!$this->dm) {
         return new PwError('USER:user.info.error');
     }
     if (($result = PwUserValidator::isUsernameHasIllegalChar($this->getField('username'))) !== false) {
         return $result;
     }
     if (($result = PwUserValidator::isPwdValid($this->_password, $this->getField('username'))) !== true) {
         return $result;
     }
     if (($result = $this->dm->beforeAdd()) !== true) {
         $errorCode = $result->getCode();
         $var = array();
         if ($errorCode == -2) {
             $windid = WindidApi::api('config');
             $config = $windid->getConfig('reg');
             $var = array('{min}' => $config['namelength.min'], '{max}' => $config['namelength.max']);
         }
         if ($errorCode == -11) {
             $windid = WindidApi::api('config');
             $config = $windid->getConfig('reg');
             $var = array('{min}' => $config['passwordlength.min'], '{max}' => $config['passwordlength.max']);
         }
         return new PwError('WINDID:code.' . $errorCode, $var);
     }
     if (true !== ($result = $this->check())) {
         return $result;
     }
     return true;
 }
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:31,代碼來源:PwUserInfoDm.php

示例8: changeAction

 /**
  * 馬甲切換
  */
 public function changeAction()
 {
     $uid = $this->getInput('uid', 'get');
     $bp = new App_Majia_MajiaBandingBp($this->loginUser);
     $result = $bp->doChangeAccount($uid);
     if ($result instanceof PwError) {
         $error = $result->getError();
         if ($error == '密碼失效,請重新綁定') {
             $this->addMessage(array('reband' => WindUrlHelper::createUrl('app/majia/my/reBand?uid=' . $uid)), 'data');
             $this->showError('密碼失效,需要重新綁定');
         } else {
             $this->showError($error);
         }
     }
     Wekit::load('SRV:user.srv.PwLoginService')->setLoginCookie(new PwUserBo($uid), $this->getRequest()->getClientIp());
     WindidApi::api('user')->synLogin($uid);
     $this->showMessage('切換成功');
 }
開發者ID:sanzhumu,項目名稱:nextwind,代碼行數:21,代碼來源:MyController.php

示例9: _loadAreaDs

 /**
  * 獲得area的DS
  *
  * @return WindidArea
  */
 private function _loadAreaDs()
 {
     return WindidApi::api('area');
 }
開發者ID:chendong0444,項目名稱:phpwind,代碼行數:9,代碼來源:AreadataController.php

示例10: _getWindid

	private function _getWindid() {
		return WindidApi::api('config');
	}
開發者ID:healthguo,項目名稱:PHP,代碼行數:3,代碼來源:WindidController.php

示例11: _getWindid

 protected function _getWindid()
 {
     return WindidApi::api('config');
 }
開發者ID:YoursBoss,項目名稱:nextwind,代碼行數:4,代碼來源:RegistController.php

示例12: _buildArea

 /**
  * 構建推送的地區庫---獲取地區庫的省/市/區
  *  
  * @param int $areaid
  * @return array
  */
 private function _buildArea($areaid)
 {
     $areaSrv = WindidApi::api('area');
     $_rout = $areaSrv->getAreaRout($areaid);
     $_return = array('id' => '', 'rout' => array(array('', ''), array('', ''), array('', '')));
     if (!$_rout) {
         return $_return;
     }
     foreach ($_rout as $_k => $_r) {
         $_return['rout'][$_k] = array($_r['areaid'], $_r['name']);
     }
     $_return['id'] = $areaid;
     return $_return;
 }
開發者ID:chendong0444,項目名稱:phpwind,代碼行數:20,代碼來源:PwDesignUserDataService.php

示例13: _getAppDs

 private function _getAppDs()
 {
     return WindidApi::api('app');
 }
開發者ID:sanzhumu,項目名稱:nextwind,代碼行數:4,代碼來源:ClientController.php

示例14: defaultAvatarAction

 /**
  * 恢複係統頭像
  */
 public function defaultAvatarAction()
 {
     $uid = (int) $this->getInput('uid', 'get');
     if (!$uid) {
         $this->showError('WINDID:fail');
     }
     $api = WindidApi::api('avatar');
     if ($api->defaultAvatar($uid) > 0) {
         $this->showMessage('success');
     }
     $this->showError('WINDID:fail');
 }
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:15,代碼來源:UserController.php

示例15: _buildArea

 /**
  * 設置地區顯示
  * 
  * @return array
  */
 private function _buildArea($areaid)
 {
     $default = array(array('areaid' => '', 'name' => ''), array('areaid' => '', 'name' => ''), array('areaid' => '', 'name' => ''));
     if (!$areaid) {
         return $default;
     }
     $rout = WindidApi::api('area')->getAreaRout($areaid);
     return WindUtility::mergeArray($default, $rout);
 }
開發者ID:chendong0444,項目名稱:phpwind,代碼行數:14,代碼來源:ManageController.php


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