From e2794a3e8ff35c032916a27017dd20ceb8c3fa9d Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Mon, 20 Nov 2006 15:17:24 +0000 Subject: complete docs --- Pigeonholes.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Pigeonholes.php') diff --git a/Pigeonholes.php b/Pigeonholes.php index 9489a15..55497af 100644 --- a/Pigeonholes.php +++ b/Pigeonholes.php @@ -1,6 +1,6 @@ - * @version $Revision: 1.75 $ + * @version $Revision: 1.76 $ * @package pigeonholes */ @@ -353,8 +353,8 @@ class Pigeonholes extends LibertyContent { * @param $pListHash[offset] number of results data is offset by * @param $pListHash[title] pigeonhole name * @param $pListHash[parent_id] pigeonhole parent_id, optional - * @param $pListHash[root_structure_id] - * @param $pListHash[load_only_root] + * @param $pListHash[root_structure_id] only load the pigoenhole this root_structure_id is part of + * @param $pListHash[load_only_root] only load top most items * @param $pListHash[parent_content_id] all the sons of the pigeonhole parent content_id , optional * @param $pListHash[load_also_root] if parent_content_id is set load also the father, optionnal * @return array of pigeonholes in 'data' and count of pigeonholes in 'cant' @@ -384,19 +384,19 @@ class Pigeonholes extends LibertyContent { $bindVars[] = '%'.strtoupper( $pListHash['find'] ).'%'; } - if ( !empty( $pListHash['title'] ) ) { + if( !empty( $pListHash['title'] ) ) { $where .= empty( $where ) ? ' WHERE ' : ' AND '; $where .= ' lc.`title` = ?'; $bindVars[] = $pListHash['title']; } - if ( isset( $pListHash['parent_id'] ) ) { + if( isset( $pListHash['parent_id'] ) ) { $where .= empty( $where ) ? ' WHERE ' : ' AND '; $where .= ' ls.`parent_id` = ? '; $bindVars[] = $pListHash['parent_id']; } - if ( !empty( $pListHash['parent_content_id'] ) ) { + if( !empty( $pListHash['parent_content_id'] ) ) { $join .= 'INNER JOIN `'.BIT_DB_PREFIX.'liberty_structures` lsf ON (ls.`parent_id` = lsf.`structure_id`'; if ( !empty( $pListHash['load_also_root'] ) ) { $join .= ' OR ls.`structure_id`= lsf.`structure_id`'; -- cgit v1.3