本文整理匯總了PHP中Tags::GetMinLength方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tags::GetMinLength方法的具體用法?PHP Tags::GetMinLength怎麽用?PHP Tags::GetMinLength使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Tags
的用法示例。
在下文中一共展示了Tags::GetMinLength方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: tbxDisplayUpload
function tbxDisplayUpload()
{
global $t;
$DB = GetDB();
$t->Assign('g_tag_min_length', Tags::GetMinLength());
$t->Assign('g_custom_fields', $DB->FetchAll('SELECT * FROM `tbx_video_custom_schema` WHERE `on_submit`=1'));
$t->Assign('g_year', date('Y'));
$t->Display('upload-step-one.tpl');
}
示例2: tbxDisplayVideoEdit
function tbxDisplayVideoEdit($fromdb = true)
{
global $t;
$DB = GetDB();
$username = AuthenticateUser::GetUsername();
$video = $fromdb ? $DB->Row('SELECT * FROM `tbx_video` JOIN `tbx_video_custom` USING (`video_id`) WHERE `username`=? AND `tbx_video`.`video_id`=?', array($username, $_REQUEST['video_id'])) : $_REQUEST;
if (!empty($video)) {
list($video['recorded_year'], $video['recorded_month'], $video['recorded_day']) = explode('-', $video['date_recorded']);
}
$t->Assign('g_custom_fields', $DB->FetchAll('SELECT * FROM `tbx_video_custom_schema` WHERE `on_edit`=1'));
$t->Assign('g_thumbs', $DB->FetchAll('SELECT * FROM `tbx_video_thumbnail` WHERE `video_id`=?', array($video['video_id'])));
$t->Assign('g_username', $username);
$t->Assign('g_form', $video);
$t->Assign('g_year', date('Y'));
$t->Assign('g_tag_min_length', Tags::GetMinLength());
$t->Display('user-video-edit.tpl');
}