EGroupware has an own way of instantiating a class and call a method of
the instantiated class: you see it eg. in the url’s like:
/index.php?menuaction=app.class.method
This (checks that the user has the right to use application “app”),
includes class “class” defined in /app/inc/class.class.inc.php,
instantiates it and calls method “method” of the instantiated class.
ExecMethod or ExecMethod2 allows to use the same menuaction string as
first parameter, to call the given method.
In newer code we mostly use auto loadable class names like app_class,
which allow to call static methods without ExecMethod and the need to
instantiate a class first: app_class::method($param)
There’s also an old factory method used to include a class and
instancate it: CreateObject($app_class) with $app_class is an
application and a class name separated by a dot, eg “app.class”.
Anyway applications reside in subdirectories in EGroupware.
Ralf
alexmay schrieb:
Thanks for the comments.
The first seems to be saying that I am right that this is a bug.
Unfortunatly, I don’t understand the rest of that comment.
I couldn’t find the tracker or filemanager. I’m probably not looking in the
right place,
but the comment was somewhat brief.
As for the last comment, the link is useful, but does it answer the
questions?
ralfbecker wrote:
http://www.egroupware.org/egwdoc/nav.html?phpgwapi/inc/common_functions.inc.php.html#execmethod
alexmay schrieb:
I’ve just started trying to understand how egroupware works and I got
stuck
on about the second line of code!
I was looking at index.php in the felamimail directory.
This contains a function call execmethod(’…’);
I looked up execmethod on php.net and found nothing so I figured it must
be
a custom function.
I therefore searched the whole of my egroupware directories to find its
definition.
The only thing I found was another call in emailadmin/index.php.
Hunting around, I came across ExecMethod which is defined and discussed
etc.
Can someone tell me what is going on here?
Is this a mistake/bug? Is execmethod defined elsewhere? Or is php not
case
sensitive?
Would much appreciate any help.
Thanks,
Alex
–
Ralf Becker
Director Software Development
Stylite GmbH
[open style of IT]
Morschheimer Strasse 15
67292 Kirchheimbolanden
fon +49 (0) 6352 70629-0
fax +49 (0) 6352 70629-30
mailto: rb@stylite.de
www.stylite.de
www.egroupware.org
Geschäftsführer Andre Keller, Gudrun Müller,
Nigel Vickers und Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what’s new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers
–
Ralf Becker
Director Software Development
Stylite GmbH
[open style of IT]
Morschheimer Strasse 15
67292 Kirchheimbolanden
fon +49 (0) 6352 70629-0
fax +49 (0) 6352 70629-30
mailto: rb@stylite.de
www.stylite.de
www.egroupware.org
Geschäftsführer Andre Keller, Gudrun Müller,
Nigel Vickers und Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what’s new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers