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


PHP Modules::remove_by_name方法代碼示例

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


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

示例1: unregister

 /**
  * function unregister
  * Unregisters a module to remove it from the 'add item' module list
  * @param string $name module name
  */
 public static function unregister($name)
 {
     // remove any instances currently on the dashboard
     Modules::remove_by_name($name);
     self::$available_modules = array_diff(self::$available_modules, array($name));
     self::commit_active();
     self::commit();
 }
開發者ID:ringmaster,項目名稱:system,代碼行數:13,代碼來源:modules.php

示例2: action_plugin_deactivation

 /**
  * action_plugin_deactivation
  * Unregisters the core modules.
  * @param string $file plugin file
  */
 function action_plugin_deactivation($file)
 {
     if (Plugins::id_from_file($file) == Plugins::id_from_file(__FILE__)) {
         Modules::remove_by_name('Latest Entries');
         Modules::remove_by_name('Latest Comments');
         Modules::remove_by_name('Latest Log Activity');
     }
 }
開發者ID:anupom,項目名稱:my-blog,代碼行數:13,代碼來源:coredashmodules.plugin.php

示例3: action_plugin_deactivation

 /**
  * action_plugin_deactivation
  * Unregisters the core modules.
  * @param string $file plugin file
  */
 public function action_plugin_deactivation($file)
 {
     if (Plugins::id_from_file($file) == Plugins::id_from_file(__FILE__)) {
         foreach ($this->reports as $rpt => $data) {
             Modules::remove_by_name($data['module']);
         }
     }
 }
開發者ID:habari-extras,項目名稱:ga_dashboard,代碼行數:13,代碼來源:ga_dashboard.plugin.php

示例4: action_plugin_deactivation

 function action_plugin_deactivation($file)
 {
     if (Plugins::id_from_file($file) == Plugins::id_from_file(__FILE__)) {
         // remove the module from the dash if it is active
         Modules::remove_by_name('Incoming Links');
         // Remove the periodical execution event
         CronTab::delete_cronjob('incoming_links');
         // Clear the cached links
         Cache::expire('incoming_links');
     }
 }
開發者ID:anupom,項目名稱:my-blog,代碼行數:11,代碼來源:incoming_links.plugin.php

示例5: action_plugin_deactivation

 public function action_plugin_deactivation($file)
 {
     if (realpath($file) == __FILE__) {
         Options::delete('getclicky__siteid');
         Options::delete('getclicky__sitekey');
         Options::delete('getclicky__sitedb');
         Options::delete('getclicky__loggedin');
         Options::delete('getclicky__cachetime');
         $this->clearCache();
         Modules::remove_by_name('GetClicky');
     }
 }
開發者ID:habari-extras,項目名稱:getclicky,代碼行數:12,代碼來源:getclicky.plugin.php

示例6: action_plugin_deactivation

 public function action_plugin_deactivation($file = '')
 {
     if (Plugins::id_from_file($file) == Plugins::id_from_file(__FILE__)) {
         ACL::destroy_token('snapshot');
         // wipe out the default options we added
         Options::delete('exportsnapshot__frequency');
         Options::delete('exportsnapshot__type');
         // remove the module
         Modules::remove_by_name(_t('Snapshots', 'exportsnapshot'));
         // @todo what about the snapshots option and deleting those cached items?
         // probably an uninstall method too?
     }
 }
開發者ID:habari-extras,項目名稱:exportsnapshot,代碼行數:13,代碼來源:exportsnapshot.plugin.php

示例7: action_plugin_deactivation

 /**
  * action_plugin_deactivation
  * Unregisters the core modules.
  * @param string $file plugin file
  */
 function action_plugin_deactivation($file)
 {
     if (Plugins::id_from_file($file) == Plugins::id_from_file(__FILE__)) {
         Modules::remove_by_name('Latest Spam');
     }
 }
開發者ID:habari-extras,項目名稱:spamview,代碼行數:11,代碼來源:spamview.plugin.php

示例8: action_plugin_deactivation

 /**
  * action_plugin_deactivation
  * Unregisters the module.
  * @param string $file plugin file
  */
 function action_plugin_deactivation($file)
 {
     Modules::remove_by_name('My Tickets');
 }
開發者ID:habari-extras,項目名稱:tracdashmodule,代碼行數:9,代碼來源:tracdashmodule.plugin.php

示例9: action_plugin_deactivation

 function action_plugin_deactivation($file)
 {
     Modules::remove_by_name('123LinkIt');
 }
開發者ID:ringmaster,項目名稱:123linkit_habari,代碼行數:4,代碼來源:123linkit.plugin.php

示例10: action_plugin_deactivation

 public function action_plugin_deactivation($file)
 {
     if (realpath($file) == __FILE__) {
         Modules::remove_by_name('Technorati');
     }
 }
開發者ID:habari-extras,項目名稱:technorati,代碼行數:6,代碼來源:technorati.plugin.php


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