本文整理汇总了PHP中XUtils::convertHttp方法的典型用法代码示例。如果您正苦于以下问题:PHP XUtils::convertHttp方法的具体用法?PHP XUtils::convertHttp怎么用?PHP XUtils::convertHttp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XUtils
的用法示例。
在下文中一共展示了XUtils::convertHttp方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: beforeSave
/**
* 自动化初始值/处理数据
*
* @return unknown
*/
public function beforeSave()
{
if ($this->isNewRecord) {
isset($this->create_time) && ($this->create_time = time());
}
$this->sort_order = intval($this->sort_order);
$this->site_url = XUtils::convertHttp($this->site_url);
return true;
}
示例2: foreach
</em></div>
<!--/上下篇-->
<!--相关阅读-->
<div id="relatedPost" class="bm">
<div class="boxTit clear">
<h3>相关阅读</h3>
</div>
<div class="bmc">
<ul class="list clear" id="raid_div">
<?php
foreach ((array) Bagecms::getList('post', 'index_news', array('where' => "status_is='Y' AND catalog_id={$bagecmsShow['catalog_id']} AND id!={$bagecmsShow['id']}", 'order' => 'id DESC', 'limit' => 8)) as $newsKey => $newsRow) {
?>
<li>• <a href="<?php
if ($newsRow['redirect_url']) {
echo XUtils::convertHttp($newsRow['redirect_url']);
} else {
echo $this->createUrl('post/show', array('id' => $newsRow['id']));
}
?>
" target="_blank"><?php
echo $newsRow['title'];
?>
</a></li>
<?php
}
?>
</ul>
</div>
</div>
示例3: foreach
?>
</a>
<?php
}
?>
</ul>
</div>
<div class="listBox clear">
<ul>
<?php
foreach ((array) $bagecmsDataList as $bagecmsKey => $bagecmsRow) {
?>
<li class="full cl ">
<div class="b_img"><a href="<?php
if ($bagecmsRow->redirect_url) {
echo XUtils::convertHttp($bagecmsRow->redirect_url);
} else {
echo $this->createUrl('post/show', array('id' => $bagecmsRow->id));
}
?>
" target="_blank"><img src="<?php
echo $this->_baseUrl;
?>
/<?php
echo $bagecmsRow->attach_thumb;
?>
" alt="<?php
echo $bagecmsRow->title;
?>
" class="tn"></a></div>
<h2><a href="<?php
示例4: array
?>
</a>
<?php
} else {
?>
没有了
<?php
}
?>
</em><em class="floatR">下一篇:
<?php
if ($behind) {
?>
<a href="<?php
if ($behind[0]['redirect_url']) {
echo XUtils::convertHttp($behind[0]['redirect_url']);
} else {
echo $this->createUrl('post/show', array('id' => $behind[0]['id']));
}
?>
"><?php
echo $behind[0]['title'];
?>
</a>
<?php
} else {
?>
没有了
<?php
}
?>