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