[horde] documentation about Horde
Chuck Hagenbuch
chuck at horde.org
Tue Apr 10 14:03:39 PDT 2001
Quoting Atif Ghaffar <aghaffar at developer.ch>:
> Where can I find some docs on how to write apps using Horde framework.
Well, they're going to exist soon, since Jon and I are writing a presentation
for the O'Reilly Open Source conference. But until then, they're a bit scarce.
> Where can I find documentation on registry.php that explains the syntax of
>
> $this->services['imp']['mail']['compose'] = array(
> 'callback' => "javascript:open_compose_win
('popup=1&to=|to|&cc=|cc|&bcc=|bcc|&msg=|msg|&subject=|subject||extra|');",
> 'includeFile' =>
> '%application%/templates/javascript/open_compose_win.js',
> 'invocation' => "<script language='JavaScript'
> type='text/javascript'>open_compose_win
('to=|to|&cc=|cc|&bcc=|bcc|&msg=|msg|&subject=|subject||extra|');</script>"
> );
>
> what are the |constants?
> Are they replaced by something.
Yes. They are all the names of parameters. You call:
$registry->link('mail/compose', array('foo' => 'bar', 'baz' => 'qux'));
where the first argument is the name of the link method to call, and the second
is an array of parameters, where the name of each index in the name of a
parameter to replace.
So for the mail/compose example, calling the link method with
array('to' => 'chuck at horde.org') would replace the |to| parameter with my email
address.
The difference between |foo| and %foo% is that the value of %foo% is run
through htmlentities, while the value of |foo| is run through urlencode.
How's that?
-chuck
--
Charles Hagenbuch, <chuck at horde.org>
Number of U.S. nuclear bombs lost in accidents and never recovered: 11
More information about the horde
mailing list