PHP 클래스 RegistrationForm, pkp-lib

RegistrationForm is the data structure for keeping user registration form data. It is used by the 'registration' action of 'UserController'.
상속: extends User
파일 보기 프로젝트 열기: pkp/pkp-lib 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$captchaEnabled whether or not captcha is enabled for this form
$defaultAuth default authentication source, if specified
$existingUser user is already registered with another context

공개 메소드들

메소드 설명
__construct ( $site ) Constructor.
_setMailFrom ( $request, MailTemplate $mail ) Set mail from address
execute ( $request ) : integer | null Register a new user.
fetch ( $request, $template = null, $display = false )
initData ( $request )
readInputData ( ) Assign form data to user-submitted data.
validate ( ) Validate the form

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( $site )

_setMailFrom() 공개 메소드

Set mail from address
public _setMailFrom ( $request, MailTemplate $mail )
$request PKPRequest
$mail MailTemplate

execute() 공개 메소드

Register a new user.
public execute ( $request ) : integer | null
$request PKPRequest
리턴 integer | null User ID, or false on failure

fetch() 공개 메소드

public fetch ( $request, $template = null, $display = false )

initData() 공개 메소드

public initData ( $request )
$request Request

readInputData() 공개 메소드

Assign form data to user-submitted data.
public readInputData ( )

validate() 공개 메소드

Validate the form
public validate ( )

프로퍼티 상세

$captchaEnabled 공개적으로 프로퍼티

whether or not captcha is enabled for this form
public $captchaEnabled

$defaultAuth 공개적으로 프로퍼티

default authentication source, if specified
public $defaultAuth

$existingUser 공개적으로 프로퍼티

user is already registered with another context
public $existingUser