public function add(ContentTypeCreationInformation $information)
    {
        $contentType = new ContentType($this->getContext());
        $qry = new InvokePostMethodQuery($this->getResourcePath(),null,null,$information);
        $this->getContext()->addQuery($qry,$contentType);
        $this->addChild($contentType);
        return $contentType;
    }
public function add(ContentTypeCreationInformation $information)
    {
        $contentType = new ContentType($this->getContext());
        $qry = new InvokePostMethodQuery($this->getResourcePath(),null,null,$information);
        $this->getContext()->addQuery($qry,$contentType);
        $this->addChild($contentType);
        return $contentType;
    }
public function add ( ContentTypeCreationInformation $ information ) { $ contentType = new ContentType ( $ this -> getContext ( ) ) ; $ qry = new InvokePostMethodQuery ( $ this -> getResourcePath ( ) , null , null , $ information ) ; $ this -> getContext ( ) -> addQuery ( $ qry , $ contentType ) ; $ this -> addChild ( $ contentType ) ; return $ contentType ; }
Creates a ContentType resource
@param ContentTypeCreationInformation $information
@return ContentType
Creates a ContentType resource