当前位置: 首页>>代码示例>>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;未经允许,请勿转载。