当前位置: 首页>>代码示例>>PHP>>正文


PHP getFileUrl函数代码示例

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


在下文中一共展示了getFileUrl函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _after_find

 protected function _after_find(&$data, $options)
 {
     $data['county'] = D('District')->getNameById($data['county']);
     $data['focus'] = getFileUrl($data['focus'], '200-200');
     $data['tags'] = array_diff(explode('|', $data['tags']), array(''));
     $data['style'] = $this->getOptions('style', $data['style']);
 }
开发者ID:omusico,项目名称:jianli,代码行数:7,代码来源:CaseModel.class.php

示例2: _after_find

 protected function _after_find(&$resultSet, $options)
 {
     $resultSet['fid_img'] = getFileUrl($resultSet['fid']);
     $resultSet['fid_img_thumb'] = getFileUrl($resultSet['fid'], '80-80');
     $resultSet['nickname'] = D('user')->where(array('id' => $resultSet['uid']))->getField('nickname');
     $resultSet['createtime_format'] = date('Y-m-d', $resultSet['createtime']);
 }
开发者ID:noikiy,项目名称:yisheji,代码行数:7,代码来源:PictureModel.class.php

示例3: _after_find

 protected function _after_find(&$resultSet, $options)
 {
     $resultSet['type_zh'] = $this->_aBaseOptions['userType'][$resultSet['type']];
     $resultSet['reg_ip_zh'] = long2ip($resultSet['reg_ip']);
     $resultSet['header'] = getFileUrl($resultSet['avatar']);
     $resultSet['idcard'] = getFileUrl($resultSet['idcard']);
 }
开发者ID:noikiy,项目名称:yisheji,代码行数:7,代码来源:UserModel.class.php

示例4: _after_select

 protected function _after_select(&$resultSet, $options)
 {
     foreach ($resultSet as &$value) {
         //缩略图
         $value['thumb'] = getFileUrl($value['fid'], '80-80');
         $value['pic'] = getFileUrl($value['fid']);
     }
 }
开发者ID:omusico,项目名称:jianli,代码行数:8,代码来源:Case_picModel.class.php

示例5: _after_select

 protected function _after_select(&$resultSet, $options)
 {
     foreach ($resultSet as &$value) {
         $avatar = D('User')->where(array('id' => $value['owner_uid']))->getField('avatar');
         $value['owner_uid'] = getFileUrl($avatar, '30-30');
         $value['createtime'] = $this->time_tran($value['createtime']);
     }
 }
开发者ID:omusico,项目名称:jianli,代码行数:8,代码来源:ScoreModel.class.php

示例6: _after_select

 protected function _after_select(&$resultSet, $options)
 {
     foreach ($resultSet as &$value) {
         $this->_auto_process_data($value);
         $value['pic'] = getFileUrl($value['pic'], '80-80');
         $value['createtime'] = date('Y-m-d H:i', $value['createtime']);
     }
 }
开发者ID:omusico,项目名称:jianli,代码行数:8,代码来源:Construction_memberModel.class.php

示例7: _after_select

 protected function _after_select(&$resultSet, $options)
 {
     foreach ($resultSet as &$value) {
         $value['fid_o'] = $value['fid'];
         $value['fid'] = getFileUrl($value['fid'], '80-80');
         $value['createtime'] = date('Y-m-d H:i', $value['createtime']);
     }
 }
开发者ID:noikiy,项目名称:yisheji,代码行数:8,代码来源:PictureModel.class.php

示例8: index

 public function index()
 {
     $aCom = (array) $this->oCom;
     $aCom['logo'] = getFileUrl($aCom['logo']);
     $this->assign('com', $aCom);
     $basewhere = $this->getPurviewCondition();
     $this->assign('num', D('Reserve')->getUndealCount($basewhere));
     $this->display();
 }
开发者ID:omusico,项目名称:jianli,代码行数:9,代码来源:IndexAction.class.php

示例9: edit

 public function edit()
 {
     $data = $this->model->getById(getRequest('id'));
     if ($this->isPost()) {
         $this->_edit($data, array(), $returl);
     } else {
         $data['pic'] = getFileUrl($data['pic'], '80-80');
         $this->_display_form($data);
     }
 }
开发者ID:omusico,项目名称:jianli,代码行数:10,代码来源:Construction_memberAction.class.php

示例10: _after_select

 protected function _after_select(&$resultSet, $options)
 {
     foreach ($resultSet as &$value) {
         //$value['fid_o'] = $value['fid'];
         $value['fid'] = getFileUrl($value['fid'], '88-88');
         $value['type'] = $this->getOptions('type', $value['type']);
         $value['step'] = $this->getOptions('step', $value['step']);
         $value['createtime'] = date('Y-m-d H:i', $value['createtime']);
     }
 }
开发者ID:omusico,项目名称:jianli,代码行数:10,代码来源:PictureModel.class.php

示例11: edit

 public function edit()
 {
     $data = $this->model->getById(getRequest('id'));
     $data['pic'] = getFileUrl($data['pic']);
     if ($this->isPost()) {
         $this->_edit($data);
     } else {
         $this->_display_form($data, 'add');
     }
 }
开发者ID:noikiy,项目名称:yisheji,代码行数:10,代码来源:Question_optionAction.class.php

示例12: edit

 public function edit()
 {
     $data = $this->model->getById(getRequest('id'));
     $this->checkPurviewData($data);
     if ($this->isPost()) {
         $this->_edit($data);
     } else {
         $data['focus'] = getFileUrl($data['focus'], '200-200');
         $this->_display_form($data);
     }
 }
开发者ID:omusico,项目名称:jianli,代码行数:11,代码来源:ConstructionAction.class.php

示例13: upload

 public function upload()
 {
     $info = D('File')->upload('imgFile');
     $arr = array('error' => $info['status']);
     if ($info['status'] != 0) {
         $arr['message'] = $info['msg'];
     } else {
         $arr['url'] = getFileUrl($info['data']['fileid']);
     }
     die(json_encode($arr));
 }
开发者ID:noikiy,项目名称:yisheji,代码行数:11,代码来源:RichtextAction.class.php

示例14: _after_find

 protected function _after_find(&$resultSet, $options)
 {
     $data = D('User')->where(array('id' => $resultSet['uid']))->find();
     $resultSet = array_merge($data, $resultSet);
     $resultSet['header'] = getFileUrl($resultSet['avatar']);
     $resultSet['name_zh'] = $resultSet['nickname'] ? $resultSet['nickname'] : $resultSet['realname'];
     $resultSet['content'] = ubbReplace($resultSet['content']);
     $resultSet['createtime'] = date('Y-m-d h:i:s', $resultSet['createtime']);
     $resultSet['reply_arr'] = $this->replyFormat($resultSet['reply']);
     $resultSet['reply_c'] = sizeof($resultSet['reply_arr']);
 }
开发者ID:noikiy,项目名称:yisheji,代码行数:11,代码来源:CommentModel.class.php

示例15: _after_select

 protected function _after_select(&$resultSet, $options)
 {
     foreach ($resultSet as &$value) {
         $this->_auto_process_data($value);
         $data = D('User')->getById($value['uid']);
         $value['account'] = $data['account'];
         $value['realname'] = $data['realname'];
         $value['nickname'] = $data['nickname'];
         $value['avatar'] = getFileUrl($data['avatar']);
         $value['createtime'] = date('Y-m-d H:i', $value['createtime']);
     }
 }
开发者ID:noikiy,项目名称:yisheji,代码行数:12,代码来源:User_designerModel.class.php


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