Added code to log all deprecated method calls
authorXavier Perseguers <typo3@perseguers.ch>
Wed, 28 Oct 2009 22:33:46 +0000 (22:33 +0000)
committerXavier Perseguers <typo3@perseguers.ch>
Wed, 28 Oct 2009 22:33:46 +0000 (22:33 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/dbal/trunk@25963 735d13b6-9817-0410-8766-e36946ffe9aa

typo3/sysext/dbal/ChangeLog
typo3/sysext/dbal/class.ux_t3lib_db.php

index 670d06f..901c91e 100644 (file)
@@ -1,5 +1,6 @@
 2009-10-28  Xavier Perseguers  <typo3@perseguers.ch>
 
+       * Added code to log all deprecated method calls
        * Added compatibility operators for PostgreSQL as resource script (thanks to Ries van Twisk)
        * Added message in Enterprise Manager to let users know compatibility scripts may need to be run
 
index 7f8f20d..9639824 100644 (file)
@@ -936,9 +936,11 @@ class ux_t3lib_DB extends t3lib_DB {
         *
         * @param       string          List of fields to be selected from DB
         * @return      string          Quoted list of fields to be selected from DB
-        * @deprecated since TYPO3 4.0
+        * @deprecated since TYPO3 4.0, will be removed in TYPO3 4.4
         */
        public function quoteSelectFields($select_fields) {
+               t3lib_div::logDeprecatedFunction();
+
                $this->quoteFieldNames($select_fields);
        }
 
@@ -1622,6 +1624,8 @@ class ux_t3lib_DB extends t3lib_DB {
         * @deprecated since TYPO3 4.1
         */
        public function sql($db,$query) {
+               t3lib_div::logDeprecatedFunction();
+
                return $this->sql_query($query);
        }
 
@@ -1636,6 +1640,8 @@ class ux_t3lib_DB extends t3lib_DB {
         * @deprecated since TYPO3 4.1
         */
        public function sql_query($query) {
+               t3lib_div::logDeprecatedFunction();
+
                switch ($this->handlerCfg['_DEFAULT']['type']) {
                        case 'native':
                                $sqlResult = mysql_query($query, $this->handlerInstance['_DEFAULT']['link']);
@@ -1670,6 +1676,8 @@ class ux_t3lib_DB extends t3lib_DB {
         * @see handler_init()
         */
        public function sql_pconnect($TYPO3_db_host, $TYPO3_db_username, $TYPO3_db_password) {
+               t3lib_div::logDeprecatedFunction();
+
                        // Overriding the _DEFAULT handler configuration of username, password, localhost and database name:
                $this->handlerCfg['_DEFAULT']['config']['username'] = $TYPO3_db_username;
                $this->handlerCfg['_DEFAULT']['config']['password'] = $TYPO3_db_password;
@@ -1689,6 +1697,8 @@ class ux_t3lib_DB extends t3lib_DB {
         * @deprecated since TYPO3 4.1
         */
        public function sql_select_db($TYPO3_db) {
+               t3lib_div::logDeprecatedFunction();
+
                return TRUE;
        }