public function newUserCreateStruct($login, $email, $password, $mainLanguageCode, $contentType = null)
    {
        if ($contentType === null) {
            $contentType = $this->repository->getContentTypeService()->loadContentType(
                $this->settings['userClassID']
            );
        }

        return new UserCreateStruct(
            array(
                'contentType' => $contentType,
                'mainLanguageCode' => $mainLanguageCode,
                'login' => $login,
                'email' => $email,
                'password' => $password,
                'enabled' => true,
                'fields' => array(),
            )
        );
    }
public function newUserCreateStruct($login, $email, $password, $mainLanguageCode, $contentType = null)
    {
        if ($contentType === null) {
            $contentType = $this->repository->getContentTypeService()->loadContentType(
                $this->settings['userClassID']
            );
        }

        return new UserCreateStruct(
            array(
                'contentType' => $contentType,
                'mainLanguageCode' => $mainLanguageCode,
                'login' => $login,
                'email' => $email,
                'password' => $password,
                'enabled' => true,
                'fields' => array(),
            )
        );
    }
public function newUserCreateStruct ( $ login , $ email , $ password , $ mainLanguageCode , $ contentType = null ) { if ( $ contentType === null ) { $ contentType = $ this -> repository -> getContentTypeService ( ) -> loadContentType ( $ this -> settings [ 'userClassID' ] ) ; } return new UserCreateStruct ( array ( 'contentType' => $ contentType , 'mainLanguageCode' => $ mainLanguageCode , 'login' => $ login , 'email' => $ email , 'password' => $ password , 'enabled' => true , 'fields' => array ( ) , ) ) ; }
Instantiate a user create class.

@param string $login the login of the new user
@param string $email the email of the new user
@param string $password the plain password of the new user
@param string $mainLanguageCode the main language for the underlying content object
@param \eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType 5.x the content type for the underlying content object. In 4.x it is ignored and taken from the configuration

@return \eZ\Publish\API\Repository\Values\User\UserCreateStruct
Instantiate a user create class .