本文整理汇总了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());
}