/**
  * Create a new module.
  *
  * @param string $directory Where is this module installed
  */
 public function __construct($directory)
 {
     parent::__construct($directory);
     // Create/update the database tables.
     // NOTE: if we want to set any module-settings, we'll need to move this.
     Database::updateSchema(self::SCHEMA_MIGRATION_PREFIX, self::SCHEMA_SETTING_NAME, self::SCHEMA_TARGET_VERSION);
 }
 public function __construct()
 {
     parent::__construct('fancy_research_links');
     $this->directory = WT_MODULES_DIR . $this->getName();
     // register the namespace
     $loader = new ClassLoader();
     $loader->addPsr4('JustCarmen\\WebtreesAddOns\\FancyResearchLinks\\', WT_MODULES_DIR . $this->getName() . '/app');
     $loader->register();
 }
 public function __construct()
 {
     parent::__construct('modulename');
     $this->directory = WT_MODULES_DIR . $this->getName();
     $this->action = Filter::get('mod_action');
     // register the namespaces
     $loader = new ClassLoader();
     $loader->addPsr4('vendor\\WebtreesModules\\modulename\\', $this->directory);
     $loader->register();
 }
Exemple #4
0
 /** {@inheritdoc} */
 public function __construct()
 {
     parent::__construct('fancy_treeview');
     $this->directory = WT_MODULES_DIR . $this->getName();
     $this->action = Filter::get('mod_action');
     // register the namespaces
     $loader = new ClassLoader();
     $loader->addPsr4('JustCarmen\\WebtreesAddOns\\FancyTreeview\\', $this->directory . '/app');
     $loader->register();
 }
 /**
  * Create a new module.
  *
  * @param string $directory Where is this module installed
  */
 public function __construct($directory)
 {
     parent::__construct($directory);
     // Create/update the database tables.
     Database::updateSchema('\\Fisharebest\\Webtrees\\Module\\FamilyTreeNews\\Schema', 'NB_SCHEMA_VERSION', 3);
 }
Exemple #6
0
 /** {@inheritdoc} */
 public function __construct()
 {
     parent::__construct('josef_menu');
 }
Exemple #7
0
 public function __construct()
 {
     parent::__construct('vytux_pages_1');
 }
Exemple #8
0
 /**
  * Returns the name of the cached key, based on the value name and the calling module
  *
  * @param string $value Value name
  * @param AbstractModule $mod Calling module
  * @return string Cached key name
  */
 protected function getKeyName($value, AbstractModule $mod = null)
 {
     $this->checkInit();
     $mod_name = 'myartjaub';
     if ($mod !== null) {
         $mod_name = $mod->getName();
     }
     return $mod_name . '_' . $value;
 }