]> source.dussan.org Git - nextcloud-server.git/commitdiff
get rid of php4 style constructors in mdb2
authorRobin Appelman <icewind@owncloud.com>
Fri, 15 Jun 2012 19:59:40 +0000 (21:59 +0200)
committerRobin Appelman <icewind@owncloud.com>
Fri, 15 Jun 2012 19:59:40 +0000 (21:59 +0200)
3rdparty/MDB2/Schema/Parser.php
3rdparty/MDB2/Schema/Parser2.php
3rdparty/MDB2/Schema/Validate.php
3rdparty/MDB2/Schema/Writer.php

index cfd0c37d8a3a834234bb7d7b7b48c675c29f2ca7..3c4345661b135dc91b1c6bfe039b02bd9ed18077 100644 (file)
@@ -146,33 +146,6 @@ class MDB2_Schema_Parser extends XML_Parser
         );
     }
 
-    /**
-     * PHP 4 compatible constructor
-     *
-     * @param array $variables              mixed array with user defined schema
-     *                                      variables
-     * @param bool  $fail_on_invalid_names  array with reserved words per RDBMS
-     * @param array $structure              multi dimensional array with 
-     *                                      database schema and data
-     * @param array $valid_types            information of all valid fields 
-     *                                      types
-     * @param bool  $force_defaults         if true sets a default value to
-     *                                      field when not explicit
-     * @param int   $max_identifiers_length maximum allowed size for entities 
-     *                                      name
-     *
-     * @return void
-     *
-     * @access public
-     * @static
-     */
-    function MDB2_Schema_Parser($variables, $fail_on_invalid_names = true,
-        $structure = false, $valid_types = array(), $force_defaults = true,
-        $max_identifiers_length = null
-    ) {
-        $this->__construct($variables, $fail_on_invalid_names, $structure, $valid_types, $force_defaults);
-    }
-
     /**
      * Triggered when reading a XML open tag <element>
      *
index b415b4a336e7447de736c45c2bb04aff9acedab4..f27dffbabf95f8019ca85a0617b240701ca9bf4e 100644 (file)
@@ -143,33 +143,6 @@ class MDB2_Schema_Parser2 extends XML_Unserializer
         parent::XML_Unserializer($this->options);
     }
 
-    /**
-     * PHP 4 compatible constructor
-     *
-     * @param array $variables              mixed array with user defined schema
-     *                                      variables
-     * @param bool  $fail_on_invalid_names  array with reserved words per RDBMS
-     * @param array $structure              multi dimensional array with 
-     *                                      database schema and data
-     * @param array $valid_types            information of all valid fields 
-     *                                      types
-     * @param bool  $force_defaults         if true sets a default value to
-     *                                      field when not explicit
-     * @param int   $max_identifiers_length maximum allowed size for entities 
-     *                                      name
-     *
-     * @return void
-     *
-     * @access public
-     * @static
-     */
-    function MDB2_Schema_Parser2($variables, $fail_on_invalid_names = true,
-        $structure = false, $valid_types = array(), $force_defaults = true,
-        $max_identifiers_length = null
-    ) {
-        $this->__construct($variables, $fail_on_invalid_names, $structure, $valid_types, $force_defaults);
-    }
-
     /**
      * Main method. Parses XML Schema File.
      *
index 4cff175576f1d7d702588b71bc20af066ab79ccf..4a8e0d27bacdbfc25f7b1ccf54bd87d1a3491b69 100644 (file)
@@ -108,28 +108,6 @@ class MDB2_Schema_Validate
         $this->max_identifiers_length = $max_identifiers_length;
     }
 
-    /**
-     * PHP 4 compatible constructor
-     *
-     * @param bool  $fail_on_invalid_names  array with reserved words per RDBMS
-     * @param array $valid_types            information of all valid fields 
-     *                                      types
-     * @param bool  $force_defaults         if true sets a default value to
-     *                                      field when not explicit
-     * @param int   $max_identifiers_length maximum allowed size for entities 
-     *                                      name
-     *
-     * @return void
-     *
-     * @access public
-     * @static
-     */
-    function MDB2_Schema_Validate($fail_on_invalid_names = true, $valid_types = array(),
-        $force_defaults = true, $max_identifiers_length = null
-    ) {
-        $this->__construct($fail_on_invalid_names, $valid_types, $force_defaults);
-    }
-
     // }}}
     // {{{ raiseError()
 
index 70a03168de6e559136f44dda037f849cc89f3e9e..96dd2bed0fb92ecf0419dbab29c70644f91883bb 100644 (file)
@@ -80,23 +80,6 @@ class MDB2_Schema_Writer
     function __construct($valid_types = array())
     {
         $this->valid_types = $valid_types;
-    }
-
-    /**
-     * PHP 4 compatible constructor
-     *
-     * @param array $valid_types information of all valid fields 
-     *                           types
-     *
-     * @return void
-     *
-     * @access public
-     * @static
-     */
-    function MDB2_Schema_Writer($valid_types = array())
-    {
-        $this->__construct($valid_types);
-    }
 
     // }}}
     // {{{ raiseError()