[dev] changed ShaRe: :getShareCriteria() logic

Duck duck at obala.net
Thu Mar 10 10:19:47 PST 2005


--Boundary-00=_D/IMC/3ROvJ2pvo
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


Changes the owner attribute of getShareCriteria, listShares and countShares 
methods to allow passing an array of attributes values/keys. Passing a string 
will make it run as before (assuming is an share owner username). Otherwise 
will pass trough array key/values and restrict  the selection of shares to 
attributes corresponding shares.

For example, as in the attached Ansel testing script, we can direct 
select/count galleries in a particular category. Of course I will implement 
browsing galleries grouped by categories if this will be committed.

Duck

--Boundary-00=_D/IMC/3ROvJ2pvo
Content-Disposition: attachment;
	filename="Share.diff"
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

A non-text attachment was scrubbed...
Name: Share.diff
Type: text/x-diff
Size: 6336 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20050310/377a047c/Share.bin

--Boundary-00=_D/IMC/3ROvJ2pvo
Content-Disposition: attachment;
	filename="test.php"
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

A non-text attachment was scrubbed...
Name: test.php
Type: application/x-php
Size: 1016 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20050310/377a047c/test.bin

--Boundary-00=_D/IMC/3ROvJ2pvo--


More information about the dev mailing list