src/ShopArticleReviewBundle/objects/WebModules/MTPkgShopArticleReviewCore/MTPkgShopArticleReviewCore.class.php
protected function SetDefaultFieldVars()
    {
        if ($this->global->UserDataExists(TdbShopArticleReview::INPUT_BASE_NAME)) {
            $aPostUserData = $this->global->GetuserData(TdbShopArticleReview::INPUT_BASE_NAME);
        }
        $aDefaultFieldDataList = array('comment' => '', 'author_email' => '', 'author_name' => '', 'title' => '', 'send_comment_notification' => '0', 'rating' => 1);
        if (isset($aPostUserData) && is_array($aPostUserData)) {
            foreach ($aDefaultFieldDataList as $sDefaultFieldDataKey => $aDefaultFieldDataValue) {
                if (!array_key_exists($sDefaultFieldDataKey, $aPostUserData)) {
                    $aPostUserData[$sDefaultFieldDataKey] = $aDefaultFieldDataValue;
                }
            }
            $aDefaultFieldDataList = $aPostUserData;
        }

        return $aDefaultFieldDataList;
    }
protected function SetDefaultFieldVars()
    {
        if ($this->global->UserDataExists(TdbShopArticleReview::INPUT_BASE_NAME)) {
            $aPostUserData = $this->global->GetuserData(TdbShopArticleReview::INPUT_BASE_NAME);
        }
        $aDefaultFieldDataList = array('comment' => '', 'author_email' => '', 'author_name' => '', 'title' => '', 'send_comment_notification' => '0', 'rating' => 1);
        if (isset($aPostUserData) && is_array($aPostUserData)) {
            foreach ($aDefaultFieldDataList as $sDefaultFieldDataKey => $aDefaultFieldDataValue) {
                if (!array_key_exists($sDefaultFieldDataKey, $aPostUserData)) {
                    $aPostUserData[$sDefaultFieldDataKey] = $aDefaultFieldDataValue;
                }
            }
            $aDefaultFieldDataList = $aPostUserData;
        }

        return $aDefaultFieldDataList;
    }
protected function SetDefaultFieldVars ( ) { if ( $ this -> global -> UserDataExists ( TdbShopArticleReview :: INPUT_BASE_NAME ) ) { $ aPostUserData = $ this -> global -> GetuserData ( TdbShopArticleReview :: INPUT_BASE_NAME ) ; } $ aDefaultFieldDataList = array ( 'comment' => '' , 'author_email' => '' , 'author_name' => '' , 'title' => '' , 'send_comment_notification' => '0' , 'rating' => 1 ) ; if ( isset ( $ aPostUserData ) && is_array ( $ aPostUserData ) ) { foreach ( $ aDefaultFieldDataList as $ sDefaultFieldDataKey => $ aDefaultFieldDataValue ) { if ( ! array_key_exists ( $ sDefaultFieldDataKey , $ aPostUserData ) ) { $ aPostUserData [ $ sDefaultFieldDataKey ] = $ aDefaultFieldDataValue ; } } $ aDefaultFieldDataList = $ aPostUserData ; } return $ aDefaultFieldDataList ; }
Set default form parameter with init value or post values.

@return array
Set default form parameter with init value or post values .