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


PHP WindidApi類代碼示例

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


在下文中一共展示了WindidApi類的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: getDm

 public function getDm()
 {
     if (!is_object($this->dm)) {
         $dm = WindidApi::getDm('credit');
         $this->dm = new $dm($this->uid);
     }
     return $this->dm;
 }
開發者ID:chendong0444,項目名稱:phpwind,代碼行數:8,代碼來源:PwCreditDm.php

示例3: deleteConfig

 /**
  * 刪除配置項
  * Enter description here ...
  * @param string $spacename
  * @param array|string $keys
  */
 public function deleteConfig($spacename, $keys = '')
 {
     if (!is_array($keys)) {
         $keys = array($keys);
     }
     $params = array('spacename' => $spacename, 'keys' => implode('_', $keys));
     return WindidApi::open('config/delete', array(), $params);
 }
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:14,代碼來源:WindidConfigApi.php

示例4: __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

示例5: getAll

 public function getAll()
 {
     $params = array();
     return WindidApi::open('area/getAll', $params);
     if (!is_array($result)) {
         return array();
     }
     return $result;
 }
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:9,代碼來源:WindidAreaApi.php

示例6: 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

示例7: defaultAvatar

 /**
  * 還原頭像
  *
  * @param int $uid
  * @param string $type 還原類型-一種默認頭像face*,一種是禁止頭像ban*
  * @return boolean
  */
 public function defaultAvatar($uid, $type = 'face')
 {
     $client = Windid::client();
     if ($client->windid == 'local') {
         $srv = Windid::load('user.srv.WindidUserService');
         $result = $srv->defaultAvatar($uid, $type);
         return (int) $result;
     }
     $params = array('uid' => $uid, 'type' => $type);
     return WindidApi::open('avatar/default', array(), $params);
 }
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:18,代碼來源:WindidAvatarApi.php

示例8: 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

示例9: 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

示例10: searchSchool

 public function searchSchool($search, $limit = 10, $start = 0)
 {
     if (!is_array($search)) {
         return array();
     }
     $params = array('limit' => $limit, 'start' => $start);
     $array = array('name', 'typeid', 'areaid', 'firstchar');
     foreach ($search as $k => $v) {
         if (!in_array($k, $array)) {
             continue;
         }
         $params[$k] = $v;
     }
     return WindidApi::open('school/search', $params);
 }
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:15,代碼來源:WindidSchoolApi.php

示例11: 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

示例12: C

 /**
  * 客戶端獲取服務端配置,服務端禁用
  * Enter description here ...
  * @param unknown_type $name
  */
 public static function C($name)
 {
     $windidApi = WindidApi::api('config');
     return $windidApi->getConfig($name);
 }
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:10,代碼來源:Windid.php

示例13: windid

	public static function windid($api) {
		if (defined('WINDID_IS_NOTIFY')) {
			$cls[$api] = PwWindidStd::getInstance($api);
		} else {
			$cls[$api] = WindidApi::api($api);
		}
		return $cls[$api];
	}
開發者ID:healthguo,項目名稱:PHP,代碼行數:8,代碼來源:Pw.php

示例14: _getWindid

 private function _getWindid()
 {
     return WindidApi::api('avatar');
 }
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:4,代碼來源:AvatarController.php

示例15: deleteMessages

 public function deleteMessages($uid, $messageIds)
 {
     $params = array('uid' => $uid, 'messageIds' => $messageIds);
     return WindidApi::open('message/deleteMessages', array(), $params);
 }
開發者ID:fanqimeng,項目名稱:4tweb,代碼行數:5,代碼來源:WindidMessageApi.php


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