diff options
| author | Nick Palmer <nick@sluggardy.net> | 2007-02-16 19:05:55 +0000 |
|---|---|---|
| committer | Nick Palmer <nick@sluggardy.net> | 2007-02-16 19:05:55 +0000 |
| commit | f448bae14bdb7c19ed0c3a9bd2fd3e2c1b9d9e75 (patch) | |
| tree | e50281cea3fd829b8f5e51072a345dc426238d76 /Pigeonholes.php | |
| parent | 771b536a135829d5359fe373e8ea6adb31b19555 (diff) | |
| download | pigeonholes-f448bae14bdb7c19ed0c3a9bd2fd3e2c1b9d9e75.tar.gz pigeonholes-f448bae14bdb7c19ed0c3a9bd2fd3e2c1b9d9e75.tar.bz2 pigeonholes-f448bae14bdb7c19ed0c3a9bd2fd3e2c1b9d9e75.zip | |
Added ability to restrict results of getList to a single content type when loading extras.
Diffstat (limited to 'Pigeonholes.php')
| -rw-r--r-- | Pigeonholes.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Pigeonholes.php b/Pigeonholes.php index 33974af..cb808e8 100644 --- a/Pigeonholes.php +++ b/Pigeonholes.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.78 2007/01/06 09:46:19 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.79 2007/02/16 19:05:55 nickpalmer Exp $ * * +----------------------------------------------------------------------+ * | Copyright ( c ) 2004, bitweaver.org @@ -17,7 +17,7 @@ * Pigeonholes class * * @author xing <xing@synapse.plus.com> - * @version $Revision: 1.78 $ + * @version $Revision: 1.79 $ * @package pigeonholes */ @@ -437,7 +437,12 @@ class Pigeonholes extends LibertyContent { if( !empty( $pListHash['force_extras'] ) || ( !empty( $pListHash['load_extras'] ) && $aux['structure_id'] == @$pListHash['structure_id'] ) ) { $aux['path'] = $this->getPigeonholePath( $aux['structure_id'] ); $aux['display_path'] = Pigeonholes::getDisplayPath( $aux['path'] ); - $aux['members'] = $this->getMemberList( array( 'content_id' => $aux['content_id'] ) ); + if (empty($pListHash['content_type_guid'])) { + $aux['members'] = $this->getMemberList( array( 'content_id' => $aux['content_id']) ); + } + else { + $aux['members'] = $this->getMemberList( array( 'content_id' => $aux['content_id'], 'content_type_guid' => $pListHash['content_type_guid']) ); + } $aux['members_count'] = count( $aux['members'] ); if( $gBitSystem->getConfig( 'pigeonholes_list_style' ) == 'table' ) { $this->alphabetiseMembers( $aux['members'] ); |
