adminguestbook_list.php

Go to the documentation of this file.
00001 <?php
00002 
00008 class AdminGuestbook_List extends oxAdminList
00009 {
00014     protected $_sThisTemplate = 'adminguestbook_list.tpl';
00015 
00021     protected $_sListClass = 'oxgbentry';
00022 
00028     protected $_sDefSort = 'oxgbentries.oxcreate';
00029 
00035     protected $_blDesc = true;
00036 
00043     public function render()
00044     {
00045         parent::render();
00046 
00047         if ( $this->_oList->count() ) {
00048 
00049             $oDb = oxDb::getDb();
00050             foreach ( $this->_oList as $oEntry ) {
00051                 // preloading user info ..
00052                 if ( isset( $oEntry->oxgbentries__oxuserid ) && $oEntry->oxgbentries__oxuserid->value ) {
00053                     $oEntry->oxuser__oxlname = new oxField( $oDb->getOne( "select oxlname from oxuser where oxid=".$oDb->quote( $oEntry->oxgbentries__oxuserid->value ) ));
00054                 }
00055             }
00056         }
00057 
00058         $this->_aViewData["mylist"] = $this->_oList;
00059         return $this->_sThisTemplate;
00060     }
00061 
00062 }

Generated on Tue Aug 18 09:21:04 2009 for OXID eShop CE by  doxygen 1.5.5