PHP Class Voce\Thermal\v1\Controllers\Users

Show file Open project: voceconnect/thermal-api

Public Methods

Method Description
convert_request ( array $request_args ) : array Filter and validate the parameters that will be passed to the model.
find ( $app )
findById ( $app, $id )
format ( WP_User &$user, string $state = 'read' )
model ( )

Private Methods

Method Description
get_list_users_cap ( )

Method Details

convert_request() public static method

Filter and validate the parameters that will be passed to the model.
public static convert_request ( array $request_args ) : array
$request_args array
return array

find() public static method

public static find ( $app )

findById() public static method

public static findById ( $app, $id )

format() public static method

public static format ( WP_User &$user, string $state = 'read' )
$user WP_User
$state string State of CRUD to render for, options include 'read', new', 'edit'

model() public static method

public static model ( )