Created
March 15, 2012 09:43
-
-
Save Allisone/2043300 to your computer and use it in GitHub Desktop.
What works and what doesn't
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* save the registration | |
* @param string $email email | |
* @param string $pw password | |
* @param string $uname username | |
* @FLOW3\Validate(argumentName="email", type="EmailAddress") | |
* @FLOW3\Validate(argumentName="email", type="NotEmpty") | |
* @FLOW3\Validate(argumentName="pw", type="Me\My\Validation\Validator\PasswordValidator", options={ "minimum"=1, "maximum"=255 }) | |
*/ | |
public function createAction($email = '', $pw = '', $uname = '') {...} | |
// ===> options empty | |
/** | |
* save the registration | |
* @param string $email email | |
* @param string $pw password | |
* @param string $uname username | |
* @FLOW3\Validate(argumentName="email", type="EmailAddress") | |
* @FLOW3\Validate(argumentName="email", type="NotEmpty") | |
* @FLOW3\Validate(argumentName="pw", type="StringLength", options={ "minimum"=1, "maximum"=255 }) | |
*/ | |
public function createAction($email = '', $pw = '', $uname = '') {...} | |
// ===> options set |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment