private function createContentType()
    {
        $repository = $this->getRepository();
        $contentTypeService = $repository->getContentTypeService();
        $name = $this->fieldConstructionObject[ 'fieldType' ]->identifier;
        $name = uniqid($name . '#', true);
        $name = str_replace('.', '', $name);
        $identifier = strtolower( $name );
        $contentTypeCreateStruct = $contentTypeService->newContentTypeCreateStruct( $identifier );
        $contentTypeCreateStruct->mainLanguageCode = self::DEFAULT_LANGUAGE;
        $contentTypeCreateStruct->names = array( self::DEFAULT_LANGUAGE => $name );
        $contentTypeCreateStruct->nameSchema = $name;
        $this->fieldConstructionObject[ 'contentType' ] = $contentTypeCreateStruct;
        $this->fieldConstructionObject[ 'objectState' ] = self::CONTENT_TYPE_CREATED;
    }
private function createContentType()
    {
        $repository = $this->getRepository();
        $contentTypeService = $repository->getContentTypeService();
        $name = $this->fieldConstructionObject[ 'fieldType' ]->identifier;
        $name = uniqid($name . '#', true);
        $name = str_replace('.', '', $name);
        $identifier = strtolower( $name );
        $contentTypeCreateStruct = $contentTypeService->newContentTypeCreateStruct( $identifier );
        $contentTypeCreateStruct->mainLanguageCode = self::DEFAULT_LANGUAGE;
        $contentTypeCreateStruct->names = array( self::DEFAULT_LANGUAGE => $name );
        $contentTypeCreateStruct->nameSchema = $name;
        $this->fieldConstructionObject[ 'contentType' ] = $contentTypeCreateStruct;
        $this->fieldConstructionObject[ 'objectState' ] = self::CONTENT_TYPE_CREATED;
    }
private function createContentType ( ) { $ repository = $ this -> getRepository ( ) ; $ contentTypeService = $ repository -> getContentTypeService ( ) ; $ name = $ this -> fieldConstructionObject [ 'fieldType' ] -> identifier ; $ name = uniqid ( $ name . '#' , true ) ; $ name = str_replace ( '.' , '' , $ name ) ; $ identifier = strtolower ( $ name ) ; $ contentTypeCreateStruct = $ contentTypeService -> newContentTypeCreateStruct ( $ identifier ) ; $ contentTypeCreateStruct -> mainLanguageCode = self :: DEFAULT_LANGUAGE ; $ contentTypeCreateStruct -> names = array ( self :: DEFAULT_LANGUAGE => $ name ) ; $ contentTypeCreateStruct -> nameSchema = $ name ; $ this -> fieldConstructionObject [ 'contentType' ] = $ contentTypeCreateStruct ; $ this -> fieldConstructionObject [ 'objectState' ] = self :: CONTENT_TYPE_CREATED ; }
Creates an instance of a contenttype and stores it for later publishing
Creates an instance of a contenttype and stores it for later publishing