oxwreview.php

Go to the documentation of this file.
00001 <?php
00002 
00006 class oxwReview extends oxWidget
00007 {
00014     protected $_aComponentNames = array( 'oxcmp_user' => 1 );
00015 
00020     protected $_sThisTemplate = 'widget/reviews/reviews.tpl';
00021 
00022 
00029     public function render()
00030     {
00031         parent::render();
00032         return $this->_sThisTemplate;
00033     }
00034 
00040     public function getReviewType()
00041     {
00042         return strtolower( $this->getViewParameter( 'type' ) );
00043     }
00044 
00050     public function getArticleId()
00051     {
00052         return $this->getViewParameter( 'aid' );
00053     }
00054 
00060     public function getArticleNId()
00061     {
00062         return $this->getViewParameter( 'anid' );
00063     }
00064 
00070     public function getRecommListId()
00071     {
00072         return $this->getViewParameter( 'recommid' );
00073     }
00074 
00080     public function canRate()
00081     {
00082         return $this->getViewParameter( 'canrate' );
00083     }
00084 
00090     public function getReviewUserHash()
00091     {
00092         return $this->getViewParameter( 'reviewuserhash' );
00093     }
00094 
00100     public function getReviews()
00101     {
00102         $oReview = $this->getConfig()->getTopActiveView();
00103         return $oReview->getReviews();
00104     }
00105 }