Class User_RegisterAgreeEditForm
-
XCube_ActionForm
-
User_AbstractUserEditForm
-
User_RegisterEditForm
-
User_RegisterAgreeEditForm
Brief:
[Abstract] Fetches input values, valudates fetched values and passes them to
some object. This class fetches the input value from the request value through
the current context object and validate those values. It separates fetching
& validating from your main logic. Such classes is important in web program.
Plus, this action form has features of one time token. It seems one kinds of
validations. The token is registered in templates. This is suggestion of a
simple action form. We do not force a module developer to use this. You can
learn more full-scale action forms from JAVA and .NET and other PHP. And, you
must use auto-generating tool when you need to ActionForm that is sub-class of
this class. XCube_ActionForm contains the one-time token feature for CSRF. But,
if the current HTTP request is from the web service, the token isn't needed.
Therefore, this class decides whether to use the token with the information of
the context.
Public
Remarks:
This class is diable for XCube_Service, because the class uses SESSION directly.
XCube_ActionForm will be changed in the near feature. Developers need to pay
attention to spec change.
Located at html/modules/user/forms/UserRegisterEditForm.class.php
Methods summary
public
|
#
prepare( )
Brief
[Abstract] Set up form properties and field properties.
Public
Overrides
|
Methods inherited from XCube_ActionForm
XCube_ActionForm(),
_validateToken(),
addErrorMessage(),
fetch(),
get(),
getErrorMessages(),
getFormProperties(),
getToken(),
getTokenErrorMessage(),
hasError(),
set(),
validate()
|