コード例 #1
0
ファイル: APIFacade.php プロジェクト: BertschiAG/JRA
 /**
  * Create an content from an create content object.
  *
  * @param CreateContentObject $pContent The object with all information in it to create a content.
  * @return MsgResponseObject Returns the response in an functionality providing object.
  */
 public function createContent(CreateContentObject $pContent)
 {
     $params = $pContent->getRequestParams();
     $contentCommand = $this->_internalFactory->getCommandFactory()->getContentCommand($this->_config, ContentRoutes::POST_CONTENT_CREATE, $params);
     $contentCommand->run();
     return new MsgResponseObject($contentCommand->getContents());
 }