• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP WindidApi类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中WindidApi的典型用法代码示例。如果您正苦于以下问题:PHP WindidApi类的具体用法?PHP WindidApi怎么用?PHP WindidApi使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了WindidApi类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: _writeWindid

 /**
  * windid更新
  * 
  * @return boolean
  */
 private function _writeWindid()
 {
     $baseUrl = Wekit::url()->base;
     $key = md5(WindUtility::generateRandStr(10));
     $charset = Wekit::V('charset');
     $charset = str_replace('-', '', strtolower($charset));
     if (!in_array($charset, array('gbk', 'utf8', 'big5'))) {
         $charset = 'utf8';
     }
     $config = new PwConfigSet('windid');
     $config->set('windid', 'local')->set('serverUrl', $baseUrl . '/windid')->set('clientId', 1)->set('clientKey', $key)->set('connect', 'db')->flush();
     Wekit::C()->reload('windid');
     Wind::import('WINDID:service.app.dm.WindidAppDm');
     $dm = new WindidAppDm();
     $dm->setApiFile('windid.php')->setIsNotify('1')->setIsSyn('1')->setAppName('phpwind9.0')->setSecretkey($key)->setAppUrl($baseUrl)->setCharset($charset)->setAppIp('');
     $service = WindidApi::api('app');
     $result = $service->addApp($dm);
     if ($result instanceof WindidError) {
         $this->showError('INSTALL:windid.init.fail');
     }
     return true;
 }
开发者ID:chendong0444,项目名称:phpwind,代码行数:27,代码来源:UpgradeController.php


示例17: _getWindidUserBlack

 /**
  * @return WindidUserBlack
  */
 protected function _getWindidUserBlack()
 {
     return WindidApi::api('user');
 }
开发者ID:chendong0444,项目名称:phpwind,代码行数:7,代码来源:PwUserBlack.php


示例18: _getWindid

 protected function _getWindid()
 {
     return WindidApi::api('config');
 }
开发者ID:YoursBoss,项目名称:nextwind,代码行数:4,代码来源:RegistController.php


示例19: addDmUser

 /**
  * 添加用户对象接口,使用前必须使用WidnidApi::getDm('user') 设置数据
  *
  * @param WindidUserDm $dm
  */
 public function addDmUser($dm)
 {
     $result = $this->_getUserDs()->addUser($dm);
     if ($result instanceof WindidError) {
         return $result->getCode();
     }
     $uid = (int) $result;
     WindidApi::api('avatar')->defaultAvatar($uid);
     $this->_getNotifyService()->send('addUser', array('uid' => $uid), WINDID_CLIENT_ID);
     return $uid;
 }
开发者ID:latticet,项目名称:EduSoho_jb51,代码行数:16,代码来源:WindidUserApi.php


示例20: _getWindid

	private function _getWindid() {
		return WindidApi::api('config');
	}
开发者ID:healthguo,项目名称:PHP,代码行数:3,代码来源:WindidController.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Wire类代码示例发布时间:2022-05-23
下一篇:
PHP WindUtility类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap