Documentation

PasswordManipulation

Table of Contents

$password_len  : int
Store password default length.
generatePassword()  : string
Generate the password.
getLength()  : int
Get the password default length.
isValid()  : bool
Validate the password.
len()  : int
Get password length.
setLength()  : self
Set the password default length.
isN()  : bool
Check is the integer included in password.
isS()  : bool
Check is special character is in password.

Properties

$password_len

Store password default length.

private int $password_len = 30
Tags
since
1.0.0

Methods

generatePassword()

Generate the password.

public generatePassword([(int) $length = 30 ]) : string
Parameters
$length : (int) = 30

Password length.

Tags
since
2.9.7
Return values
string

getLength()

Get the password default length.

public getLength() : int
Tags
since
1.0.0
Return values
int

isValid()

Validate the password.

public isValid( $password) : bool
Parameters
$password :

userPassword

Tags
since
2.9.7
Return values
bool

len()

Get password length.

public len( $password) : int
Parameters
$password :

userPassword

Tags
since
2.9.7
Return values
int

setLength()

Set the password default length.

public setLength((int) $length) : self
Parameters
$length : (int)

Length of password.

Tags
since
1.0.0
Return values
self

isN()

Check is the integer included in password.

private isN( $password) : bool
Parameters
$password :

userPassword

Tags
since
2.9.7
Return values
bool

isS()

Check is special character is in password.

private isS( $password) : bool
Parameters
$password :

userPassword

Tags
since
2.9.7
Return values
bool

Search results