Skip to content

Commit

Permalink
Merge pull request #65 from Feld0/64_Update_constructors_for_PHP_7
Browse files Browse the repository at this point in the history
#64: Update constructor syntax for PHP 7.
  • Loading branch information
JamesHeinrich committed Dec 20, 2015
2 parents a4a50f1 + ad7d79c commit 7992d3c
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion getid3/extension.cache.dbm.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class getID3_cached_dbm extends getID3
{

// public: constructor - see top of this file for cache type and cache_options
public function getID3_cached_dbm($cache_type, $dbm_filename, $lock_filename) {
public function __construct($cache_type, $dbm_filename, $lock_filename) {

// Check for dba extension
if (!extension_loaded('dba')) {
Expand Down
2 changes: 1 addition & 1 deletion getid3/extension.cache.mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class getID3_cached_mysql extends getID3


// public: constructor - see top of this file for cache type and cache_options
public function getID3_cached_mysql($host, $database, $username, $password, $table='getid3_cache') {
public function __construct($host, $database, $username, $password, $table='getid3_cache') {

// Check for mysql support
if (!function_exists('mysql_pconnect')) {
Expand Down
2 changes: 1 addition & 1 deletion getid3/module.tag.xmp.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public function read_XMP_array_from_text($xmltext)
*
* @param string - Name of the image file to access and extract XMP information from.
*/
public function Image_XMP($sFilename)
public function __construct($sFilename)
{
$this->_sFilename = $sFilename;

Expand Down
2 changes: 1 addition & 1 deletion getid3/write.apetag.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class getid3_write_apetag
public $warnings = array(); // any non-critical errors will be stored here
public $errors = array(); // any critical errors will be stored here

public function getid3_write_apetag() {
public function __construct() {
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion getid3/write.id3v1.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class getid3_write_id3v1
public $warnings = array(); // any non-critical errors will be stored here
public $errors = array(); // any critical errors will be stored here

public function getid3_write_id3v1() {
public function __construct() {
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion getid3/write.id3v2.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class getid3_write_id3v2
public $warnings = array(); // any non-critical errors will be stored here
public $errors = array(); // any critical errors will be stored here

public function getid3_write_id3v2() {
public function __construct() {
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion getid3/write.lyrics3.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class getid3_write_lyrics3
public $warnings = array(); // any non-critical errors will be stored here
public $errors = array(); // any critical errors will be stored here

public function getid3_write_lyrics3() {
public function __construct() {
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion getid3/write.metaflac.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class getid3_write_metaflac
public $warnings = array(); // any non-critical errors will be stored here
public $errors = array(); // any critical errors will be stored here

public function getid3_write_metaflac() {
public function __construct() {
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion getid3/write.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class getid3_writetags
// private
private $ThisFileInfo; // analysis of file before writing

public function getid3_writetags() {
public function __construct() {
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion getid3/write.real.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class getid3_write_real
public $errors = array(); // any critical errors will be stored here
public $paddedlength = 512; // minimum length of CONT tag in bytes

public function getid3_write_real() {
public function __construct() {
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion getid3/write.vorbiscomment.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class getid3_write_vorbiscomment
public $warnings = array(); // any non-critical errors will be stored here
public $errors = array(); // any critical errors will be stored here

public function getid3_write_vorbiscomment() {
public function __construct() {
return true;
}

Expand Down

0 comments on commit 7992d3c

Please sign in to comment.