本文整理匯總了PHP中MakeOneTag函數的典型用法代碼示例。如果您正苦於以下問題:PHP MakeOneTag函數的具體用法?PHP MakeOneTag怎麽用?PHP MakeOneTag使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了MakeOneTag函數的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: ParseTempletsFirst
/**
* 解析模板,對固定的標記進行初始給值
*
* @access public
* @return string
*/
function ParseTempletsFirst()
{
if (isset($this->TypeLink->TypeInfos['reid'])) {
$GLOBALS['envs']['reid'] = $this->TypeLink->TypeInfos['reid'];
}
$GLOBALS['envs']['typeid'] = $this->TypeID;
$GLOBALS['envs']['topid'] = GetTopid($this->Fields['typeid']);
$GLOBALS['envs']['cross'] = 1;
MakeOneTag($this->dtp, $this);
}
示例2: ParseTemplet
/**
* 解析模板裏的標簽
*
* @access public
* @return string
*/
function ParseTemplet()
{
$GLOBALS['envs']['likeid'] = $this->Fields['likeid'];
MakeOneTag($this->dtp, $this);
}
示例3: ParseTempletsFirst
/**
* 解析模板,對固定的標記進行初始給值
*
* @access private
* @return void
*/
function ParseTempletsFirst()
{
MakeOneTag($this->dtp, $this);
}
示例4: IncludeFile
/**
* 引入文件
*
* @access public
* @param string $filename 文件名
* @param string $ismake 是否需要編譯
* @return string
*/
function IncludeFile($filename, $ismake = 'no')
{
global $cfg_df_style;
$restr = '';
if ($filename == '') {
return '';
}
if (file_exists(DEDEROOT . "/templets/" . $filename)) {
$okfile = DEDEROOT . "/templets/" . $filename;
} else {
if (file_exists(DEDEROOT . '/templets/' . $cfg_df_style . '/' . $filename)) {
$okfile = DEDEROOT . '/templets/' . $cfg_df_style . '/' . $filename;
} else {
return "無法在這個位置找到: {$filename}";
}
}
//編譯
if ($ismake != "no") {
require_once DEDEINC . "/channelunit.func.php";
$dtp = new DedeTagParse();
$dtp->LoadTemplet($okfile);
MakeOneTag($dtp, $this->refObj);
$restr = $dtp->GetResult();
} else {
$fp = @fopen($okfile, "r");
while ($line = fgets($fp, 1024)) {
$restr .= $line;
}
fclose($fp);
}
return $restr;
}
示例5: ParseTempletsFirst
/**
* 解析模板,對固定的標記進行初始給值
*
* @access public
* @return void
*/
function ParseTempletsFirst()
{
if (empty($this->Fields['keywords'])) {
$this->Fields['keywords'] = '';
}
if (empty($this->Fields['reid'])) {
$this->Fields['reid'] = 0;
}
$GLOBALS['envs']['tags'] = $this->Fields['tags'];
if (isset($this->TypeLink->TypeInfos['reid'])) {
$GLOBALS['envs']['reid'] = $this->TypeLink->TypeInfos['reid'];
}
$GLOBALS['envs']['keyword'] = $this->Fields['keywords'];
$GLOBALS['envs']['typeid'] = $this->Fields['typeid'];
$GLOBALS['envs']['topid'] = GetTopid($this->Fields['typeid']);
$GLOBALS['envs']['aid'] = $GLOBALS['envs']['id'] = $this->Fields['id'];
$GLOBALS['envs']['adminid'] = $GLOBALS['envs']['mid'] = isset($this->Fields['mid']) ? $this->Fields['mid'] : 1;
$GLOBALS['envs']['channelid'] = $this->TypeLink->TypeInfos['channeltype'];
if ($this->Fields['reid'] > 0) {
$GLOBALS['envs']['typeid'] = $this->Fields['reid'];
}
MakeOneTag($this->dtp, $this, 'N');
}
示例6: ParseTemplet
/**
* 解析模板裏的標簽
*
* @access private
* @return void
*/
function ParseTemplet()
{
$GLOBALS['envs']['typeid'] = $this->TypeID;
if ($this->TypeID > 0) {
$GLOBALS['envs']['topid'] = GetTopid($this->TypeID);
} else {
$GLOBALS['envs']['topid'] = 0;
}
if (isset($this->TypeLink->TypeInfos['reid'])) {
$GLOBALS['envs']['reid'] = $this->TypeLink->TypeInfos['reid'];
}
if (isset($this->TypeLink->TypeInfos['channeltype'])) {
$GLOBALS['envs']['channelid'] = $this->TypeLink->TypeInfos['channeltype'];
}
MakeOneTag($this->dtp, $this);
//這個函數放在 channelunit.func.php 文件中
}
示例7: ParseTempletsFirst
/**
* 解析模板,對固定的標記進行初始給值
*
* @access private
* @return void
*/
function ParseTempletsFirst()
{
if (isset($this->TypeLink->TypeInfos['reid'])) {
$GLOBALS['envs']['reid'] = $this->TypeLink->TypeInfos['reid'];
}
$GLOBALS['envs']['channelid'] = $this->TypeLink->TypeInfos['channeltype'];
$GLOBALS['envs']['typeid'] = $this->TypeID;
$GLOBALS['envs']['cross'] = 1;
MakeOneTag($this->dtp, $this);
}