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