[dev] Accessing IMP classes from Horde
Etienne Goyer
etienne.goyer at linuxquebec.com
Fri May 7 14:39:22 PDT 2004
Hi,
I would like to access IMP classes from Horde hooks. I already have an
IMP object as Horde is configured to authenticate agaist it.
Apparently, the classes are outside the namespace. Ie:
$sentmail = $prefs->getValue('sent_mail_folder');
$subscribe = $prefs->getValue('subscribe');
$folder = &IMP_Folder::singleton();
$folder->create($imp['stream'], imap_utf7_encode($sentmail),
$subscribe);
This does not work and I have "PHP Fatal error: Undefined class name
'imp_folder' in ..." in my log. I tried including IMP's
core.php/base.php, and it does not work either.
Is this even possible ? Or are we expected to only use the Registry
when calling other's application function ?
Thanks !
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.horde.org/archives/dev/attachments/20040507/23ac41d0/signature.bin
More information about the dev
mailing list