protected function getDocumentForUpdate($subjectOfChange, $contextAlias, Array $cbds)
    {
        foreach($cbds as $c)
        {
            if($c[_ID_KEY]==array(_ID_RESOURCE=>$this->labeller->uri_to_alias($subjectOfChange),_ID_CONTEXT=>$contextAlias))
            {
                return $c;
                break;
            }
        }

        return null;
    }
protected function getDocumentForUpdate($subjectOfChange, $contextAlias, Array $cbds)
    {
        foreach($cbds as $c)
        {
            if($c[_ID_KEY]==array(_ID_RESOURCE=>$this->labeller->uri_to_alias($subjectOfChange),_ID_CONTEXT=>$contextAlias))
            {
                return $c;
                break;
            }
        }

        return null;
    }
protected function getDocumentForUpdate ( $ subjectOfChange , $ contextAlias , Array $ cbds ) { foreach ( $ cbds as $ c ) { if ( $ c [ _ID_KEY ] == array ( _ID_RESOURCE => $ this -> labeller -> uri_to_alias ( $ subjectOfChange ) , _ID_CONTEXT => $ contextAlias ) ) { return $ c ; break ; } } return null ; }
Given a set of CBD's return the CBD that matches the Subject of Change
@param string $subjectOfChange
@param string $contextAlias
@param array $cbds
@return null | array the document from the collection of $cbds that matches the subject of change
Given a set of CBD s return the CBD that matches the Subject of Change