main.php 600 B

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