本文整理匯總了PHP中Playlist::updateRecord方法的典型用法代碼示例。如果您正苦於以下問題:PHP Playlist::updateRecord方法的具體用法?PHP Playlist::updateRecord怎麽用?PHP Playlist::updateRecord使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Playlist
的用法示例。
在下文中一共展示了Playlist::updateRecord方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: time_to_hhmm
exit;
}
$time = 0;
if (!empty($_POST)) {
$time = intval($_POST['hh']) * 60 + intval($_POST['mm']);
}
if (@$_POST['add']) {
Admin::checkAccess(AdminAccess::ACCESS_CREATE);
$playlist->addRecord(array('time' => $time, 'video_id' => $_POST['video_id'], 'playlist_id' => $_GET['playlist_id']));
header("Location: playlist.php?playlist_id=" . @$_GET['playlist_id']);
exit;
}
if (!empty($id)) {
if (@$_POST['edit']) {
Admin::checkAccess(AdminAccess::ACCESS_EDIT);
$playlist->updateRecord(array('time' => $time, 'video_id' => $_POST['video_id']), $id);
header("Location: playlist.php?playlist_id=" . @$_GET['playlist_id']);
} elseif (@$_GET['del']) {
Admin::checkAccess(AdminAccess::ACCESS_DELETE);
$playlist->delRecord($id);
header("Location: playlist.php?playlist_id=" . @$_GET['playlist_id']);
}
exit;
}
if (@$_GET['edit'] && !empty($id)) {
$action_name = 'edit';
$action_value = _('Save');
$edit_record = $playlist->getRecord($id);
}
$records = $playlist->getAllRecordsByPlaylistId($_GET['playlist_id']);
function time_to_hhmm($time)