MembershipCheckoutComponent::__construct PHP Method

__construct() public method

public __construct ( $confirmed = true, $validator = null )
    public function __construct($confirmed = true, $validator = null)
    {
        $this->confirmed = $confirmed;
        if (!$validator) {
            $this->passwordvalidator = Member::password_validator();
            if (!$this->passwordvalidator) {
                $this->passwordvalidator = PasswordValidator::create();
                $this->passwordvalidator->minLength(5);
                $this->passwordvalidator->characterStrength(2, array("lowercase", "uppercase", "digits", "punctuation"));
            }
        }
    }

Usage Example

 public function __construct($confirmed = true, $validator = null, $checked = true)
 {
     $this->checked = $checked;
     parent::__construct($confirmed, $validator);
 }