main.php 579 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. class TestModule2 extends \Tools\AModule
  3. {
  4. private $installed;
  5. public function __construct()
  6. {
  7. $this->installed = false;
  8. }
  9. public function install()
  10. {
  11. $this->installed = false;
  12. return true;
  13. }
  14. public function isInstalled()
  15. {
  16. return $this->installed;
  17. }
  18. public function doAction($ev)
  19. {
  20. }
  21. public function doShortCode($code, $params)
  22. {
  23. }
  24. public function getParentName()
  25. { return parent::getName(); }
  26. public function getName()
  27. { return "test 2"; }
  28. public function getDescription()
  29. { return "My description"; }
  30. }
  31. return new TestModule2();