本文整理匯總了PHP中Locales::getDefault方法的典型用法代碼示例。如果您正苦於以下問題:PHP Locales::getDefault方法的具體用法?PHP Locales::getDefault怎麽用?PHP Locales::getDefault使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Locales
的用法示例。
在下文中一共展示了Locales::getDefault方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getDefaultLocales
/**
* Returns the default localization.
*
* @api
* @author David Pauli <contact@david-pauli.de>
* @since 0.0.0
* @return String|null Default localization or null if the REST call does fail.
*/
public function getDefaultLocales()
{
return Locales::getDefault();
}
示例2: getDefaultLocale
/**
* Returns the default localization.
*
* @author David Pauli <contact@david-pauli.de>
* @return String|null Default localization or null if the REST call does fail.
* @since 0.0.0
* @since 0.1.2 Add error reporting.
*/
public function getDefaultLocale()
{
self::errorReset();
return Locales::getDefault();
}
示例3: getDefaultEmail
/**
* Gets the email in the default localization.
*
* @author David Pauli <contact@david-pauli.de>
* @since 0.0.0
* @since 0.1.0 Deprecated because the Locale is everytime the configured Locale.
* @api
* @deprecated
* @return String|null The email in the default localization or null if the default email address is unset.
*/
public function getDefaultEmail()
{
return self::getEmail(Locales::getDefault());
}
示例4: getDefaultEmail
/**
* Gets the email in the default localization.
*
* @author David Pauli <contact@david-pauli.de>
* @since 0.0.0
* @since 0.1.0 Deprecated because the Locale is everytime the configured Locale.
* @since 0.1.1 Unstatic every attributes.
* @api
* @deprecated
* @return String|null The email in the default localization or null if the default email address is unset.
*/
public function getDefaultEmail()
{
return $this->getEmail(Locales::getDefault());
}