summaryrefslogtreecommitdiff
path: root/Pigeonholes.php
diff options
context:
space:
mode:
authorSylvie Greverend <sylvieg@users.sourceforge.net>2006-04-11 14:47:35 +0000
committerSylvie Greverend <sylvieg@users.sourceforge.net>2006-04-11 14:47:35 +0000
commit8c86d7654c4526b2c9528dd68bcda51e52b45394 (patch)
treeb605c9b9a931a2431fe65b61cc70a3f523ee26f0 /Pigeonholes.php
parent7bac05e60af272c8a945fa1e46eef69e19af9c17 (diff)
downloadpigeonholes-8c86d7654c4526b2c9528dd68bcda51e52b45394.tar.gz
pigeonholes-8c86d7654c4526b2c9528dd68bcda51e52b45394.tar.bz2
pigeonholes-8c86d7654c4526b2c9528dd68bcda51e52b45394.zip
getList with filter on the pigeonhole name/title
Diffstat (limited to 'Pigeonholes.php')
-rw-r--r--Pigeonholes.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/Pigeonholes.php b/Pigeonholes.php
index b35fc11..7721038 100644
--- a/Pigeonholes.php
+++ b/Pigeonholes.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.50 2006/04/11 13:07:41 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.51 2006/04/11 14:47:35 sylvieg Exp $
*
* +----------------------------------------------------------------------+
* | Copyright ( c ) 2004, bitweaver.org
@@ -17,7 +17,7 @@
* Pigeonholes class
*
* @author xing <xing@synapse.plus.com>
- * @version $Revision: 1.50 $
+ * @version $Revision: 1.51 $
* @package pigeonholes
*/
@@ -317,6 +317,7 @@ class Pigeonholes extends LibertyAttachable {
* @param $pListHash[find] search for a pigeonhole title - case insensitive
* @param $pListHash[max_rows] maximum number of rows to return
* @param $pListHash[offset] number of results data is offset by
+ * @param $pListHash[title] pigeonhole name
* @return array of pigeonholes in 'data' and count of pigeonholes in 'cant'
* @access public
**/
@@ -344,6 +345,12 @@ class Pigeonholes extends LibertyAttachable {
$bindVars[] = '%'.strtoupper( $pListHash['find'] ).'%';
}
+ if ( !empty( $pListHash['title'] ) ) {
+ $where .= empty( $where ) ? ' WHERE ' : ' AND ';
+ $where .= ' lc.`title` = ?';
+ $bindVars[] = $pListHash['title'];
+ }
+
if( !empty( $pListHash['sort_mode'] ) ) {
$order .= " ORDER BY ".$this->mDb->convert_sortmode( $pListHash['sort_mode'] )." ";
} else {