[Tickets #8683] getLink(): build $editurl and $delurl from getViewUrl (..)
bugs at horde.org
bugs at horde.org
Fri Nov 6 14:46:38 UTC 2009
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/8683
------------------------------------------------------------------------------
Ticket | 8683
Created By | patrick.abiven at apitech.fr
Summary | getLink(): build $editurl and $delurl from getViewUrl
| (..)
Queue | Kronolith
Version | FRAMEWORK_3
Type | Enhancement
State | New
Priority | 1. Low
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
patrick.abiven at apitech.fr (2009-11-06 09:46) wrote:
Hello
In lib/Driver.php, function getLink(), it seems possible to optimize
the event link generation. Instead of calling getViewUrl and then
getEditUrl and getDeleteUrl, we can build the $editurl and $delurl
from the getViewUrl() result.
$viewurl = $this->getViewUrl (...)
...
$editurl = Util::addParameter($viewurl, array('view' => 'EditEvent'));
$delurl = Util::addParameter($viewurl, array('view' => 'DeleteEvent'));
Regards
Patrick
More information about the bugs
mailing list