Summary | getLink(): build $editurl and $delurl from getViewUrl (..) |
Queue | Kronolith |
Queue Version | FRAMEWORK_3 |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | patrick.abiven (at) apitech (dot) fr |
Created | 11/06/2009 (5720 days ago) |
Due | |
Updated | 11/07/2009 (5719 days ago) |
Assigned | |
Resolved | 11/07/2009 (5719 days ago) |
Milestone | 2.3.3 |
Patch | No |
State ⇒ Resolved
Milestone ⇒ 2.3.3
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Kronolith
Summary ⇒ getLink(): build $editurl and $delurl from getViewUrl (..)
Type ⇒ Enhancement
State ⇒ New
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