本文整理匯總了PHP中TTable::GetTitle方法的典型用法代碼示例。如果您正苦於以下問題:PHP TTable::GetTitle方法的具體用法?PHP TTable::GetTitle怎麽用?PHP TTable::GetTitle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TTable
的用法示例。
在下文中一共展示了TTable::GetTitle方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: GetTitle
function GetTitle()
{
global $_elems, $cfg;
$title = TTable::GetTitle();
$id = $this->GetClientID();
$_elems = false;
if ($id) {
$_elems = true;
$title = $this->getClientTitle($id);
}
return $title;
}
示例2: GetTitle
function GetTitle()
{
global $_elems, $_name, $cfg;
$title = TTable::GetTitle();
$id = (int) get('id');
if (defined('LANG_SELECT') && LANG_SELECT) {
$rows = sql_query("SELECT type, IF (name_" . lang() . " <> '', name_" . lang() . ", name_" . LANG_DEFAULT . ") as name FROM tree WHERE id=" . $id);
} else {
$rows = sql_query("SELECT type, name FROM tree WHERE id=" . $id);
}
$_elems = array();
if ($rows) {
$row = mysql_fetch_row($rows);
$_elems = !empty($row[0]) && !empty($cfg['types'][$row[0]]['elements']) ? $cfg['types'][$row[0]]['elements'] : $cfg['types']['home']['elements'];
$_name = $row[1];
$title .= ' - "' . $row[1] . '"';
}
return $title;
}