本文整理汇总了PHP中getFileUrl函数的典型用法代码示例。如果您正苦于以下问题:PHP getFileUrl函数的具体用法?PHP getFileUrl怎么用?PHP getFileUrl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getFileUrl函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: _after_find
protected function _after_find(&$resultSet, $options)
{
$user = D('User');
$res = $user->where(array('id' => $resultSet['sender']))->find();
$resultSet['content'] = ubbReplace($resultSet['content']);
$resultSet['name_zh'] = $res['nickname'] ? $res['nickname'] : $res['account'];
$resultSet['header'] = getFileUrl($res['avatar']);
$resultSet['time_zh'] = date('Y-m-d h:i:s', $resultSet['createtime']);
if ($this->oUser['id'] > 0) {
$resultSet['is_sender'] = $resultSet['sender'] == $this->oUser['id'] ? 1 : 0;
}
}
开发者ID:noikiy,项目名称:yisheji,代码行数:12,代码来源:LetterModel.class.php
示例17: _after_select
protected function _after_select(&$resultSet, $options)
{
foreach ($resultSet as &$value) {
$value['ofid'] = getFileUrl($value['fid']);
$length = strlen($value['ofid']);
$start = substr($value['ofid'], 0, $length - 4);
$end = substr($value['ofid'], $length - 4, $length - 1);
$value['tfid'] = $start . '_88-88' . $end;
$value['pfid'] = $start . '_200-200' . $end;
$value['bfid'] = $start . '_540-340' . $end;
$value['createtime'] = date('Y-m-d H:i', $value['createtime']);
}
}
开发者ID:omusico,项目名称:jianli,代码行数:13,代码来源:PictureModel.class.php
示例18: 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'], '120-120');
$data['observe_date'] = date('Y年m月d日', $data['observe_date']);
$data['observe_end'] = date('Y年m月d日', $data['observe_end']);
$this->_display_form($data, 'add');
}
}
开发者ID:omusico,项目名称:jianli,代码行数:13,代码来源:ActiveAction.class.php
示例19: _after_find
protected function _after_find(&$resultSet, $options)
{
$data = D('User')->getById($resultSet['uid'], 'uid');
$resultSet = array_merge($data, $resultSet);
$resultSet['sex_zh'] = $this->_aBaseOptions['sex'][$resultSet['sex']];
$resultSet['style_zh'] = $this->_aBaseOptions['style'][$resultSet['style']];
$resultSet['name_zh'] = $resultSet['nickname'] ? $resultSet['nickname'] : $resultSet['realname'];
$resultSet['decoration_type_zh'] = $this->_aBaseOptions['decorationType'][$resultSet['decoration_type']];
$resultSet['housetype_zh'] = $this->_aBaseOptions['houseType'][$resultSet['housetype']];
$resultSet['designation_zh'] = $this->_aBaseOptions['designation'][$resultSet['designation']];
$resultSet['service_area'] = $this->_aBaseOptions['serviceArea'][$resultSet['service_area']];
$resultSet['ischeck_zh'] = $this->_aBaseOptions['ischeck'][$resultSet['ischeck']];
$resultSet['header'] = getFileUrl($resultSet['avatar']);
}
开发者ID:noikiy,项目名称:yisheji,代码行数:14,代码来源:User_ownerModel.class.php
示例20: _after_find
protected function _after_find(&$resultSet, $options)
{
if (!empty($this->oCollect['active'])) {
foreach ($this->oCollect['active'] as $i) {
if ($i['target'] == $resultSet['id'] && $i['type'] == 3) {
$resultSet['is_collect'] = 1;
}
}
}
$resultSet['focus_img'] = getFileUrl($resultSet['focus']);
$resultSet['picture'] = D('Picture')->where(array('type' => 1, 'target' => $resultSet['id']))->select();
$resultSet['join_count'] = D('Active_partner')->where(array('type' => 1, 'aid' => $resultSet['id']))->count();
$resultSet['info_j'] = infoFormat($resultSet['info'], 300);
}
开发者ID:noikiy,项目名称:yisheji,代码行数:14,代码来源:ActiveModel.class.php
注:本文中的getFileUrl函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论