PHP Class Zendesk\API\Resources\Core\Locales

Inheritance: extends Zendesk\API\Resources\ResourceAbstract, use trait Zendesk\API\Traits\Resource\Find, use trait Zendesk\API\Traits\Resource\FindAll
Show file Open project: zendesk/zendesk_api_client_php

Public Methods

Method Description
findAllAgent ( array $params = [] ) : stdClass This lists the translation locales that have been localized for agents.
findAllPublic ( array $params = [] ) : stdClass This lists the translation locales that are available to all accounts
findBest ( array $params = [] ) : stdClass Detect best language for user
findCurrent ( array $params = [] ) : stdClass This works exactly like show, but instead of taking an id as argument, it renders the locale of the user performing the request

Protected Methods

Method Description
setUpRoutes ( )

Method Details

findAllAgent() public method

This lists the translation locales that have been localized for agents.
public findAllAgent ( array $params = [] ) : stdClass
$params array
return stdClass | null

findAllPublic() public method

This lists the translation locales that are available to all accounts
public findAllPublic ( array $params = [] ) : stdClass
$params array
return stdClass | null

findBest() public method

Detect best language for user
public findBest ( array $params = [] ) : stdClass
$params array
return stdClass | null

findCurrent() public method

This works exactly like show, but instead of taking an id as argument, it renders the locale of the user performing the request
public findCurrent ( array $params = [] ) : stdClass
$params array
return stdClass | null

setUpRoutes() protected method

protected setUpRoutes ( )