當前位置: 首頁>>代碼示例>>PHP>>正文


PHP fs_extension::delete方法代碼示例

本文整理匯總了PHP中fs_extension::delete方法的典型用法代碼示例。如果您正苦於以下問題:PHP fs_extension::delete方法的具體用法?PHP fs_extension::delete怎麽用?PHP fs_extension::delete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在fs_extension的用法示例。


在下文中一共展示了fs_extension::delete方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: share_extensions

 public function share_extensions()
 {
     $extensiones = array(array('name' => 'ordencarga_datepicker_es_js', 'page_from' => __CLASS__, 'page_to' => 'distrib_creacion', 'type' => 'head', 'text' => '<script type="text/javascript" src="' . FS_PATH . 'plugins/distribucion/view/js/locale/datepicker-es.js"></script>', 'params' => ''), array('name' => 'ordencarga_jqueryui_js', 'page_from' => __CLASS__, 'page_to' => 'distrib_creacion', 'type' => 'head', 'text' => '<script type="text/javascript" src="' . FS_PATH . 'plugins/distribucion/view/js/jquery-ui.min.js"></script>', 'params' => ''), array('name' => 'ordencarga_jqueryui_css1', 'page_from' => __CLASS__, 'page_to' => 'distrib_creacion', 'type' => 'head', 'text' => '<link rel="stylesheet" href="' . FS_PATH . 'plugins/distribucion/view/css/jquery-ui.min.css"/>', 'params' => ''), array('name' => 'ordencarga_jqueryui_css2', 'page_from' => __CLASS__, 'page_to' => 'distrib_creacion', 'type' => 'head', 'text' => '<link rel="stylesheet" href="' . FS_PATH . 'plugins/distribucion/view/css/jquery-ui.structure.min.css"/>', 'params' => ''), array('name' => 'ordencarga_jqueryui_css3', 'page_from' => __CLASS__, 'page_to' => 'distrib_creacion', 'type' => 'head', 'text' => '<link rel="stylesheet" href="' . FS_PATH . 'plugins/distribucion/view/css/jquery-ui.theme.min.css"/>', 'params' => ''), array('name' => 'distribucion_css4', 'page_from' => __CLASS__, 'page_to' => 'distrib_creacion', 'type' => 'head', 'text' => '<link rel="stylesheet" href="' . FS_PATH . 'plugins/distribucion/view/css/distribucion.css"/>', 'params' => ''), array('name' => 'distribucion_css5', 'page_from' => __CLASS__, 'page_to' => 'distrib_creacion', 'type' => 'head', 'text' => '<link rel="stylesheet" type="text/css" media="screen" href="' . FS_PATH . 'plugins/distribucion/view/css/ui.jqgrid-bootstrap.css"/>', 'params' => ''), array('name' => 'distribucion_css6', 'page_from' => __CLASS__, 'page_to' => 'distrib_creacion', 'type' => 'head', 'text' => '<script src="' . FS_PATH . 'plugins/distribucion/view/js/locale/grid.locale-es.js" type="text/javascript"></script>', 'params' => ''), array('name' => 'distribucion_css7', 'page_from' => __CLASS__, 'page_to' => 'distrib_creacion', 'type' => 'head', 'text' => '<script src="' . FS_PATH . 'plugins/distribucion/view/js/plugins/jquery.jqGrid.min.js" type="text/javascript"></script>', 'params' => ''), array('name' => 'distribucion_js9', 'page_from' => __CLASS__, 'page_to' => 'distrib_creacion', 'type' => 'head', 'text' => '<script src="' . FS_PATH . 'plugins/distribucion/view/js/bootstrap-select.min.js" type="text/javascript"></script>', 'params' => ''), array('name' => 'distribucion_js10', 'page_from' => __CLASS__, 'page_to' => 'distrib_creacion', 'type' => 'head', 'text' => '<script src="' . FS_PATH . 'plugins/distribucion/view/js/locale/defaults-es_CL.min.js" type="text/javascript"></script>', 'params' => ''), array('name' => 'distribucion_css11', 'page_from' => __CLASS__, 'page_to' => 'distrib_creacion', 'type' => 'head', 'text' => '<link rel="stylesheet" type="text/css" media="screen" href="' . FS_PATH . 'plugins/distribucion/view/css/bootstrap-select.min.css"/>', 'params' => ''), array('name' => 'distribucion_js12', 'page_from' => __CLASS__, 'page_to' => 'distrib_creacion', 'type' => 'head', 'text' => '<script src="' . FS_PATH . 'plugins/distribucion/view/js/bootbox.min.js" type="text/javascript"></script>', 'params' => ''), array('name' => 'distribucion_js13', 'page_from' => __CLASS__, 'page_to' => 'distrib_creacion', 'type' => 'head', 'text' => '<script src="' . FS_PATH . 'plugins/distribucion/view/js/plugins/validator.min.js" type="text/javascript"></script>', 'params' => ''));
     foreach ($extensiones as $ext) {
         $fsext0 = new fs_extension($ext);
         if (!$fsext0->save()) {
             $this->new_error_msg('Imposible guardar los datos de la extensión ' . $ext['name'] . '.');
         }
     }
     $fext = new fs_extension(array('name' => 'distribucion_css12', 'page_from' => __CLASS__, 'page_to' => 'distrib_creacion', 'type' => 'head', 'text' => '<link rel="stylesheet" type="text/css" media="screen" href="plugins/distribucion/view/font-awesome/css/font-awesome.min.css"/>', 'params' => ''));
     $fext->delete();
 }
開發者ID:joenilson,項目名稱:distribucion,代碼行數:12,代碼來源:distrib_creacion.php

示例2: share_extensions

 private function share_extensions()
 {
     $fsext = new fs_extension();
     $fsext->name = 'opciones_distribucion';
     $fsext->from = 'opciones_distribucion';
     $fsext->to = __CLASS__;
     $fsext->type = 'button';
     $fsext->text = '<span class="glyphicon glyphicon-cog" aria-hidden="true">' . '</span><span class="hidden-xs">&nbsp; Opciones</span>';
     $fsext->delete();
     $extensiones = array(array('name' => 'treeview_admin_distribucion_js', 'page_from' => __CLASS__, 'page_to' => __CLASS__, 'type' => 'head', 'text' => '<script src="' . FS_PATH . 'plugins/distribucion/view/js/bootstrap-treeview.min.js" type="text/javascript"></script>', 'params' => ''), array('name' => 'treeview_admin_distribucion_css', 'page_from' => __CLASS__, 'page_to' => __CLASS__, 'type' => 'head', 'text' => '<link rel="stylesheet" type="text/css" media="screen" href="' . FS_PATH . 'plugins/distribucion/view/css/bootstrap-treeview.min.css"/>', 'params' => ''));
     foreach ($extensiones as $ext) {
         $fsext0 = new fs_extension($ext);
         if (!$fsext0->save()) {
             $this->new_error_msg('Imposible guardar los datos de la extensión ' . $ext['name'] . '.');
         }
     }
 }
開發者ID:joenilson,項目名稱:distribucion,代碼行數:17,代碼來源:admin_distribucion.php


注:本文中的fs_extension::delete方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。