src/ShopArticleReviewBundle/objects/WebModules/MTPkgShopArticleReviewCore/MTPkgShopArticleReviewCore.class.php
protected function GetCommentTypeId()
    {
        if (false === $this->sPkgCommentTypeId) {
            $sQuery = "SELECT * FROM `pkg_comment_type` WHERE `pkg_comment_type`.`class_name` = 'TPkgCommentTypePkgShopArticleReview'";
            $oRes = MySqlLegacySupport::getInstance()->query($sQuery);
            if (MySqlLegacySupport::getInstance()->num_rows($oRes) > 0) {
                $aRow = MySqlLegacySupport::getInstance()->fetch_assoc($oRes);
                $this->sPkgCommentTypeId = $aRow['id'];
            } else {
                $this->sPkgCommentTypeId = '';
            }
        }

        return $this->sPkgCommentTypeId;
    }
protected function GetCommentTypeId()
    {
        if (false === $this->sPkgCommentTypeId) {
            $sQuery = "SELECT * FROM `pkg_comment_type` WHERE `pkg_comment_type`.`class_name` = 'TPkgCommentTypePkgShopArticleReview'";
            $oRes = MySqlLegacySupport::getInstance()->query($sQuery);
            if (MySqlLegacySupport::getInstance()->num_rows($oRes) > 0) {
                $aRow = MySqlLegacySupport::getInstance()->fetch_assoc($oRes);
                $this->sPkgCommentTypeId = $aRow['id'];
            } else {
                $this->sPkgCommentTypeId = '';
            }
        }

        return $this->sPkgCommentTypeId;
    }
protected function GetCommentTypeId ( ) { if ( false === $ this -> sPkgCommentTypeId ) { $ sQuery = "SELECT * FROM `pkg_comment_type` WHERE `pkg_comment_type`.`class_name` = 'TPkgCommentTypePkgShopArticleReview'" ; $ oRes = MySqlLegacySupport :: getInstance ( ) -> query ( $ sQuery ) ; if ( MySqlLegacySupport :: getInstance ( ) -> num_rows ( $ oRes ) > 0 ) { $ aRow = MySqlLegacySupport :: getInstance ( ) -> fetch_assoc ( $ oRes ) ; $ this -> sPkgCommentTypeId = $ aRow [ 'id' ] ; } else { $ this -> sPkgCommentTypeId = '' ; } } return $ this -> sPkgCommentTypeId ; }
Get the comment type for article reviews.

@return TdbPkgCommentType
Get the comment type for article reviews .