Summary | hasSubGallery |
Queue | Ansel |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | mrubinsk (at) horde (dot) org |
Requester | duck (at) obala (dot) net |
Created | 03/19/2008 (6314 days ago) |
Due | |
Updated | 03/19/2008 (6314 days ago) |
Assigned | 03/19/2008 (6314 days ago) |
Resolved | 03/19/2008 (6314 days ago) |
Milestone | |
Patch | No |
more closely. Plus, the way I had originally named these type of
methods was with "children" so I wanted to kind of stay close to that
semantically :)
singular or plural is true, not just the plural. :)
State ⇒ Resolved
Thanks!
State ⇒ Assigned
I reversed the order of the files in my compare tool :)
Sorry - and thanks!
State ⇒ Feedback
$gallery->hasSubGallery() in places like in the various *stack.php
classes? Wouldn't that prevent an unnecessary call to
Ansel_Storage::listGalleries() with it's larger SELECT along with
avoiding the (admittedly small amount) of extra code in that if block?
State ⇒ New
New Attachment: ansel-sub.diff
Patch ⇒ No
Milestone ⇒
Queue ⇒ Ansel
Summary ⇒ hasSubGallery
Type ⇒ Enhancement
Priority ⇒ 1. Low
page and hasSubGalleries does the same, but has cashed values.
- We don't need to cache the hasChildren data in Shares as this data
is retreived only when a gallery is removed and in the update script.
- Some more places to get check of sub-galleries.