private function updateClassContent($type, $uid, $data)
    {
        $this->granted('EDIT', $content = $this->getClassContentByTypeAndUid($type, $uid, true, true));
        $this->getClassContentManager()->update($content, $data);

        return $content;
    }
private function updateClassContent($type, $uid, $data)
    {
        $this->granted('EDIT', $content = $this->getClassContentByTypeAndUid($type, $uid, true, true));
        $this->getClassContentManager()->update($content, $data);

        return $content;
    }
private function updateClassContent ( $ type , $ uid , $ data ) { $ this -> granted ( 'EDIT' , $ content = $ this -> getClassContentByTypeAndUid ( $ type , $ uid , true , true ) ) ; $ this -> getClassContentManager ( ) -> update ( $ content , $ data ) ; return $ content ; }
Updates and returns content and its draft according to provided data.

@param string $type
@param string $uid
@param array  $data

@return AbstractClassContent
Updates and returns content and its draft according to provided data .