PHP Trait Zendesk\API\Traits\Resource\Locales

ファイルを表示 Open project: zendesk/zendesk_api_client_php

Protected Properties

Property Type Description
$locale locale Used for setting up the locale

Public Methods

Method Description
getLocale ( ) : string
getRoute ( string $name, array $params = [] ) Generate a route depending on a localization set
setLocale ( string $locale ) : Locales
updateSourceLocale ( integer $categoryId, string $sourceLocale ) : array Updates a resource's source_locale property

Method Details

getLocale() public method

public getLocale ( ) : string
return string

getRoute() public method

Generate a route depending on a localization set
public getRoute ( string $name, array $params = [] )
$name string
$params array

setLocale() public method

public setLocale ( string $locale ) : Locales
$locale string
return Locales

updateSourceLocale() public method

Updates a resource's source_locale property
public updateSourceLocale ( integer $categoryId, string $sourceLocale ) : array
$categoryId integer The category to update
$sourceLocale string The new source_locale
return array

Property Details

$locale protected_oe property

Used for setting up the locale
protected locale $locale
return locale