/**
  * 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);
 }
Example #2
0
 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();
 }
Example #3
0
 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();
 }
Example #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();
 }
Example #5
0
 /**
  * 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);
 }
Example #6
0
 /** {@inheritdoc} */
 public function __construct()
 {
     parent::__construct('josef_menu');
 }
Example #7
0
 public function __construct()
 {
     parent::__construct('vytux_pages_1');
 }