public function postParseUnitAction($uniqueId, $success = true)
    {
        // Setting parsed message flag to SEEN
        $result = new ParseResult();
        try {
            if ($success) {
                $this->storage->setFlags($uniqueId, array(ZendStorage::FLAG_SEEN));
            } else {
                $this->storage->setFlags($uniqueId, array(ZendStorage::FLAG_RECENT));
            }
        } catch (\Exception $e) {
            $result->setResult(false);
            $result->setMessage($e->getMessage());
            $result->setCode($e->getCode());
        }

        // Returning the result object
        return $result;
    }
public function postParseUnitAction($uniqueId, $success = true)
    {
        // Setting parsed message flag to SEEN
        $result = new ParseResult();
        try {
            if ($success) {
                $this->storage->setFlags($uniqueId, array(ZendStorage::FLAG_SEEN));
            } else {
                $this->storage->setFlags($uniqueId, array(ZendStorage::FLAG_RECENT));
            }
        } catch (\Exception $e) {
            $result->setResult(false);
            $result->setMessage($e->getMessage());
            $result->setCode($e->getCode());
        }

        // Returning the result object
        return $result;
    }
public function postParseUnitAction ( $ uniqueId , $ success = true ) { // Setting parsed message flag to SEEN $ result = new ParseResult ( ) ; try { if ( $ success ) { $ this -> storage -> setFlags ( $ uniqueId , array ( ZendStorage :: FLAG_SEEN ) ) ; } else { $ this -> storage -> setFlags ( $ uniqueId , array ( ZendStorage :: FLAG_RECENT ) ) ; } } catch ( \ Exception $ e ) { $ result -> setResult ( false ) ; $ result -> setMessage ( $ e -> getMessage ( ) ) ; $ result -> setCode ( $ e -> getCode ( ) ) ; } // Returning the result object return $ result ; }
Action to be run after a single set of data retrieved from the remote source has been parsed.

@param string $uniqueId Unique id of the single set to be treated (e.g. unique id of a message in a mail box)
@param bool   $success  True if the data of a given resource have been downloaded and used correctly; false otherwise.

@return \Msl\ResourceProxy\Source\Parse\ParseResult|void
Action to be run after a single set of data retrieved from the remote source has been parsed .