models/classes/ExtendedStateService.php
public function setItemFlag($testSessionId, $itemRef, $flag)
    {
        $extendedState = $this->getExtendedState($testSessionId);
        $extendedState->setItemFlag($itemRef, $flag);
        $extendedState->save();
    }
public function setItemFlag($testSessionId, $itemRef, $flag)
    {
        $extendedState = $this->getExtendedState($testSessionId);
        $extendedState->setItemFlag($itemRef, $flag);
        $extendedState->save();
    }
Set the marked for review state of an item
@param string $testSessionId
@param string $itemRef
@param boolean $flag
@throws \common_Exception