31         $this->
init(
'oxreviews');
 
   45         if (isset($this->oxreviews__oxuserid) && $this->oxreviews__oxuserid->value) {
 
   47             $this->oxuser__oxfname = 
new oxField($oDb->getOne(
"select oxfname from oxuser where oxid=" . $oDb->quote($this->oxreviews__oxuserid->value)));
 
   60     public function load($oxId)
 
   62         if ($blRet = parent::load($oxId)) {
 
   64             $this->oxreviews__oxcreate->setValue(
oxRegistry::get(
"oxUtilsDate")->formatDBDate($this->oxreviews__oxcreate->value));
 
   94     public function loadList($sType, $aIds, $blLoadEmpty = 
false, $iLoadInLang = null)
 
   98         $oRevs = 
oxNew(
'oxlist');
 
   99         $oRevs->init(
'oxreview');
 
  101         $sObjectIdWhere = 
'';
 
  102         if (is_array($aIds) && count($aIds)) {
 
  103             $sObjectIdWhere = 
"oxreviews.oxobjectid in ( " . implode(
", ", 
oxDb::getInstance()->quoteArray($aIds)) . 
" )";
 
  104         } elseif (is_string($aIds) && $aIds) {
 
  105             $sObjectIdWhere = 
"oxreviews.oxobjectid = " . $oDb->quote($aIds);
 
  110         $iLoadInLang = is_null($iLoadInLang) ? (int) 
oxRegistry::getLang()->getBaseLanguage() : (int) $iLoadInLang;
 
  112         $sSelect = 
"select oxreviews.* from oxreviews where oxreviews.oxtype = " . $oDb->quote($sType) . 
" and $sObjectIdWhere and oxreviews.oxlang = '$iLoadInLang'";
 
  115             $sSelect .= 
' and oxreviews.oxtext != "" ';
 
  118         if ($this->
getConfig()->getConfigParam(
'blGBModerate')) {
 
  119             $sSelect .= 
' and ( oxreviews.oxactive = "1" ';
 
  120             $sSelect .= ($oUser = $this->
getUser()) ? 
'or  oxreviews.oxuserid = ' . $oDb->quote($oUser->getId()) . 
' )' : 
')';
 
  123         $sSelect .= 
' order by oxreviews.oxcreate desc ';
 
  125         $oRevs->selectString($sSelect);
 
  128         foreach ($oRevs as $oItem) {
 
  129             $oItem->oxreviews__oxcreate->convertToFormattedDbDate();
 
  130             $oItem->oxreviews__oxtext->convertToPseudoHtml();
 
  143         return $this->oxreviews__oxtype->value;
 
  153         return $this->oxreviews__oxobjectid->value;