content_list.php

Go to the documentation of this file.
00001 <?php
00002 
00010 class Content_List extends oxAdminList
00011 {
00017     protected $_sListClass = 'oxcontent';
00018 
00024     protected $_sListType = 'oxcontentlist';
00025 
00032     public function render()
00033     {
00034         parent::render();
00035 
00036         $sFolder = oxConfig::getParameter( "folder" );
00037         $sFolder = $sFolder ? $sFolder : -1;
00038 
00039         $this->_aViewData["folder"]  = $sFolder;
00040         $this->_aViewData["afolder"] = $this->getConfig()->getConfigParam( 'aCMSfolder' );
00041         return "content_list.tpl";
00042     }
00043 
00052     protected function _prepareWhereQuery( $aWhere, $sqlFull )
00053     {
00054         $sQ = parent::_prepareWhereQuery( $aWhere, $sqlFull );
00055         $sFolder = oxConfig::getParameter( 'folder' );
00056         //searchong for empty oxfolder fields
00057         if ( $sFolder == 'CMSFOLDER_NONE' || $sFolder == 'CMSFOLDER_NONE_RR') {
00058             $sQ .= " and oxcontents.oxfolder = '' ";
00059         } else if ( $sFolder && $sFolder != '-1' ) {
00060             $sFolder = oxDb::getDb()->quote( $sFolder );
00061             $sQ .= " and oxcontents.oxfolder = {$sFolder}";
00062         }
00063 
00064         return $sQ;
00065     }
00066 
00067 }

Generated on Thu Dec 4 12:04:55 2008 for OXID eShop CE by  doxygen 1.5.5