当前位置: 首页>>代码示例>>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;未经允许,请勿转载。