diff options
| author | spiderr <spiderr@bitweaver.org> | 2021-02-11 18:19:05 -0500 |
|---|---|---|
| committer | spiderr <spiderr@bitweaver.org> | 2021-02-11 18:19:05 -0500 |
| commit | fc66432d43610589602b3c87422fc95aca9e0de6 (patch) | |
| tree | e8dfa5bd124dbfd4419480262ccd6781d552cf4e /includes/classes | |
| parent | f9eb4709c12a609cef7359e1f5005e5e16945969 (diff) | |
| download | liberty-fc66432d43610589602b3c87422fc95aca9e0de6.tar.gz liberty-fc66432d43610589602b3c87422fc95aca9e0de6.tar.bz2 liberty-fc66432d43610589602b3c87422fc95aca9e0de6.zip | |
add pListHash['join_sql'] to getContentList
Diffstat (limited to 'includes/classes')
| -rw-r--r-- | includes/classes/LibertyContent.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/classes/LibertyContent.php b/includes/classes/LibertyContent.php index 4c148df..4fe00b2 100644 --- a/includes/classes/LibertyContent.php +++ b/includes/classes/LibertyContent.php @@ -2522,6 +2522,7 @@ class LibertyContent extends LibertyBase implements BitCacheable { $hashSql = array('select'=>array(), 'join'=>array(),'where'=>array() ); $hashBindVars = array('select'=>array(), 'where'=>array(), 'join'=>array()); + if( !empty( $pListHash['content_type_guid'] ) && is_array( $pListHash['content_type_guid'] )) { foreach( $pListHash['content_type_guid'] as $contentTypeGuid ) { $this->getFilter( $contentTypeGuid, $hashSql, $hashBindVars, $pListHash ); @@ -2536,6 +2537,10 @@ class LibertyContent extends LibertyBase implements BitCacheable { $selectSql = ''; } $joinSql = implode( ' ', $hashSql['join'] ); + if( !empty( $pListHash['join_sql'] ) ) { + $joinSql .= $pListHash['join_sql']; + } + $whereSql = ''; if( empty( $hashBindVars['join'] )) { $bindVars = array(); @@ -2773,7 +2778,6 @@ class LibertyContent extends LibertyBase implements BitCacheable { $pListHash['offset'] = $pListHash['max_records'] * $lastPageNumber; } - if( !empty( $hashBindVars['select'] ) ) { $bindVars = array_merge($hashBindVars['select'], $bindVars); } |
