add Italian provinces
authorfranzholz <franzholz@735d13b6-9817-0410-8766-e36946ffe9aa>
Sun, 31 Jan 2010 07:12:55 +0000 (07:12 +0000)
committerfranzholz <franzholz@735d13b6-9817-0410-8766-e36946ffe9aa>
Sun, 31 Jan 2010 07:12:55 +0000 (07:12 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/static_info_tables/trunk@29532 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
class.tx_staticinfotables_div.php
ext_emconf.php
pi1/class.tx_staticinfotables_pi1.php

index d644f4d..eec1276 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,4 @@
-2010-01-20  Franz Holzinger  <franz@ttproducts.de>
+2010-01-31  Franz Holzinger  <franz@ttproducts.de>
        * fix bug in getTitleFromIsoCode: SQL error due to wrong starting AND in where statement
        * remove static_markets: New extension static_info_tables_markets
        * fix bug 10037: add Albacete to Spain
@@ -6,6 +6,8 @@
        * fix bug 12854: getCurrentLanguage doesn't use FE language
        * fix bug 12145: static_info_tables, syntax errors in "ext_tables_static+adt.sql"
        * fix bug 0011739: Wrong abbreviations for german federal states
+       * add Italian provinces
+       * make Stanlislas Rolland <stanislas.rolland@sjbr.ca> the new maintainer of static_info_tables
 
 2009-06-20  Franz Holzinger  <franz@ttproducts.de>
        * Fix bug 2397: loadTcaAdditions
index b8f68cf..c77985a 100644 (file)
  *
  *
  *   57: class tx_staticinfotables_div
- *   68:     function getTCAlabelField($table, $loadTCA=TRUE, $lang='', $local=FALSE)
- *  117:     function isoCodeType($isoCode)
- *  141:     function getIsoCodeField($table, $isoCode, $bLoadTCA=TRUE, $index=0)
- *  167:     function getTCAsortField($table, $loadTCA=TRUE)
- *  179:     function getCurrentLanguage()
- *  212:     function getCurrentSystemLanguage($where='')
- *  245:     function getCollateLocale()
- *  278:     function getTitleFromIsoCode($table, $isoCode, $lang='', $local=FALSE)
- *  340:     function replaceMarkersInSQL($sql, $table, $row)
- *  382:     function selectItemsTCA($params)
- *  479:     function updateHotlist ($table, $indexValue, $indexField='', $app='')
- *  541:     function &fetchCountries($country, $iso2='', $iso3='', $isonr='')
- *  586:     function quoteJSvalue($value, $inScriptTags=FALSE)
- *  608:     function loadTcaAdditions($ext_keys)
+ *   69:     function getTCAlabelField ($table, $loadTCA=TRUE, $lang='', $local=FALSE)
+ *  119:     function isoCodeType ($isoCode)
+ *  143:     function getIsoCodeField ($table, $isoCode, $bLoadTCA=TRUE, $index=0)
+ *  169:     function getTCAsortField ($table, $loadTCA=TRUE)
+ *  181:     function getCurrentLanguage ()
+ *  215:     function getCurrentSystemLanguage ($where='')
+ *  249:     function getCollateLocale ()
+ *  282:     function getTitleFromIsoCode ($table, $isoCode, $lang='', $local=FALSE)
+ *  341:     function replaceMarkersInSQL ($sql, $table, $row)
+ *  383:     function selectItemsTCA ($params)
+ *  480:     function updateHotlist ($table, $indexValue, $indexField='', $app='')
+ *  542:     function &fetchCountries ($country, $iso2='', $iso3='', $isonr='')
+ *  587:     function quoteJSvalue ($value, $inScriptTags=FALSE)
+ *  609:     function loadTcaAdditions ($ext_keys)
  *
  * TOTAL FUNCTIONS: 14
  * (This index is automatically created/updated by the extension "extdeveval")
@@ -56,6 +56,7 @@
  */
 class tx_staticinfotables_div {
 
+
        /**
         * Returns a label field for the current language
         *
@@ -108,6 +109,7 @@ class tx_staticinfotables_div {
                return $labelFields;
        }
 
+
        /**
         * Returns the type of an iso code: nr, 2, 3
         *
@@ -126,6 +128,7 @@ class tx_staticinfotables_div {
                return $type;
        }
 
+
        /**
         * Returns a iso code field for the passed table and iso code
         *
@@ -155,6 +158,7 @@ class tx_staticinfotables_div {
                return $rc;
        }
 
+
        /**
         * Returns a sort field for the current language
         *
@@ -168,6 +172,7 @@ class tx_staticinfotables_div {
                return $labelFields[0];
        }
 
+
        /**
         * Returns the current language as iso-2-alpha code
         *
@@ -200,6 +205,7 @@ class tx_staticinfotables_div {
                return $rc;
        }
 
+
        /**
         * Returns the row of the current system language
         *
@@ -233,6 +239,7 @@ class tx_staticinfotables_div {
                return $rc;
        }
 
+
        /*
         *
         * Returns the locale to used when sorting labels
@@ -262,6 +269,7 @@ class tx_staticinfotables_div {
                return $locale ? $locale : 'C';
        }
 
+
        /**
         * Fetches short title from an iso code
         *
@@ -321,6 +329,7 @@ class tx_staticinfotables_div {
                return $title;
        }
 
+
        /**
         * Replaces any dynamic markers in a SQL statement.
         *
@@ -356,6 +365,7 @@ class tx_staticinfotables_div {
                return $sql;
        }
 
+
        /**
         * Function to use in own TCA definitions
         * Adds additional select items
@@ -456,6 +466,7 @@ class tx_staticinfotables_div {
                }
        }
 
+
        /**
         * Updates the hotlist table.
         * This means that a hotlist entry will be created or the counter of an existing entry will be increased
@@ -517,6 +528,7 @@ class tx_staticinfotables_div {
                }
        }
 
+
        /**
         * Get a list of countries by specific parameters or parts of names of countries
         * in different languages. Parameters might be left empty.
@@ -564,6 +576,7 @@ class tx_staticinfotables_div {
                return $rcArray;
        }
 
+
        /**
         * Quotes a string for usage as JS parameter. Depends wheter the value is used in script tags (it must not get `htmlspecialchar'ed in this case because this is done in this function)
         *
@@ -583,6 +596,7 @@ class tx_staticinfotables_div {
                return '"'.$value.'"';
        }
 
+
        /**
         * loadTcaAdditions($ext_keys)
         *
index 0261b38..3ef0cc3 100644 (file)
@@ -3,7 +3,7 @@
 ########################################################################
 # Extension Manager/Repository config file for ext: "static_info_tables"
 #
-# Auto generated 20-06-2009 14:28
+# Auto generated 31-01-2010 08:06
 #
 # Manual updates:
 # Only the data in the array - anything else is removed by next write.
 
 $EM_CONF[$_EXTKEY] = array(
        'title' => 'Static Info Tables',
-       'description' => 'API and Data for countries, languages and currencies.',
+       'description' => 'API and data for countries, languages and currencies.',
        'category' => 'misc',
        'shy' => 0,
-       'version' => '2.1.1',
+       'version' => '2.1.2',
        'dependencies' => '',
-       'conflicts' => '',
+       'conflicts' => 'sr_static_info',
        'priority' => '',
        'loadOrder' => '',
        'module' => '',
@@ -38,12 +38,15 @@ $EM_CONF[$_EXTKEY] = array(
                        'php' => '5.1.0-0.0.0',
                ),
                'conflicts' => array(
+                       'sr_static_info' => '0.0.1-',
                ),
                'suggests' => array(
                        'patch1822' => '0.0.4-',
                ),
        ),
-       '_md5_values_when_last_written' => 'a:23:{s:9:"ChangeLog";s:4:"21a0";s:20:"class.ext_update.php";s:4:"09b5";s:33:"class.tx_staticinfotables_div.php";s:4:"87de";s:38:"class.tx_staticinfotables_encoding.php";s:4:"03fd";s:41:"class.tx_staticinfotables_syslanguage.php";s:4:"4f57";s:21:"ext_conf_template.txt";s:4:"ec5b";s:12:"ext_icon.gif";s:4:"639f";s:17:"ext_localconf.php";s:4:"7e04";s:14:"ext_tables.php";s:4:"3e6b";s:14:"ext_tables.sql";s:4:"4451";s:25:"ext_tables_static+adt.sql";s:4:"c60e";s:25:"icon_static_countries.gif";s:4:"2a46";s:26:"icon_static_currencies.gif";s:4:"a1e2";s:25:"icon_static_languages.gif";s:4:"639f";s:23:"icon_static_markets.gif";s:4:"bf06";s:27:"icon_static_territories.gif";s:4:"aab5";s:13:"locallang.xml";s:4:"f121";s:16:"locallang_db.xml";s:4:"158c";s:7:"tca.php";s:4:"3a72";s:14:"doc/manual.sxw";s:4:"ede8";s:37:"pi1/class.tx_staticinfotables_pi1.php";s:4:"e03b";s:39:"static/static_info_tables/constants.txt";s:4:"aaf6";s:35:"static/static_info_tables/setup.txt";s:4:"82b7";}',
+       '_md5_values_when_last_written' => 'a:22:{s:9:"ChangeLog";s:4:"bca9";s:20:"class.ext_update.php";s:4:"09b5";s:33:"class.tx_staticinfotables_div.php";s:4:"56bc";s:38:"class.tx_staticinfotables_encoding.php";s:4:"03fd";s:41:"class.tx_staticinfotables_syslanguage.php";s:4:"4f57";s:21:"ext_conf_template.txt";s:4:"ec5b";s:12:"ext_icon.gif";s:4:"639f";s:17:"ext_localconf.php";s:4:"eb98";s:14:"ext_tables.php";s:4:"e112";s:14:"ext_tables.sql";s:4:"b3b8";s:25:"ext_tables_static+adt.sql";s:4:"8240";s:25:"icon_static_countries.gif";s:4:"2a46";s:26:"icon_static_currencies.gif";s:4:"a1e2";s:25:"icon_static_languages.gif";s:4:"639f";s:27:"icon_static_territories.gif";s:4:"aab5";s:13:"locallang.xml";s:4:"f121";s:16:"locallang_db.xml";s:4:"158c";s:7:"tca.php";s:4:"1496";s:14:"doc/manual.sxw";s:4:"92e3";s:37:"pi1/class.tx_staticinfotables_pi1.php";s:4:"0f4a";s:39:"static/static_info_tables/constants.txt";s:4:"aaf6";s:35:"static/static_info_tables/setup.txt";s:4:"82b7";}',
+       'suggests' => array(
+       ),
 );
 
 ?>
\ No newline at end of file
index 2e52657..1f66c07 100644 (file)
  *
  *
  *   66: class tx_staticinfotables_pi1 extends tslib_pibase
- *   96:     function needsInit ()
- *  106:     function init($conf=array())
- *  163:     function getStaticInfoName($type='COUNTRIES', $code, $country='', $countrySubdivision='', $local=FALSE)
- *  234:     function buildStaticInfoSelector($type='COUNTRIES', $name='', $class='', $selectedArray=array(), $country='', $submit=0, $id='', $title='', $addWhere='', $lang='', $local=FALSE, $mergeArray=array(), $size=1, &$outSelectedArray=array())
- *  319:     function initCountries($param='UN', $lang='', $local=FALSE, $addWhere='')
- *  376:     function initCountrySubdivisions($param, $addWhere='')
- *  422:     function initCurrencies($addWhere='')
- *  462:     function initLanguages($addWhere='')
- *  503:     function optionsConstructor($nameArray, $selectedArray=array(), &$outSelectedArray=array())
- *  529:     function loadCurrencyInfo($currencyCode)
- *  574:     function formatAmount($amount, $displayCurrencyCode='')
- *  602:     function formatAddress($delim, $streetAddress, $city, $zip, $subdivisionCode='', $countryCode='')
- *  646:     function getCurrentLanguage()
+ *   97:     function needsInit ()
+ *  108:     function init ($conf=array())
+ *  166:     function getStaticInfoName ($type='COUNTRIES', $code, $country='', $countrySubdivision='', $local=FALSE)
+ *  238:     function buildStaticInfoSelector ($type='COUNTRIES', $name='', $class='', $selectedArray=array(), $country='', $submit=0, $id='', $title='', $addWhere='', $lang='', $local=FALSE, $mergeArray=array(), $size=1, &$outSelectedArray=array())
+ *  324:     function initCountries ($param='UN', $lang='', $local=FALSE, $addWhere='')
+ *  382:     function initCountrySubdivisions ($param, $addWhere='')
+ *  429:     function initCurrencies ($addWhere='')
+ *  470:     function initLanguages ($addWhere='')
+ *  512:     function optionsConstructor ($nameArray, $selectedArray=array(), &$outSelectedArray=array())
+ *  539:     function loadCurrencyInfo ($currencyCode)
+ *  585:     function formatAmount ($amount, $displayCurrencyCode='')
+ *  614:     function formatAddress ($delim, $streetAddress, $city, $zip, $subdivisionCode='', $countryCode='')
+ *  659:     function getCurrentLanguage ()
  *
  * TOTAL FUNCTIONS: 13
  * (This index is automatically created/updated by the extension "extdeveval")
@@ -87,6 +87,7 @@ class tx_staticinfotables_pi1 extends tslib_pibase {
        );
        var $bHasBeenInitialised = FALSE;
 
+
        /**
         * Returns info if the tx_staticinfotables_pi1 object has already been initialised.
         * You need to initialise this object only once.
@@ -97,6 +98,7 @@ class tx_staticinfotables_pi1 extends tslib_pibase {
                return !$this->bHasBeenInitialised;
        }
 
+
        /**
         * Initializing the class: sets the language based on the TS configuration language property
         *
@@ -150,6 +152,7 @@ class tx_staticinfotables_pi1 extends tslib_pibase {
                return TRUE;
        }
 
+
        /**
         * Getting the name of a country, country subdivision, currency, language, tax
         *
@@ -212,6 +215,7 @@ class tx_staticinfotables_pi1 extends tslib_pibase {
                return $rc;
        }
 
+
        /**
         * Buils a HTML drop-down selector of countries, country subdivisions, currencies or languages
         *
@@ -305,6 +309,7 @@ class tx_staticinfotables_pi1 extends tslib_pibase {
                return $selector;
        }
 
+
        /**
         * Getting all countries into an array
         *      where the key is the ISO alpha-3 code of the country
@@ -363,6 +368,7 @@ class tx_staticinfotables_pi1 extends tslib_pibase {
                return $nameArray;
        }
 
+
        /**
         * Getting all country subdivisions of a given country into an array
         *      where the key is the code of the subdivision
@@ -411,6 +417,7 @@ class tx_staticinfotables_pi1 extends tslib_pibase {
                return $nameArray;
        }
 
+
        /**
         * Getting all currencies into an array
         *      where the key is the ISO alpha-3 code of the currency
@@ -450,6 +457,7 @@ class tx_staticinfotables_pi1 extends tslib_pibase {
                return $nameArray;
        }
 
+
        /**
         * Getting all languages into an array
         *      where the key is the ISO alpha-2 code of the language
@@ -492,6 +500,7 @@ class tx_staticinfotables_pi1 extends tslib_pibase {
                return $nameArray;
        }
 
+
        /**
         * Builds a list of <option> tags
         *
@@ -520,6 +529,7 @@ class tx_staticinfotables_pi1 extends tslib_pibase {
                return $options;
        }
 
+
        /**
         * Loading currency display parameters from Static Info Tables
         *
@@ -560,6 +570,7 @@ class tx_staticinfotables_pi1 extends tslib_pibase {
                return $this->currencyInfo;
        }
 
+
        /**
         * Formatting an amount in the currency loaded by loadCurrencyInfo($currencyCode)
         *
@@ -588,6 +599,7 @@ class tx_staticinfotables_pi1 extends tslib_pibase {
                return $formatedAmount;
        }
 
+
        /**
         * Formatting an address in the format specified
         *
@@ -638,6 +650,7 @@ class tx_staticinfotables_pi1 extends tslib_pibase {
                return $formatedAddress;
        }
 
+
        /**
         * Returns the current language as iso-2-alpha code
         *
@@ -651,6 +664,7 @@ class tx_staticinfotables_pi1 extends tslib_pibase {
        }
 }
 
+
 if (defined('TYPO3_MODE') && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/static_info_tables/pi1/class.tx_staticinfotables_pi1.php'])        {
        include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/static_info_tables/pi1/class.tx_staticinfotables_pi1.php']);
 }