From ccb32619a3ddfa003968d0f00e400ee3c598fee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20R?= Date: Thu, 2 May 2019 21:40:33 +0200 Subject: [PATCH] [PHP7] Add more BC construct methods, fixes issue with ezmbpaex --- kernel/classes/datatypes/ezuser/ezuser.php | 9 +++++++++ kernel/classes/ezcontentobject.php | 9 +++++++++ kernel/classes/ezcontentupload.php | 9 +++++++++ 3 files changed, 27 insertions(+) diff --git a/kernel/classes/datatypes/ezuser/ezuser.php b/kernel/classes/datatypes/ezuser/ezuser.php index 2adac67b8a1..b8ccf4a209e 100644 --- a/kernel/classes/datatypes/ezuser/ezuser.php +++ b/kernel/classes/datatypes/ezuser/ezuser.php @@ -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', diff --git a/kernel/classes/ezcontentobject.php b/kernel/classes/ezcontentobject.php index 197c78a4ee6..65c417b4815 100644 --- a/kernel/classes/ezcontentobject.php +++ b/kernel/classes/ezcontentobject.php @@ -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', diff --git a/kernel/classes/ezcontentupload.php b/kernel/classes/ezcontentupload.php index 019aeced10f..a002b0dc6cf 100644 --- a/kernel/classes/ezcontentupload.php +++ b/kernel/classes/ezcontentupload.php @@ -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. */