本文整理汇总了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']);
}
示例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']);
}
示例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']);
}
示例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']);
}
}
示例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']);
}
}
示例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']);
}
}
示例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']);
}
}
示例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();
}
示例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);
}
}
示例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']);
}
}
示例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');
}
}
示例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);
}
}
示例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));
}
示例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']);
}
示例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']);
}
}