|
|
@@ -42,8 +42,7 @@ class Zend_Locale_Data
|
|
|
/**
|
|
|
* Locale files
|
|
|
*
|
|
|
- * @var ressource
|
|
|
- * @access private
|
|
|
+ * @var array
|
|
|
*/
|
|
|
private static $_ldml = array();
|
|
|
|
|
|
@@ -51,7 +50,6 @@ class Zend_Locale_Data
|
|
|
* List of values which are collected
|
|
|
*
|
|
|
* @var array
|
|
|
- * @access private
|
|
|
*/
|
|
|
private static $_list = array();
|
|
|
|
|
|
@@ -59,7 +57,6 @@ class Zend_Locale_Data
|
|
|
* Internal cache for ldml values
|
|
|
*
|
|
|
* @var Zend_Cache_Core
|
|
|
- * @access private
|
|
|
*/
|
|
|
private static $_cache = null;
|
|
|
|
|
|
@@ -73,8 +70,7 @@ class Zend_Locale_Data
|
|
|
/**
|
|
|
* Internal option, cache disabled
|
|
|
*
|
|
|
- * @var boolean
|
|
|
- * @access private
|
|
|
+ * @var boolean
|
|
|
*/
|
|
|
private static $_cacheDisabled = false;
|
|
|
|
|
|
@@ -147,8 +143,8 @@ class Zend_Locale_Data
|
|
|
* @param string $attribute
|
|
|
* @param string $value
|
|
|
* @param array $temp
|
|
|
+ * @return bool
|
|
|
* @throws Zend_Locale_Exception
|
|
|
- * @access private
|
|
|
*/
|
|
|
private static function _findRoute($locale, $path, $attribute, $value, &$temp)
|
|
|
{
|
|
|
@@ -223,11 +219,13 @@ class Zend_Locale_Data
|
|
|
/**
|
|
|
* Read the right LDML file
|
|
|
*
|
|
|
- * @param string $locale
|
|
|
- * @param string $path
|
|
|
- * @param string $attribute
|
|
|
- * @param string $value
|
|
|
- * @access private
|
|
|
+ * @param string $locale
|
|
|
+ * @param string $path
|
|
|
+ * @param string|bool $attribute
|
|
|
+ * @param string|bool $value
|
|
|
+ * @param array $temp
|
|
|
+ * @return array
|
|
|
+ * @throws Zend_Locale_Exception
|
|
|
*/
|
|
|
private static function _getFile($locale, $path, $attribute = false, $value = false, $temp = array())
|
|
|
{
|
|
|
@@ -278,8 +276,9 @@ class Zend_Locale_Data
|
|
|
/**
|
|
|
* Internal function for checking the locale
|
|
|
*
|
|
|
- * @param string|Zend_Locale $locale Locale to check
|
|
|
+ * @param string|Zend_Locale $locale Locale to check
|
|
|
* @return string
|
|
|
+ * @throws Zend_Locale_Exception
|
|
|
*/
|
|
|
private static function _checkLocale($locale)
|
|
|
{
|
|
|
@@ -302,11 +301,11 @@ class Zend_Locale_Data
|
|
|
/**
|
|
|
* Read the LDML file, get a array of multipath defined value
|
|
|
*
|
|
|
- * @param string $locale
|
|
|
- * @param string $path
|
|
|
- * @param string $value
|
|
|
+ * @param string $locale
|
|
|
+ * @param string $path
|
|
|
+ * @param bool|string $value
|
|
|
* @return array
|
|
|
- * @access public
|
|
|
+ * @throws Zend_Locale_Exception
|
|
|
*/
|
|
|
public static function getList($locale, $path, $value = false)
|
|
|
{
|
|
|
@@ -952,11 +951,11 @@ class Zend_Locale_Data
|
|
|
/**
|
|
|
* Read the LDML file, get a single path defined value
|
|
|
*
|
|
|
- * @param string $locale
|
|
|
- * @param string $path
|
|
|
- * @param string $value
|
|
|
+ * @param string $locale
|
|
|
+ * @param string $path
|
|
|
+ * @param bool|string $value
|
|
|
* @return string
|
|
|
- * @access public
|
|
|
+ * @throws Zend_Locale_Exception
|
|
|
*/
|
|
|
public static function getContent($locale, $path, $value = false)
|
|
|
{
|
|
|
@@ -1557,7 +1556,7 @@ class Zend_Locale_Data
|
|
|
/**
|
|
|
* Disables the cache
|
|
|
*
|
|
|
- * @param unknown_type $flag
|
|
|
+ * @param bool $flag
|
|
|
*/
|
|
|
public static function disableCache($flag)
|
|
|
{
|
|
|
@@ -1567,7 +1566,7 @@ class Zend_Locale_Data
|
|
|
/**
|
|
|
* Internal method to check if the given cache supports tags
|
|
|
*
|
|
|
- * @param Zend_Cache $cache
|
|
|
+ * @return bool
|
|
|
*/
|
|
|
private static function _getTagSupportForCache()
|
|
|
{
|