当前位置: 首页>>代码示例>>PHP>>正文


PHP Catalog::delete方法代码示例

本文整理汇总了PHP中Catalog::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP Catalog::delete方法的具体用法?PHP Catalog::delete怎么用?PHP Catalog::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Catalog的用法示例。


在下文中一共展示了Catalog::delete方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: delete

 public function delete()
 {
     $oCatalog = new Catalog();
     $oCatalog->delete($this->show->itemID);
     redirect(BASE_PATH . 'admin/catalog/');
 }
开发者ID:kizz66,项目名称:meat,代码行数:6,代码来源:Catalog.php

示例2: T_

     $title = T_('Catalog Updated');
     $body = '';
     show_confirmation($title, $body, $url);
     toggle_visible('ajax-loading');
     break;
 case 'delete_catalog':
     /* Make sure they aren't in demo mode */
     if (AmpConfig::get('demo_mode')) {
         break;
     }
     if (!Core::form_verify('delete_catalog')) {
         UI::access_denied();
         exit;
     }
     /* Delete the sucker, we don't need to check perms as thats done above */
     Catalog::delete($_GET['catalog_id']);
     $next_url = AmpConfig::get('web_path') . '/admin/catalog.php';
     show_confirmation(T_('Catalog Deleted'), T_('The Catalog and all associated records have been deleted'), $next_url);
     break;
 case 'show_delete_catalog':
     $catalog_id = scrub_in($_GET['catalog_id']);
     $next_url = AmpConfig::get('web_path') . '/admin/catalog.php?action=delete_catalog&catalog_id=' . scrub_out($catalog_id);
     show_confirmation(T_('Catalog Delete'), T_('Confirm Deletion Request'), $next_url, 1, 'delete_catalog');
     break;
 case 'enable_disabled':
     if (AmpConfig::get('demo_mode')) {
         break;
     }
     $songs = $_REQUEST['song'];
     if (count($songs)) {
         foreach ($songs as $song_id) {
开发者ID:axelsimon,项目名称:ampache,代码行数:31,代码来源:catalog.php

示例3: sse_worker

     $sse_url = AmpConfig::get('web_path') . "/server/sse.server.php?worker=catalog&action=full_service&catalogs=" . $sse_catalogs;
     sse_worker($sse_url);
     show_confirmation(T_('Catalog Update started...'), '', AmpConfig::get('web_path') . '/admin/catalog.php', 0, 'confirmation', false);
     break;
 case 'delete_catalog':
     if (AmpConfig::get('demo_mode')) {
         break;
     }
     if (!Core::form_verify('delete_catalog')) {
         UI::access_denied();
         exit;
     }
     $deleted = true;
     /* Delete the sucker, we don't need to check perms as thats done above */
     foreach ($catalogs as $catalog_id) {
         $deleted = Catalog::delete($catalog_id);
         if (!$deleted) {
             break;
         }
     }
     $next_url = AmpConfig::get('web_path') . '/admin/catalog.php';
     if ($deleted) {
         show_confirmation(T_('Catalog Deleted'), T_('The Catalog and all associated records have been deleted'), $next_url);
     } else {
         show_confirmation(T_('Error'), T_('Cannot delete the catalog'), $next_url);
     }
     break;
 case 'show_delete_catalog':
     $next_url = AmpConfig::get('web_path') . '/admin/catalog.php?action=delete_catalog&catalogs[]=' . implode(',', $catalogs);
     show_confirmation(T_('Catalog Delete'), T_('Confirm Deletion Request'), $next_url, 1, 'delete_catalog');
     break;
开发者ID:nioc,项目名称:ampache,代码行数:31,代码来源:catalog.php


注:本文中的Catalog::delete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。