Update extends Handler implements Update
Interfaces, Classes and Traits
Table of Contents
- error() : array<string|int, mixed>
- Store the error msgs.
- fail() : bool
- check if the error has.
- first() : string
- Get first errror msg .
- get() : array<string|int, mixed>
- Get the error msg.
- last() : string
- Get last error msg.
- success() : string
- Get the success msg.
- update() : void
- Update the users.
- updatePassword() : void
- Check is username is exists or not.
Methods
error()
Store the error msgs.
public
error() : array<string|int, mixed>
Return values
array<string|int, mixed> —fail()
check if the error has.
public
fail() : bool
Return values
bool —first()
Get first errror msg .
public
first([ $key = null ]) : string
Parameters
Return values
string —get()
Get the error msg.
public
get([ $key = null ]) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed> —last()
Get last error msg.
public
last([ $key = null ]) : string
Parameters
Return values
string —success()
Get the success msg.
public
success() : string
Return values
string —update()
Update the users.
public
update((array) $params, (int) $id) : void
Parameters
- $params : (array)
-
fields like [name => thisname]
- $id : (int)
-
id of user
Tags
Return values
void —updatePassword()
Check is username is exists or not.
public
updatePassword((mixed) $password, (mixed) $repeat, (int) $id) : void
Parameters
- $password : (mixed)
-
password of user
- $repeat : (mixed)
-
confirm password
- $id : (int)
-
id of user