1
jesore
Object Handler from another module
  • 2005/10/11 8:52

  • jesore

  • Just popping in

  • Posts: 18

  • Since: 2005/9/19


I don't know if this is still a beginner question, but how do I get a objecthandler that is from another module? Sure, I could extend that class in the module in question, but that will be a lot of work, as I have to do this a lot.

Maybe I should explain the situation. I wrote myself a module that integrates SimpleTest in the XOOPS framework. That module searches for testsuites allover XOOPS and executes them. The Problem is, they are executed under the SimpleTest module, not the module the tests are from and the handler searches for the classes in the Simpletest Module, not the module to be tested.

So I see two theoretical solutions:
1. Make XOOPS believe it is the other module
2. Tell the handler in what module to find the classes

I have no idea on how to do either of them so any help would be great.

Jesore

2
Will_H
Re: Object Handler from another module
  • 2005/10/12 7:32

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


option 3 clone simpletest module, reformat as needed. for more info read the faq on module cloning.

and yeah you are right, it wil be a little project.

3
jesore
Re: Object Handler from another module
  • 2005/10/12 7:40

  • jesore

  • Just popping in

  • Posts: 18

  • Since: 2005/9/19


That really is the only option? Damn, I already had that. I had a page I could copy into the module that, whenn called, would automatically run the tests for that one. But I wanted one page where all (multiple modules plus core) tests are shown and so I tried my luck with a dedicated module.

4
Mithrandir
Re: Object Handler from another module

$handler = xoops_getmodulehandler('handlername', 'dirname_of_module_this_handler_is_in');
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

5
jesore
Re: Object Handler from another module
  • 2005/10/12 11:28

  • jesore

  • Just popping in

  • Posts: 18

  • Since: 2005/9/19


Thanks, now it works. Slowly this module becomes useful.

Login

Who's Online

167 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 167


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits