6.0.0-beta1
7/5/25

[#8683] getLink(): build $editurl and $delurl from getViewUrl (..)
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

History
11/07/2009 02:36:41 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
Milestone ⇒ 2.3.3
 
11/06/2009 02:46:38 PM patrick (dot) abiven (at) apitech (dot) fr Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Kronolith
Summary ⇒ getLink(): build $editurl and $delurl from getViewUrl (..)
Type ⇒ Enhancement
State ⇒ New
Reply to this comment
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



Saved Queries