function store( $fieldFilters = null )
    {
        if (
            $this->attribute( 'user_id' ) == eZUser::currentUserID()
            && eZINI::instance()->variable( 'eZStarRating', 'UseUserSession' ) === 'enabled'
        )
        {
            // Store attribute id in session to avoid multiple ratings by same user even if he logs out (gets new session key)
            $http = eZHTTPTool::instance();
            $attributeIdList = $this->attribute( 'contentobject_attribute_id' );
            if ( $http->hasSessionVariable('ezsrRatedAttributeIdList') )
            {
                $attributeIdList = $http->sessionVariable('ezsrRatedAttributeIdList') . ',' . $attributeIdList;
            }
            $http->setSessionVariable('ezsrRatedAttributeIdList', $attributeIdList );
        }
        eZPersistentObject::store( $fieldFilters );
    }
function store( $fieldFilters = null )
    {
        if (
            $this->attribute( 'user_id' ) == eZUser::currentUserID()
            && eZINI::instance()->variable( 'eZStarRating', 'UseUserSession' ) === 'enabled'
        )
        {
            // Store attribute id in session to avoid multiple ratings by same user even if he logs out (gets new session key)
            $http = eZHTTPTool::instance();
            $attributeIdList = $this->attribute( 'contentobject_attribute_id' );
            if ( $http->hasSessionVariable('ezsrRatedAttributeIdList') )
            {
                $attributeIdList = $http->sessionVariable('ezsrRatedAttributeIdList') . ',' . $attributeIdList;
            }
            $http->setSessionVariable('ezsrRatedAttributeIdList', $attributeIdList );
        }
        eZPersistentObject::store( $fieldFilters );
    }
function store ( $ fieldFilters = null ) { if ( $ this -> attribute ( 'user_id' ) == eZUser :: currentUserID ( ) && eZINI :: instance ( ) -> variable ( 'eZStarRating' , 'UseUserSession' ) === 'enabled' ) { // Store attribute id in session to avoid multiple ratings by same user even if he logs out (gets new session key) $ http = eZHTTPTool :: instance ( ) ; $ attributeIdList = $ this -> attribute ( 'contentobject_attribute_id' ) ; if ( $ http -> hasSessionVariable ( 'ezsrRatedAttributeIdList' ) ) { $ attributeIdList = $ http -> sessionVariable ( 'ezsrRatedAttributeIdList' ) . ',' . $ attributeIdList ; } $ http -> setSessionVariable ( 'ezsrRatedAttributeIdList' , $ attributeIdList ) ; } eZPersistentObject :: store ( $ fieldFilters ) ; }
Override store function to add some custom logic for setting create time and
store contentobject_attribute_id in session to avoid several ratings from same user.

@param array $fieldFilters
Override store function to add some custom logic for setting create time and store contentobject_attribute_id in session to avoid several ratings from same user .