Skip to content

Commit

Permalink
[PHP7] Add more BC construct methods, fixes issue with ezmbpaex
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom committed May 2, 2019
1 parent 01930a9 commit ccb3261
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kernel/classes/datatypes/ezuser/ezuser.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ public function __construct( $row = array() )
$this->OriginalPasswordConfirm = false;
}

/**
* @deprecated Use eZUser::__construct() instead
* @param array $row
*/
function eZUser( $row = array() )
{
self::__construct( $row );
}

static function definition()
{
static $definition = array( 'fields' => array( 'contentobject_id' => array( 'name' => 'ContentObjectID',
Expand Down
9 changes: 9 additions & 0 deletions kernel/classes/ezcontentobject.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ public function __construct( $row )
$this->Permissions = array();
}

/**
* @deprecated Use eZContentObject::__construct() instead
* @param int|array $row
*/
function eZContentObject( $row )
{
self::__construct( $row );
}

static function definition()
{
static $definition = array( "fields" => array( "id" => array( 'name' => 'ID',
Expand Down
9 changes: 9 additions & 0 deletions kernel/classes/ezcontentupload.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ public function __construct( $params = false )
}
}

/**
* @deprecated Use eZContentUpload::__construct() instead
* @param bool $params
*/
function eZContentUpload( $params = false )
{
self::__construct( $params );
}

/*!
\return an array with attribute names.
*/
Expand Down

0 comments on commit ccb3261

Please sign in to comment.