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


PHP Theme::delete_minified方法代碼示例

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


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

示例1: action_saveorder

 /**
  * saves the category in a specific order and change the parent
  * @return void 
  */
 public function action_saveorder()
 {
     $this->auto_render = FALSE;
     $this->template = View::factory('js');
     if (Menu::change_order(Core::get('order'))) {
         Cache::instance()->delete_all();
         Theme::delete_minified();
         $this->template->content = __('Saved');
     } else {
         $this->template->content = __('Error');
     }
 }
開發者ID:Wildboard,項目名稱:WbWebApp,代碼行數:16,代碼來源:menu.php

示例2: action_cache

 public function action_cache()
 {
     $this->template->title = __('Cache');
     Breadcrumbs::add(Breadcrumb::factory()->set_title($this->template->title));
     $cache_config = Core::config('cache.' . Core::config('cache.default'));
     //force clean cache
     if (Core::get('force') == 1) {
         Core::delete_cache();
         Alert::set(Alert::SUCCESS, __('All cache deleted'));
     } elseif (Core::get('force') == 2) {
         Cache::instance()->garbage_collect();
         Theme::delete_minified();
         Alert::set(Alert::SUCCESS, __('Deleted expired cache'));
     }
     $this->template->content = View::factory('oc-panel/pages/tools/cache', array('cache_config' => $cache_config));
 }
開發者ID:JeffPedro,項目名稱:project-garage-sale,代碼行數:16,代碼來源:tools.php

示例3: action_delete

 public function action_delete()
 {
     //get name of the param, get the name of the custom fields, deletes from config array and alters table
     $this->auto_render = FALSE;
     $name = $this->request->param('id');
     $field = new Model_Field();
     try {
         if ($field->delete($name)) {
             Cache::instance()->delete_all();
             Theme::delete_minified();
             Alert::set(Alert::SUCCESS, __('Field deleted ' . $name));
         } else {
             Alert::set(Alert::ERROR, __('Field does not exists ' . $name));
         }
         $this->request->redirect(Route::url('oc-panel', array('controller' => 'fields', 'action' => 'index')));
     } catch (Exception $e) {
         //throw 500
         throw new HTTP_Exception_500();
     }
 }
開發者ID:Wildboard,項目名稱:WbWebApp,代碼行數:20,代碼來源:fields.php

示例4: delete_cache

 /**
  * deletes all the cache + theme temp files
  * @return [type] [description]
  */
 public static function delete_cache()
 {
     Cache::instance()->delete_all();
     Theme::delete_minified();
 }
開發者ID:azorpax,項目名稱:common,代碼行數:9,代碼來源:core.php

示例5: action_21

 /**
  * This function will upgrate DB that didn't existed in verisons below 2.0.7
  * changes added: config for advanced search by description
  */
 public function action_21()
 {
     $prefix = Database::instance()->table_prefix();
     $config_db = Kohana::$config->load('database');
     $charset = $config_db['default']['charset'];
     mysql_query("ALTER TABLE  `" . $prefix . "users` ADD  `hybridauth_provider_name` VARCHAR( 40 ) NULL DEFAULT NULL ,ADD  `hybridauth_provider_uid` VARCHAR( 245 ) NULL DEFAULT NULL");
     mysql_query("create unique index " . $prefix . "users_UK_provider_AND_uid on " . $prefix . "users (hybridauth_provider_name, hybridauth_provider_uid)");
     mysql_query("CREATE TABLE IF NOT EXISTS  `" . $prefix . "posts` (\n                  `id_post` int(10) unsigned NOT NULL AUTO_INCREMENT,\n                  `id_user` int(10) unsigned NOT NULL,\n                  `title` varchar(245) NOT NULL,\n                  `seotitle` varchar(245) NOT NULL,\n                  `description` text NOT NULL,\n                  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n                  `status` tinyint(1) NOT NULL DEFAULT '0',\n                  PRIMARY KEY (`id_post`) USING BTREE,\n                  UNIQUE KEY `" . $prefix . "posts_UK_seotitle` (`seotitle`)\n                ) ENGINE=InnoDB DEFAULT CHARSET=" . $charset . ";");
     // build array with new (missing) configs
     $configs = array(array('config_key' => 'search_by_description', 'group_name' => 'general', 'config_value' => 0), array('config_key' => 'blog', 'group_name' => 'general', 'config_value' => 0), array('config_key' => 'minify', 'group_name' => 'general', 'config_value' => 0), array('config_key' => 'parent_category', 'group_name' => 'advertisement', 'config_value' => 1), array('config_key' => 'blog_disqus', 'group_name' => 'general', 'config_value' => ''), array('config_key' => 'upload_images_mobile', 'group_name' => 'general', 'config_value' => 0), array('config_key' => 'config', 'group_name' => 'social', 'config_value' => '{"debug_mode":"0","providers":{
                                                                       "OpenID":{"enabled":"1"},
                                                                       "Yahoo":{"enabled":"0","keys":{"id":"","secret":""}},
                                                                       "AOL":{"enabled":"1"}
                                                                       ,"Google":{"enabled":"0","keys":{"id":"","secret":""}},
                                                                       "Facebook":{"enabled":"0","keys":{"id":"","secret":""}},
                                                                       "Twitter":{"enabled":"0","keys":{"key":"","secret":""}},
                                                                       "Live":{"enabled":"0","keys":{"id":"","secret":""}},
                                                                       "MySpace":{"enabled":"0","keys":{"key":"","secret":""}},
                                                                       "LinkedIn":{"enabled":"0","keys":{"key":"","secret":""}},
                                                                       "Foursquare":{"enabled":"0","keys":{"id":"","secret":""}}},
                                                   "base_url":"",
                                                   "debug_file":""}'));
     // returns TRUE if some config is saved
     $return_conf = Model_Config::config_array($configs);
     //call update actions 203,205,206,207
     $this->action_203();
     $this->action_205();
     $this->action_206();
     $this->action_207();
     //clean cache
     Cache::instance()->delete_all();
     Theme::delete_minified();
     Alert::set(Alert::SUCCESS, __('Updated'));
     $this->request->redirect(Route::url('oc-panel', array('controller' => 'update', 'action' => 'index')));
 }
開發者ID:Wildboard,項目名稱:WbWebApp,代碼行數:39,代碼來源:update.php


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