Exemplo n.º 1
0
 /**
  * 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;
 }
Exemplo n.º 2
0
 /**
  * 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());
 }