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