コード例 #1
0
ファイル: PostContentCreate.php プロジェクト: BertschiAG/JRA
 /**
  * The methods need to check addition arguments by itself.
  *
  * @return boolean
  */
 protected function _checkArguments()
 {
     $additionalArguments = $this->getAdditionalArguments();
     if (!empty($additionalArguments) && CreateContentObject::checkArguments($additionalArguments)) {
         return true;
     }
     return false;
 }
コード例 #2
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());
 }