diff --git a/benchmarks/classes/ezbenchmark.php b/benchmarks/classes/ezbenchmark.php index 69cbb13f42e..354cdab982e 100644 --- a/benchmarks/classes/ezbenchmark.php +++ b/benchmarks/classes/ezbenchmark.php @@ -18,12 +18,9 @@ class eZBenchmark extends eZBenchmarkUnit { - /*! - Initializes the benchmark with the name \a $name. - */ - function eZBenchmark( $name ) + function __construct( $name = false ) { - $this->eZBenchmarkUnit( $name ); + parent::__construct( $name ); } function addMark( &$mark ) diff --git a/benchmarks/classes/ezbenchmarkcase.php b/benchmarks/classes/ezbenchmarkcase.php index eeec84791d5..20bf7b2022e 100644 --- a/benchmarks/classes/ezbenchmarkcase.php +++ b/benchmarks/classes/ezbenchmarkcase.php @@ -37,7 +37,7 @@ class MyTest extends eZBenchmarkCase { function MyTest() { - $this->eZBenchmarkCase( 'My test case' ); + parent::__construct( 'My test case' ); $this->addmark( 'markFunctionA', 'Addition mark' ); $this->addFunctionTest( 'MyFunctionMark', 'Addition mark 2' ); } @@ -64,12 +64,9 @@ function MyFunctionMark( &$tr, $parameter ) class eZBenchmarkCase extends eZBenchmarkUnit { - /*! - Constructor - */ - function eZBenchmarkCase( $name = false ) + function __construct( $name = false ) { - $this->eZBenchmarkUnit( $name ); + parent::__construct( $name ); } function addMark( $method, $name, $parameter = false ) diff --git a/benchmarks/classes/ezbenchmarkclirunner.php b/benchmarks/classes/ezbenchmarkclirunner.php index f9b9efc2c2f..25d40413822 100644 --- a/benchmarks/classes/ezbenchmarkclirunner.php +++ b/benchmarks/classes/ezbenchmarkclirunner.php @@ -24,12 +24,9 @@ class eZBenchmarkCLIRunner extends eZBenchmarkRunner { - /*! - Constructor - */ - function eZBenchmarkCLIRunner() + public function __construct() { - $this->eZBenchmarkRunner(); + parent::__construct(); $this->MaxMap = false; } diff --git a/benchmarks/classes/ezbenchmarkrunner.php b/benchmarks/classes/ezbenchmarkrunner.php index 747aad013c6..95d3f0ff749 100644 --- a/benchmarks/classes/ezbenchmarkrunner.php +++ b/benchmarks/classes/ezbenchmarkrunner.php @@ -16,10 +16,10 @@ class eZBenchmarkrunner { - /*! - Constructor - */ - function eZBenchmarkrunner() + /** + * Constructor + */ + public function __construct() { $this->Results = array(); $this->CurrentResult = false; diff --git a/benchmarks/classes/ezbenchmarkunit.php b/benchmarks/classes/ezbenchmarkunit.php index d2ccae2cf9f..3c1476148a6 100644 --- a/benchmarks/classes/ezbenchmarkunit.php +++ b/benchmarks/classes/ezbenchmarkunit.php @@ -21,10 +21,12 @@ class eZBenchmarkUnit { - /*! - Constructor - */ - function eZBenchmarkUnit( $name = false ) + /** + * Initializes the benchmark + * + * @param bool|string $name + */ + function __construct( $name = false ) { if ( !$name ) $name = get_class( $this ); diff --git a/benchmarks/eztemplate/ezmarktemplatecompiler.php b/benchmarks/eztemplate/ezmarktemplatecompiler.php index 5388d720491..5a90ef09029 100644 --- a/benchmarks/eztemplate/ezmarktemplatecompiler.php +++ b/benchmarks/eztemplate/ezmarktemplatecompiler.php @@ -16,12 +16,9 @@ class eZMarkTemplateCompiler extends eZBenchmarkCase { - /*! - Constructor - */ - function eZMarkTemplateCompiler( $name ) + public function __construct( $name = false ) { - $this->eZBenchmarkCase( $name ); + parent::__construct( $name ); $this->addMark( 'markProcess', 'Processed template mark' ); $this->addMark( 'markCompilation', 'Compiled template mark' ); } diff --git a/benchmarks/hashing/ezmarkhashing.php b/benchmarks/hashing/ezmarkhashing.php index 893845778c2..069a8abf5a8 100644 --- a/benchmarks/hashing/ezmarkhashing.php +++ b/benchmarks/hashing/ezmarkhashing.php @@ -16,12 +16,9 @@ class eZMarkHashing extends eZBenchmarkCase { - /*! - Constructor - */ - function eZMarkHashing( $name ) + public function __construct( $name = false ) { - $this->eZBenchmarkCase( $name ); + parent::__construct( $name ); $this->addMark( 'markMD5', 'MD5 hash', array( 'repeat_count' => 1000 ) ); $this->addMark( 'markCRC32', 'CRC32 hash', array( 'repeat_count' => 1000 ) ); } diff --git a/extension/ezjscore/autoloads/ezjscaccesstemplatefunctions.php b/extension/ezjscore/autoloads/ezjscaccesstemplatefunctions.php index c94b42347d8..98ede4a47c9 100644 --- a/extension/ezjscore/autoloads/ezjscaccesstemplatefunctions.php +++ b/extension/ezjscore/autoloads/ezjscaccesstemplatefunctions.php @@ -38,10 +38,6 @@ class ezjscAccessTemplateFunctions { - function ezjscAccessTemplateFunctions() - { - } - function operatorList() { return array( 'has_access_to_limitation' ); diff --git a/extension/ezjscore/autoloads/ezjscencodingtemplatefunctions.php b/extension/ezjscore/autoloads/ezjscencodingtemplatefunctions.php index bd709090206..2d03191bfda 100644 --- a/extension/ezjscore/autoloads/ezjscencodingtemplatefunctions.php +++ b/extension/ezjscore/autoloads/ezjscencodingtemplatefunctions.php @@ -42,10 +42,6 @@ class ezjscEncodingTemplateFunctions { - function ezjscEncodingTemplateFunctions() - { - } - function operatorList() { return array( 'json_encode', diff --git a/extension/ezjscore/autoloads/ezjscpackertemplatefunctions.php b/extension/ezjscore/autoloads/ezjscpackertemplatefunctions.php index 006b3e05f77..0026d18a20d 100644 --- a/extension/ezjscore/autoloads/ezjscpackertemplatefunctions.php +++ b/extension/ezjscore/autoloads/ezjscpackertemplatefunctions.php @@ -84,10 +84,6 @@ class ezjscPackerTemplateFunctions { - function ezjscPackerTemplateFunctions() - { - } - function operatorList() { return array( 'ezscript', 'ezscript_require', 'ezscript_load', 'ezscriptfiles', 'ezcss', 'ezcss_require', 'ezcss_load', 'ezcssfiles' ); diff --git a/extension/ezjscore/classes/ezjscserverrouter.php b/extension/ezjscore/classes/ezjscserverrouter.php index 0a9dc7a1868..399cc01bc72 100644 --- a/extension/ezjscore/classes/ezjscserverrouter.php +++ b/extension/ezjscore/classes/ezjscserverrouter.php @@ -40,7 +40,7 @@ class ezjscServerRouter protected $functionArguments = array(); protected $isTemplateFunction = false; - protected function ezjscServerRouter( $className, $functionName = 'call', array $functionArguments = array(), $isTemplateFunction = false ) + protected function __construct( $className, $functionName = 'call', array $functionArguments = array(), $isTemplateFunction = false ) { $this->className = $className; $this->functionName = $functionName; diff --git a/extension/ezoe/autoloads/ezoetemplateutils.php b/extension/ezoe/autoloads/ezoetemplateutils.php index a964cb4bfdb..d307fdbffa5 100644 --- a/extension/ezoe/autoloads/ezoetemplateutils.php +++ b/extension/ezoe/autoloads/ezoetemplateutils.php @@ -35,10 +35,6 @@ class eZOETemplateUtils { - function eZOETemplateUtils() - { - } - function operatorList() { return array( 'ezoe_ini_section' ); diff --git a/extension/ezoe/ezxmltext/handlers/input/ezoeinputparser.php b/extension/ezoe/ezxmltext/handlers/input/ezoeinputparser.php index d7957977021..9fad3a36f71 100644 --- a/extension/ezoe/ezxmltext/handlers/input/ezoeinputparser.php +++ b/extension/ezoe/ezxmltext/handlers/input/ezoeinputparser.php @@ -178,12 +178,12 @@ class eZOEInputParser extends eZXMLInputParser * @param bool $parseLineBreaks flag if line breaks should be given meaning or not * @param bool $removeDefaultAttrs signal if attributes of default value should not be saved. */ - function eZOEInputParser( $validateErrorLevel = eZXMLInputParser::ERROR_NONE, + public function __construct( $validateErrorLevel = eZXMLInputParser::ERROR_NONE, $detectErrorLevel = eZXMLInputParser::ERROR_NONE, $parseLineBreaks = false, $removeDefaultAttrs = false ) { - $this->eZXMLInputParser( $validateErrorLevel, + parent::__construct( $validateErrorLevel, $detectErrorLevel, $parseLineBreaks, $removeDefaultAttrs ); diff --git a/extension/ezoe/ezxmltext/handlers/input/ezoexmlinput.php b/extension/ezoe/ezxmltext/handlers/input/ezoexmlinput.php index ede5119d8b8..8915eeeb121 100644 --- a/extension/ezoe/ezxmltext/handlers/input/ezoexmlinput.php +++ b/extension/ezoe/ezxmltext/handlers/input/ezoexmlinput.php @@ -38,17 +38,9 @@ */ class eZOEXMLInput extends eZXMLInputHandler { - /** - * Constructor - * For more info see {@link eZXMLInputHandler::eZXMLInputHandler()} - * - * @param string $xmlData - * @param string $aliasedType - * @param eZContentObjectAttribute $contentObjectAttribute - */ - function eZOEXMLInput( $xmlData, $aliasedType, $contentObjectAttribute ) + public function __construct( $xmlData, $aliasedType, $contentObjectAttribute ) { - $this->eZXMLInputHandler( $xmlData, $aliasedType, $contentObjectAttribute ); + parent::__construct( $xmlData, $aliasedType, $contentObjectAttribute ); $contentIni = eZINI::instance( 'content.ini' ); if ( $contentIni->hasVariable( 'header', 'UseStrictHeaderRule' ) === true ) diff --git a/kernel/class/ezclassfunctioncollection.php b/kernel/class/ezclassfunctioncollection.php index 95bb0e0099e..fb1534ba89a 100644 --- a/kernel/class/ezclassfunctioncollection.php +++ b/kernel/class/ezclassfunctioncollection.php @@ -16,13 +16,6 @@ class eZClassFunctionCollection { - /*! - Constructor - */ - function eZClassFunctionCollection() - { - } - function fetchClassListByGroups( $groupFilter, $groupFilterType = 'include' ) { $notIn = ( $groupFilterType == 'exclude' ); diff --git a/kernel/classes/basketinfohandlers/ezdefaultbasketinfohandler.php b/kernel/classes/basketinfohandlers/ezdefaultbasketinfohandler.php index 00ebb2db832..5d149d99f84 100644 --- a/kernel/classes/basketinfohandlers/ezdefaultbasketinfohandler.php +++ b/kernel/classes/basketinfohandlers/ezdefaultbasketinfohandler.php @@ -10,13 +10,6 @@ class eZDefaultBasketInfoHandler { - /*! - Constructor - */ - function eZDefaultBasketInfoHandler() - { - } - /*! Calculate additional information about vat and prices for items in the basket. */ diff --git a/kernel/classes/binaryhandlers/ezfilepassthrough/ezfilepassthroughhandler.php b/kernel/classes/binaryhandlers/ezfilepassthrough/ezfilepassthroughhandler.php index d2f91355609..3ca3d4709ba 100644 --- a/kernel/classes/binaryhandlers/ezfilepassthrough/ezfilepassthroughhandler.php +++ b/kernel/classes/binaryhandlers/ezfilepassthrough/ezfilepassthroughhandler.php @@ -18,9 +18,9 @@ class eZFilePassthroughHandler extends eZBinaryFileHandler { const HANDLER_ID = 'ezfilepassthrough'; - function eZFilePassthroughHandler() + public function __construct() { - $this->eZBinaryFileHandler( self::HANDLER_ID, "PHP passthrough", eZBinaryFileHandler::HANDLE_DOWNLOAD ); + parent::__construct( self::HANDLER_ID, "PHP passthrough", eZBinaryFileHandler::HANDLE_DOWNLOAD ); } function handleFileDownload( $contentObject, $contentObjectAttribute, $type, diff --git a/kernel/classes/clusterfilehandlers/dbbackends/mysqlbackenderror.php b/kernel/classes/clusterfilehandlers/dbbackends/mysqlbackenderror.php index 1b721b10dcd..b9126c6a013 100644 --- a/kernel/classes/clusterfilehandlers/dbbackends/mysqlbackenderror.php +++ b/kernel/classes/clusterfilehandlers/dbbackends/mysqlbackenderror.php @@ -15,7 +15,7 @@ class eZMySQLBackendError { - function eZMySQLBackendError( $value, $text ) + public function __construct( $value, $text ) { $this->errorValue = $value; $this->errorText = $text; diff --git a/kernel/classes/clusterfilehandlers/ezfsfilehandler.php b/kernel/classes/clusterfilehandlers/ezfsfilehandler.php index 7a4121a9594..51d2ecdb31a 100644 --- a/kernel/classes/clusterfilehandlers/ezfsfilehandler.php +++ b/kernel/classes/clusterfilehandlers/ezfsfilehandler.php @@ -15,9 +15,9 @@ class eZFSFileHandler implements eZClusterFileHandlerInterface /** * Constructor. * - * $filePath File path. If specified, file metadata is fetched in the constructor. + * @param bool $filePath File path. If specified, file metadata is fetched in the constructor. */ - function eZFSFileHandler( $filePath = false ) + public function __construct( $filePath = false ) { eZDebugSetting::writeDebug( 'kernel-clustering', "fs::instance( '$filePath' )", __METHOD__ ); $this->Mutex = null; diff --git a/kernel/classes/collaborationhandlers/ezapprove/ezapprovecollaborationhandler.php b/kernel/classes/collaborationhandlers/ezapprove/ezapprovecollaborationhandler.php index c7844255706..1424d6cba37 100644 --- a/kernel/classes/collaborationhandlers/ezapprove/ezapprovecollaborationhandler.php +++ b/kernel/classes/collaborationhandlers/ezapprove/ezapprovecollaborationhandler.php @@ -38,16 +38,17 @@ class eZApproveCollaborationHandler extends eZCollaborationItemHandler /// The contentobject was deferred and will be a draft again for reediting. const STATUS_DEFERRED = 3; - /*! - Initializes the handler - */ - function eZApproveCollaborationHandler() + public function __construct() { - $this->eZCollaborationItemHandler( 'ezapprove', - ezpI18n::tr( 'kernel/classes', 'Approval' ), - array( 'use-messages' => true, - 'notification-types' => true, - 'notification-collection-handling' => eZCollaborationItemHandler::NOTIFICATION_COLLECTION_PER_PARTICIPATION_ROLE ) ); + parent::__construct( + 'ezapprove', + ezpI18n::tr( 'kernel/classes', 'Approval' ), + array( + 'use-messages' => true, + 'notification-types' => true, + 'notification-collection-handling' => eZCollaborationItemHandler::NOTIFICATION_COLLECTION_PER_PARTICIPATION_ROLE + ) + ); } function title( $collaborationItem ) diff --git a/kernel/classes/confirmorderhandlers/ezdefaultconfirmorderhandler.php b/kernel/classes/confirmorderhandlers/ezdefaultconfirmorderhandler.php index 2af117bbb27..14ef7951c44 100644 --- a/kernel/classes/confirmorderhandlers/ezdefaultconfirmorderhandler.php +++ b/kernel/classes/confirmorderhandlers/ezdefaultconfirmorderhandler.php @@ -16,13 +16,6 @@ class eZDefaultConfirmOrderHandler { - /*! - Constructor - */ - function eZDefaultConfirmOrderHandler() - { - } - function execute( $params = array() ) { $ini = eZINI::instance(); diff --git a/kernel/classes/datatypes/ezauthor/ezauthor.php b/kernel/classes/datatypes/ezauthor/ezauthor.php index f6a7a1d85df..0156bf0addd 100644 --- a/kernel/classes/datatypes/ezauthor/ezauthor.php +++ b/kernel/classes/datatypes/ezauthor/ezauthor.php @@ -27,7 +27,7 @@ class eZAuthor { - function eZAuthor( ) + public function __construct( ) { $this->Authors = array(); $this->AuthorCount = 0; diff --git a/kernel/classes/datatypes/ezauthor/ezauthortype.php b/kernel/classes/datatypes/ezauthor/ezauthortype.php index fae48178359..fd5b91bed2a 100644 --- a/kernel/classes/datatypes/ezauthor/ezauthortype.php +++ b/kernel/classes/datatypes/ezauthor/ezauthortype.php @@ -19,9 +19,9 @@ class eZAuthorType extends eZDataType { const DATA_TYPE_STRING = "ezauthor"; - function eZAuthorType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Authors", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Authors", 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezbinaryfile/ezbinaryfile.php b/kernel/classes/datatypes/ezbinaryfile/ezbinaryfile.php index a3bf6e3aa11..246faf7b9c1 100644 --- a/kernel/classes/datatypes/ezbinaryfile/ezbinaryfile.php +++ b/kernel/classes/datatypes/ezbinaryfile/ezbinaryfile.php @@ -17,11 +17,6 @@ class eZBinaryFile extends eZPersistentObject { - function eZBinaryFile( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { static $definition = array( 'fields' => array( 'contentobject_attribute_id' => array( 'name' => 'ContentObjectAttributeID', diff --git a/kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype.php b/kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype.php index 1dfc890c7cc..c1ba06b5e17 100644 --- a/kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype.php +++ b/kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype.php @@ -23,9 +23,9 @@ class eZBinaryFileType extends eZDataType const DATA_TYPE_STRING = "ezbinaryfile"; - function eZBinaryFileType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "File", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "File", 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezboolean/ezbooleantype.php b/kernel/classes/datatypes/ezboolean/ezbooleantype.php index e08a38aba69..67f109698e4 100644 --- a/kernel/classes/datatypes/ezboolean/ezbooleantype.php +++ b/kernel/classes/datatypes/ezboolean/ezbooleantype.php @@ -19,9 +19,9 @@ class eZBooleanType extends eZDataType { const DATA_TYPE_STRING = "ezboolean"; - function eZBooleanType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Checkbox", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Checkbox", 'Datatype name' ), array( 'serialize_supported' => true, 'object_serialize_map' => array( 'data_int' => 'value' ) ) ); } diff --git a/kernel/classes/datatypes/ezcountry/ezcountrytype.php b/kernel/classes/datatypes/ezcountry/ezcountrytype.php index 861d7fb9a48..1e75dc53c78 100644 --- a/kernel/classes/datatypes/ezcountry/ezcountrytype.php +++ b/kernel/classes/datatypes/ezcountry/ezcountrytype.php @@ -27,9 +27,9 @@ class eZCountryType extends eZDataType const MULTIPLE_CHOICE_FIELD = 'data_int1'; - function eZCountryType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'Country', 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'Country', 'Datatype name' ), array( 'serialize_supported' => true, 'object_serialize_map' => array( 'data_text' => 'country' ) ) ); } diff --git a/kernel/classes/datatypes/ezdate/ezdatetype.php b/kernel/classes/datatypes/ezdate/ezdatetype.php index b317cb5068c..c256446600e 100644 --- a/kernel/classes/datatypes/ezdate/ezdatetype.php +++ b/kernel/classes/datatypes/ezdate/ezdatetype.php @@ -25,9 +25,9 @@ class eZDateType extends eZDataType const DEFAULT_CURRENT_DATE = 1; - function eZDateType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Date", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Date", 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezdatetime/ezdatetimetype.php b/kernel/classes/datatypes/ezdatetime/ezdatetimetype.php index d46179e4020..bdca7897681 100644 --- a/kernel/classes/datatypes/ezdatetime/ezdatetimetype.php +++ b/kernel/classes/datatypes/ezdatetime/ezdatetimetype.php @@ -31,9 +31,9 @@ class eZDateTimeType extends eZDataType const DEFAULT_ADJUSTMENT = 2; - function eZDateTimeType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Date and time", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Date and time", 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezemail/ezemailtype.php b/kernel/classes/datatypes/ezemail/ezemailtype.php index 866754c4b47..b1574285c11 100644 --- a/kernel/classes/datatypes/ezemail/ezemailtype.php +++ b/kernel/classes/datatypes/ezemail/ezemailtype.php @@ -19,9 +19,9 @@ class eZEmailType extends eZDataType { const DATA_TYPE_STRING = "ezemail"; - function eZEmailType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Email", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Email", 'Datatype name' ), array( 'serialize_supported' => true, 'object_serialize_map' => array( 'data_text' => 'email' ) ) ); } diff --git a/kernel/classes/datatypes/ezenum/ezenum.php b/kernel/classes/datatypes/ezenum/ezenum.php index 92c20949015..3644cf9b81e 100644 --- a/kernel/classes/datatypes/ezenum/ezenum.php +++ b/kernel/classes/datatypes/ezenum/ezenum.php @@ -17,10 +17,13 @@ class eZEnum { - /*! - Constructor - */ - function eZEnum( $id, $version ) + /** + * Constructor + * + * @param int $id + * @param int $version + */ + public function __construct( $id, $version ) { $this->ClassAttributeID = $id; $this->ClassAttributeVersion = $version; diff --git a/kernel/classes/datatypes/ezenum/ezenumobjectvalue.php b/kernel/classes/datatypes/ezenum/ezenumobjectvalue.php index f360c2aa03c..8a2a866caff 100644 --- a/kernel/classes/datatypes/ezenum/ezenumobjectvalue.php +++ b/kernel/classes/datatypes/ezenum/ezenumobjectvalue.php @@ -16,14 +16,6 @@ class eZEnumObjectValue extends eZPersistentObject { - /*! - Constructor - */ - function eZEnumObjectValue( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "contentobject_attribute_id" => array( 'name' => "ContentObjectAttributeID", diff --git a/kernel/classes/datatypes/ezenum/ezenumtype.php b/kernel/classes/datatypes/ezenum/ezenumtype.php index 64e41a1d04e..6e62f6d39e9 100644 --- a/kernel/classes/datatypes/ezenum/ezenumtype.php +++ b/kernel/classes/datatypes/ezenum/ezenumtype.php @@ -22,12 +22,9 @@ class eZEnumType extends eZDataType const IS_OPTION_FIELD = 'data_int2'; const IS_OPTION_VARIABLE = '_ezenum_isoption_value_'; - /*! - Constructor - */ - function eZEnumType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'Enum', 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'Enum', 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezenum/ezenumvalue.php b/kernel/classes/datatypes/ezenum/ezenumvalue.php index 2b54c741458..c2b05de3d3a 100644 --- a/kernel/classes/datatypes/ezenum/ezenumvalue.php +++ b/kernel/classes/datatypes/ezenum/ezenumvalue.php @@ -17,14 +17,6 @@ class eZEnumValue extends eZPersistentObject { - /*! - Constructor - */ - function eZEnumValue( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/datatypes/ezfloat/ezfloattype.php b/kernel/classes/datatypes/ezfloat/ezfloattype.php index 556a4d09aae..39d84dc5964 100644 --- a/kernel/classes/datatypes/ezfloat/ezfloattype.php +++ b/kernel/classes/datatypes/ezfloat/ezfloattype.php @@ -30,9 +30,9 @@ class eZFloatType extends eZDataType const HAS_MAX_VALUE = 2; const HAS_MIN_MAX_VALUE = 3; - function eZFloatType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Float", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Float", 'Datatype name' ), array( 'serialize_supported' => true, 'object_serialize_map' => array( 'data_float' => 'value' ) ) ); $this->FloatValidator = new eZFloatValidator(); diff --git a/kernel/classes/datatypes/ezidentifier/ezidentifiertype.php b/kernel/classes/datatypes/ezidentifier/ezidentifiertype.php index e20b61f7c6f..e896d0c783a 100644 --- a/kernel/classes/datatypes/ezidentifier/ezidentifiertype.php +++ b/kernel/classes/datatypes/ezidentifier/ezidentifiertype.php @@ -34,12 +34,12 @@ class eZIdentifierType extends eZDataType const DATA_TYPE_STRING = "ezidentifier"; - /*! - Constructor - */ - function eZIdentifierType() + /** + * Constructor + */ + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Identifier", 'Datatype name' ), array( 'serialize_supported' => true, 'object_serialize_map' => array( 'data_text' => 'identifier', diff --git a/kernel/classes/datatypes/ezimage/ezimagealiashandler.php b/kernel/classes/datatypes/ezimage/ezimagealiashandler.php index aacf131facc..3cce4df78d7 100644 --- a/kernel/classes/datatypes/ezimage/ezimagealiashandler.php +++ b/kernel/classes/datatypes/ezimage/ezimagealiashandler.php @@ -26,10 +26,12 @@ class eZImageAliasHandler { - /*! - Creates the handler and creates a reference to the contentobject attribute that created it. - */ - function eZImageAliasHandler( $contentObjectAttribute ) + /** + * Creates the handler and creates a reference to the contentobject attribute that created it. + * + * @param eZContentObjectAttribute $contentObjectAttribute + */ + public function __construct( $contentObjectAttribute ) { $this->ContentObjectAttributeData = array(); if ( is_object( $contentObjectAttribute ) ) diff --git a/kernel/classes/datatypes/ezimage/ezimagefile.php b/kernel/classes/datatypes/ezimage/ezimagefile.php index 75ca2720fbf..ce9265f1d96 100644 --- a/kernel/classes/datatypes/ezimage/ezimagefile.php +++ b/kernel/classes/datatypes/ezimage/ezimagefile.php @@ -17,11 +17,6 @@ class eZImageFile extends eZPersistentObject { - function eZImageFile( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { static $definition = array( 'fields' => array( 'id' => array( 'name' => 'id', diff --git a/kernel/classes/datatypes/ezimage/ezimagetype.php b/kernel/classes/datatypes/ezimage/ezimagetype.php index af44de85ad5..9a67fd237ba 100644 --- a/kernel/classes/datatypes/ezimage/ezimagetype.php +++ b/kernel/classes/datatypes/ezimage/ezimagetype.php @@ -23,9 +23,9 @@ class eZImageType extends eZDataType const FILESIZE_VARIABLE = '_ezimage_max_filesize_'; const DATA_TYPE_STRING = "ezimage"; - function eZImageType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Image", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Image", 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezinisetting/ezinisettingtype.php b/kernel/classes/datatypes/ezinisetting/ezinisettingtype.php index d617d2ce4d6..df6a6a2f301 100644 --- a/kernel/classes/datatypes/ezinisetting/ezinisettingtype.php +++ b/kernel/classes/datatypes/ezinisetting/ezinisettingtype.php @@ -37,12 +37,9 @@ class eZIniSettingType extends eZDataType const CLASS_TYPE_ARRAY = 6; - /*! - Initializes with a string id and a description. - */ - function eZIniSettingType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'Ini Setting', 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'Ini Setting', 'Datatype name' ), array( 'translation_allowed' => false, 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezinteger/ezintegertype.php b/kernel/classes/datatypes/ezinteger/ezintegertype.php index 160d9618fc8..95e6c0d3140 100644 --- a/kernel/classes/datatypes/ezinteger/ezintegertype.php +++ b/kernel/classes/datatypes/ezinteger/ezintegertype.php @@ -35,9 +35,9 @@ class eZIntegerType extends eZDataType const HAS_MAX_VALUE = 2; const HAS_MIN_MAX_VALUE = 3; - function eZIntegerType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Integer", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Integer", 'Datatype name' ), array( 'serialize_supported' => true, 'object_serialize_map' => array( 'data_int' => 'value' ) ) ); $this->IntegerValidator = new eZIntegerValidator(); diff --git a/kernel/classes/datatypes/ezisbn/ezisbn10to13converter.php b/kernel/classes/datatypes/ezisbn/ezisbn10to13converter.php index 43a4bc7a3af..16eb764f6a3 100644 --- a/kernel/classes/datatypes/ezisbn/ezisbn10to13converter.php +++ b/kernel/classes/datatypes/ezisbn/ezisbn10to13converter.php @@ -17,7 +17,7 @@ class eZISBN10To13Converter \param $params custom parameters to the class. The Force parameter is now set as a class variable for the other functions. */ - function eZISBN10To13Converter( $script, $cli, $params ) + public function __construct( $script, $cli, $params ) { $this->Script = $script; $this->Cli = $cli; diff --git a/kernel/classes/datatypes/ezisbn/ezisbn13.php b/kernel/classes/datatypes/ezisbn/ezisbn13.php index ec778f3e4d9..9aa3b10456d 100644 --- a/kernel/classes/datatypes/ezisbn/ezisbn13.php +++ b/kernel/classes/datatypes/ezisbn/ezisbn13.php @@ -25,13 +25,13 @@ class eZISBN13 const PREFIX_978 = 978; const PREFIX_979 = 979; - /*! - Constructor - \param $isbnNr is the ISBN-13 number. example is: 978-0-11-000222-4 - \param $separator is the hyphen used in the ISBN number to make the - ISBN number more visible. - */ - function eZISBN13( $isbnNr = null, $separator = '-' ) + /** + * Constructor + * + * @param string|null $isbnNr The ISBN-13 number, e.g. 978-0-11-000222-4 + * @param string $separator The hyphen used in the ISBN number to make the ISBN number more visible. + */ + public function __construct( $isbnNr = null, $separator = '-' ) { if ( $isbnNr !== null ) { diff --git a/kernel/classes/datatypes/ezisbn/ezisbngroup.php b/kernel/classes/datatypes/ezisbn/ezisbngroup.php index 34ebf016b41..64fdb0b1308 100644 --- a/kernel/classes/datatypes/ezisbn/ezisbngroup.php +++ b/kernel/classes/datatypes/ezisbn/ezisbngroup.php @@ -22,14 +22,6 @@ class eZISBNGroup extends eZPersistentObject { - /*! - Constructor - */ - function eZISBNGroup( $row ) - { - $this->eZPersistentObject( $row ); - } - /*! \static returns a definition of the ISBN group. diff --git a/kernel/classes/datatypes/ezisbn/ezisbngrouprange.php b/kernel/classes/datatypes/ezisbn/ezisbngrouprange.php index ecf134d4493..e6485ff94e5 100644 --- a/kernel/classes/datatypes/ezisbn/ezisbngrouprange.php +++ b/kernel/classes/datatypes/ezisbn/ezisbngrouprange.php @@ -24,15 +24,6 @@ class eZISBNGroupRange extends eZPersistentObject { - /*! - Constructor - */ - function eZISBNGroupRange( $row ) - { - $this->eZPersistentObject( $row ); - } - - /*! Definition of the ranges for ISBN groups. */ diff --git a/kernel/classes/datatypes/ezisbn/ezisbnregistrantrange.php b/kernel/classes/datatypes/ezisbn/ezisbnregistrantrange.php index 1e7903a5fb8..947f926fcbd 100644 --- a/kernel/classes/datatypes/ezisbn/ezisbnregistrantrange.php +++ b/kernel/classes/datatypes/ezisbn/ezisbnregistrantrange.php @@ -28,14 +28,6 @@ class eZISBNRegistrantRange extends eZPersistentObject { - /*! - Constructor - */ - function eZISBNRegistrantRange( $row ) - { - $this->eZPersistentObject( $row ); - } - /*! Definition of the ranges for ISBN Registrant. */ diff --git a/kernel/classes/datatypes/ezisbn/ezisbntype.php b/kernel/classes/datatypes/ezisbn/ezisbntype.php index 6e51eb2fb08..8046288ce64 100644 --- a/kernel/classes/datatypes/ezisbn/ezisbntype.php +++ b/kernel/classes/datatypes/ezisbn/ezisbntype.php @@ -21,9 +21,9 @@ class eZISBNType extends eZDataType const CLASS_IS_ISBN13 = 'data_int1'; const CONTENT_VALUE = 'data_text'; - function eZISBNType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "ISBN", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "ISBN", 'Datatype name' ), array( 'serialize_supported' => true, 'object_serialize_map' => array( self::CONTENT_VALUE => 'isbn' ) ) ); } diff --git a/kernel/classes/datatypes/ezkeyword/ezkeyword.php b/kernel/classes/datatypes/ezkeyword/ezkeyword.php index 76f4f501091..5dd4ce7d1fb 100644 --- a/kernel/classes/datatypes/ezkeyword/ezkeyword.php +++ b/kernel/classes/datatypes/ezkeyword/ezkeyword.php @@ -17,13 +17,6 @@ class eZKeyword { - /*! - Construct a new keyword instance - */ - function eZKeyword( ) - { - } - function attributes() { return array( 'keywords', diff --git a/kernel/classes/datatypes/ezkeyword/ezkeywordtype.php b/kernel/classes/datatypes/ezkeyword/ezkeywordtype.php index be49785a22a..7ced5136580 100644 --- a/kernel/classes/datatypes/ezkeyword/ezkeywordtype.php +++ b/kernel/classes/datatypes/ezkeyword/ezkeywordtype.php @@ -21,12 +21,9 @@ class eZKeywordType extends eZDataType { const DATA_TYPE_STRING = 'ezkeyword'; - /*! - Initializes with a keyword id and a description. - */ - function eZKeywordType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'Keywords', 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'Keywords', 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezmatrix/ezmatrix.php b/kernel/classes/datatypes/ezmatrix/ezmatrix.php index 1dab44ae20b..eee68d67600 100644 --- a/kernel/classes/datatypes/ezmatrix/ezmatrix.php +++ b/kernel/classes/datatypes/ezmatrix/ezmatrix.php @@ -17,10 +17,12 @@ class eZMatrix { - /*! - Constructor - */ - function eZMatrix( $name, $numRows = false, $matrixColumnDefinition = false ) + /** + * @param string $name + * @param int|bool $numRows + * @param eZMatrixDefinition|bool $matrixColumnDefinition + */ + public function __construct( $name, $numRows = false, $matrixColumnDefinition = false ) { $this->Name = $name; $this->Matrix = array(); diff --git a/kernel/classes/datatypes/ezmatrix/ezmatrixdefinition.php b/kernel/classes/datatypes/ezmatrix/ezmatrixdefinition.php index a8938cad469..f6dd68af48d 100644 --- a/kernel/classes/datatypes/ezmatrix/ezmatrixdefinition.php +++ b/kernel/classes/datatypes/ezmatrix/ezmatrixdefinition.php @@ -17,10 +17,10 @@ class eZMatrixDefinition { - /*! - Constructor - */ - function eZMatrixDefinition() + /** + * Constructor + */ + public function __construct() { $this->ColumnNames = array(); } diff --git a/kernel/classes/datatypes/ezmatrix/ezmatrixtype.php b/kernel/classes/datatypes/ezmatrix/ezmatrixtype.php index c43c74c5f34..4c61c8e55c6 100644 --- a/kernel/classes/datatypes/ezmatrix/ezmatrixtype.php +++ b/kernel/classes/datatypes/ezmatrix/ezmatrixtype.php @@ -24,12 +24,9 @@ class eZMatrixType extends eZDataType const CELL_VARIABLE = '_ezmatrix_cell_'; const DATA_TYPE_STRING = 'ezmatrix'; - /*! - Constructor - */ - function eZMatrixType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'Matrix', 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'Matrix', 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezmedia/ezmedia.php b/kernel/classes/datatypes/ezmedia/ezmedia.php index 0fb01cc4edc..da679144ac3 100644 --- a/kernel/classes/datatypes/ezmedia/ezmedia.php +++ b/kernel/classes/datatypes/ezmedia/ezmedia.php @@ -17,11 +17,6 @@ class eZMedia extends eZPersistentObject { - function eZMedia( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { static $definition = array( "fields" => array( "contentobject_attribute_id" => array( 'name' => "ContentObjectAttributeID", diff --git a/kernel/classes/datatypes/ezmedia/ezmediatype.php b/kernel/classes/datatypes/ezmedia/ezmediatype.php index 92d4773a9c2..42d1345c576 100644 --- a/kernel/classes/datatypes/ezmedia/ezmediatype.php +++ b/kernel/classes/datatypes/ezmedia/ezmediatype.php @@ -23,9 +23,9 @@ class eZMediaType extends eZDataType const TYPE_FIELD = "data_text1"; const TYPE_VARIABLE = "_ezmedia_type_"; - function eZMediaType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Media", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Media", 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezmultioption/ezmultioption.php b/kernel/classes/datatypes/ezmultioption/ezmultioption.php index 19fc5ab8b95..c9b0c3724d2 100644 --- a/kernel/classes/datatypes/ezmultioption/ezmultioption.php +++ b/kernel/classes/datatypes/ezmultioption/ezmultioption.php @@ -113,9 +113,14 @@ class eZMultiOption { /*! - Initializes with empty multioption list. + */ - function eZMultiOption( $name ) + /** + * Initializes with empty multioption list. + * + * @param string $name + */ + public function __construct( $name ) { $this->Name = $name; $this->Options = array(); diff --git a/kernel/classes/datatypes/ezmultioption/ezmultioptiontype.php b/kernel/classes/datatypes/ezmultioption/ezmultioptiontype.php index cb9e7812eb7..895b9800bce 100644 --- a/kernel/classes/datatypes/ezmultioption/ezmultioptiontype.php +++ b/kernel/classes/datatypes/ezmultioption/ezmultioptiontype.php @@ -34,12 +34,9 @@ class eZMultiOptionType extends eZDataType const DEFAULT_NAME_VARIABLE = "_ezmultioption_default_name_"; const DATA_TYPE_STRING = "ezmultioption"; - /*! - Constructor to initialize the datatype. - */ - function eZMultiOptionType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Multi-option", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Multi-option", 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezmultioption2/ezmultioption2.php b/kernel/classes/datatypes/ezmultioption2/ezmultioption2.php index 916536478ed..e359571c4f1 100644 --- a/kernel/classes/datatypes/ezmultioption2/ezmultioption2.php +++ b/kernel/classes/datatypes/ezmultioption2/ezmultioption2.php @@ -15,10 +15,16 @@ */ class eZMultiOption2 { - /*! - Initializes with empty multioption2 list. - */ - function eZMultiOption2( $name, $id = 0, $multioptionIDCounter = 0, $optionCounter = 0, $groupID = 0 ) + /** + * Initializes with empty multioption2 list. + * + * @param $name + * @param int $id + * @param int $multioptionIDCounter + * @param int $optionCounter + * @param int $groupID + */ + public function __construct( $name, $id = 0, $multioptionIDCounter = 0, $optionCounter = 0, $groupID = 0 ) { $this->Name = $name; $this->ID = $id; diff --git a/kernel/classes/datatypes/ezmultioption2/ezmultioption2type.php b/kernel/classes/datatypes/ezmultioption2/ezmultioption2type.php index 656c2af8d35..8bfced00d41 100644 --- a/kernel/classes/datatypes/ezmultioption2/ezmultioption2type.php +++ b/kernel/classes/datatypes/ezmultioption2/ezmultioption2type.php @@ -38,9 +38,9 @@ class eZMultiOption2Type extends eZDataType /*! Constructor to initialize the datatype. */ - function eZMultiOption2Type() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Multi-option2", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Multi-option2", 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezmultiprice/ezmultiprice.php b/kernel/classes/datatypes/ezmultiprice/ezmultiprice.php index c07885439d9..4b54bcdae73 100644 --- a/kernel/classes/datatypes/ezmultiprice/ezmultiprice.php +++ b/kernel/classes/datatypes/ezmultiprice/ezmultiprice.php @@ -35,12 +35,9 @@ class eZMultiPrice extends eZSimplePrice const CALCULATION_TYPE_DISCOUNT_INCLUDE = 3; const CALCULATION_TYPE_DISCOUNT_EXCLUDE = 4; - /*! - Constructor - */ - function eZMultiPrice( $classAttribute, $contentObjectAttribute, $storedPrice = null ) + public function __construct( $classAttribute, $contentObjectAttribute, $storedPrice = null ) { - eZSimplePrice::eZSimplePrice( $classAttribute, $contentObjectAttribute, $storedPrice ); + parent::__construct( $classAttribute, $contentObjectAttribute, $storedPrice ); $isVatIncluded = ( $classAttribute->attribute( eZMultiPriceType::INCLUDE_VAT_FIELD ) == 1 ); $VATID = $classAttribute->attribute( eZMultiPriceType::VAT_ID_FIELD ); diff --git a/kernel/classes/datatypes/ezmultiprice/ezmultipricetype.php b/kernel/classes/datatypes/ezmultiprice/ezmultipricetype.php index 419a76d0320..eddd6c9e92e 100644 --- a/kernel/classes/datatypes/ezmultiprice/ezmultipricetype.php +++ b/kernel/classes/datatypes/ezmultiprice/ezmultipricetype.php @@ -27,9 +27,9 @@ class eZMultiPriceType extends eZDataType const INCLUDED_VAT = 1; const EXCLUDED_VAT = 2; - function eZMultiPriceType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'Multi-price', 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'Multi-price', 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezobjectrelation/ezobjectrelationtype.php b/kernel/classes/datatypes/ezobjectrelation/ezobjectrelationtype.php index 0e91362a22c..d353aeadbf2 100644 --- a/kernel/classes/datatypes/ezobjectrelation/ezobjectrelationtype.php +++ b/kernel/classes/datatypes/ezobjectrelation/ezobjectrelationtype.php @@ -19,12 +19,9 @@ class eZObjectRelationType extends eZDataType { const DATA_TYPE_STRING = "ezobjectrelation"; - /*! - Initializes with a string id and a description. - */ - function eZObjectRelationType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Object relation", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Object relation", 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezobjectrelationlist/ezobjectrelationlisttype.php b/kernel/classes/datatypes/ezobjectrelationlist/ezobjectrelationlisttype.php index 71377dc35d7..b8226fa2217 100755 --- a/kernel/classes/datatypes/ezobjectrelationlist/ezobjectrelationlisttype.php +++ b/kernel/classes/datatypes/ezobjectrelationlist/ezobjectrelationlisttype.php @@ -26,12 +26,9 @@ class eZObjectRelationListType extends eZDataType { const DATA_TYPE_STRING = "ezobjectrelationlist"; - /*! - Initializes with a string id and a description. - */ - function eZObjectRelationListType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Object relations", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Object relations", 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezoption/ezoption.php b/kernel/classes/datatypes/ezoption/ezoption.php index 553a8b037b4..fe5d717c8b2 100644 --- a/kernel/classes/datatypes/ezoption/ezoption.php +++ b/kernel/classes/datatypes/ezoption/ezoption.php @@ -27,7 +27,12 @@ class eZOption { - function eZOption( $name ) + /** + * Constructor + * + * @param string $name + */ + public function __construct( $name ) { $this->Name = $name; $this->Options = array(); diff --git a/kernel/classes/datatypes/ezoption/ezoptiontype.php b/kernel/classes/datatypes/ezoption/ezoptiontype.php index 7396abe8d9b..dfda83989bc 100644 --- a/kernel/classes/datatypes/ezoption/ezoptiontype.php +++ b/kernel/classes/datatypes/ezoption/ezoptiontype.php @@ -21,9 +21,9 @@ class eZOptionType extends eZDataType const DATA_TYPE_STRING = "ezoption"; - function eZOptionType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Option", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Option", 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezpackage/ezpackagetype.php b/kernel/classes/datatypes/ezpackage/ezpackagetype.php index b08b2428828..1431fb9ac77 100644 --- a/kernel/classes/datatypes/ezpackage/ezpackagetype.php +++ b/kernel/classes/datatypes/ezpackage/ezpackagetype.php @@ -24,12 +24,9 @@ class eZPackageType extends eZDataType const VIEW_MODE_FIELD = 'data_int1'; const VIEW_MODE_VARIABLE = '_ezpackage_view_mode_'; - /*! - Constructor - */ - function eZPackageType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'Package', 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'Package', 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezprice/ezprice.php b/kernel/classes/datatypes/ezprice/ezprice.php index 8f71d32a168..1a0e7b632c9 100644 --- a/kernel/classes/datatypes/ezprice/ezprice.php +++ b/kernel/classes/datatypes/ezprice/ezprice.php @@ -17,12 +17,9 @@ class eZPrice extends eZSimplePrice { - /*! - Constructor - */ - function eZPrice( $classAttribute, $contentObjectAttribute, $storedPrice = null ) + public function __construct( $classAttribute, $contentObjectAttribute, $storedPrice = null ) { - eZSimplePrice::eZSimplePrice( $classAttribute, $contentObjectAttribute, $storedPrice ); + parent::__construct( $classAttribute, $contentObjectAttribute, $storedPrice ); $isVatIncluded = ( $classAttribute->attribute( eZPriceType::INCLUDE_VAT_FIELD ) == 1 ); $VATID = $classAttribute->attribute( eZPriceType::VAT_ID_FIELD ); diff --git a/kernel/classes/datatypes/ezprice/ezpricetype.php b/kernel/classes/datatypes/ezprice/ezpricetype.php index b4a26827669..e2443e2d85e 100644 --- a/kernel/classes/datatypes/ezprice/ezpricetype.php +++ b/kernel/classes/datatypes/ezprice/ezpricetype.php @@ -25,9 +25,9 @@ class eZPriceType extends eZDataType const INCLUDED_VAT = 1; const EXCLUDED_VAT = 2; - function eZPriceType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Price", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Price", 'Datatype name' ), array( 'serialize_supported' => true, 'object_serialize_map' => array( 'data_float' => 'price' ) ) ); } diff --git a/kernel/classes/datatypes/ezproductcategory/ezproductcategorytype.php b/kernel/classes/datatypes/ezproductcategory/ezproductcategorytype.php index 6490a8e62c1..646fdaf70ee 100644 --- a/kernel/classes/datatypes/ezproductcategory/ezproductcategorytype.php +++ b/kernel/classes/datatypes/ezproductcategory/ezproductcategorytype.php @@ -19,9 +19,9 @@ class eZProductCategoryType extends eZDataType { const DATA_TYPE_STRING = "ezproductcategory"; - function eZProductCategoryType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Product category", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Product category", 'Datatype name' ), array( 'serialize_supported' => true, 'object_serialize_map' => array( 'data_int' => 'value' ) ) ); } diff --git a/kernel/classes/datatypes/ezrangeoption/ezrangeoption.php b/kernel/classes/datatypes/ezrangeoption/ezrangeoption.php index 7e566c47256..af723ba0529 100644 --- a/kernel/classes/datatypes/ezrangeoption/ezrangeoption.php +++ b/kernel/classes/datatypes/ezrangeoption/ezrangeoption.php @@ -17,10 +17,12 @@ class eZRangeOption { - /*! - Constructor - */ - function eZRangeOption( $name ) + /** + * Constructor + * + * @param string $name + */ + public function __construct( $name ) { $this->Name = $name; $this->Options = array(); diff --git a/kernel/classes/datatypes/ezrangeoption/ezrangeoptiontype.php b/kernel/classes/datatypes/ezrangeoption/ezrangeoptiontype.php index 64eeee9c94e..f65fceb0818 100644 --- a/kernel/classes/datatypes/ezrangeoption/ezrangeoptiontype.php +++ b/kernel/classes/datatypes/ezrangeoption/ezrangeoptiontype.php @@ -20,12 +20,9 @@ class eZRangeOptionType extends eZDataType const DATA_TYPE_STRING = "ezrangeoption"; - /*! - Constructor - */ - function eZRangeOptionType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Range option", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Range option", 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezselection/ezselectiontype.php b/kernel/classes/datatypes/ezselection/ezselectiontype.php index 70e9c2b23ca..9cb0f5f23db 100644 --- a/kernel/classes/datatypes/ezselection/ezselectiontype.php +++ b/kernel/classes/datatypes/ezselection/ezselectiontype.php @@ -21,12 +21,9 @@ class eZSelectionType extends eZDataType { const DATA_TYPE_STRING = "ezselection"; - /*! - Constructor - */ - function eZSelectionType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Selection", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Selection", 'Datatype name' ), array( 'serialize_supported' => true ) ); } @@ -375,7 +372,7 @@ function title( $contentObjectAttribute, $name = null ) function hasObjectAttributeContent( $contentObjectAttribute ) { $selected = $this->objectAttributeContent( $contentObjectAttribute ); - return isset( $selected[0] ) && $selected[0] != ''; + return isset( $selected[0] ) && $selected[0] != ''; } function sortKey( $contentObjectAttribute ) diff --git a/kernel/classes/datatypes/ezstring/ezstringtype.php b/kernel/classes/datatypes/ezstring/ezstringtype.php index 3f4079bb720..d3ed98d0ea4 100644 --- a/kernel/classes/datatypes/ezstring/ezstringtype.php +++ b/kernel/classes/datatypes/ezstring/ezstringtype.php @@ -34,9 +34,9 @@ class eZStringType extends eZDataType /*! Initializes with a string id and a description. */ - function eZStringType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'Text line', 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'Text line', 'Datatype name' ), array( 'serialize_supported' => true, 'object_serialize_map' => array( 'data_text' => 'text' ) ) ); $this->MaxLenValidator = new eZIntegerValidator(); diff --git a/kernel/classes/datatypes/ezsubtreesubscription/ezsubtreesubscriptiontype.php b/kernel/classes/datatypes/ezsubtreesubscription/ezsubtreesubscriptiontype.php index 04c6dc2a048..16289e7b9f6 100644 --- a/kernel/classes/datatypes/ezsubtreesubscription/ezsubtreesubscriptiontype.php +++ b/kernel/classes/datatypes/ezsubtreesubscription/ezsubtreesubscriptiontype.php @@ -18,12 +18,9 @@ class eZSubtreeSubscriptionType extends eZDataType { const DATA_TYPE_STRING = "ezsubtreesubscription"; - /*! - Constructor - */ - function eZSubtreeSubscriptionType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Subtree subscription", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Subtree subscription", 'Datatype name' ), array( 'serialize_supported' => true, 'object_serialize_map' => array( 'data_int' => 'value' ) ) ); } diff --git a/kernel/classes/datatypes/eztext/eztexttype.php b/kernel/classes/datatypes/eztext/eztexttype.php index 8593d20324a..a9abe2a8bdb 100644 --- a/kernel/classes/datatypes/eztext/eztexttype.php +++ b/kernel/classes/datatypes/eztext/eztexttype.php @@ -21,9 +21,9 @@ class eZTextType extends eZDataType const COLS_FIELD = 'data_int1'; const COLS_VARIABLE = '_eztext_cols_'; - function eZTextType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Text block", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Text block", 'Datatype name' ), array( 'serialize_supported' => true, 'object_serialize_map' => array( 'data_text' => 'text' ) ) ); } diff --git a/kernel/classes/datatypes/eztime/eztimetype.php b/kernel/classes/datatypes/eztime/eztimetype.php index a57f9ef1233..cdb058e7ee8 100644 --- a/kernel/classes/datatypes/eztime/eztimetype.php +++ b/kernel/classes/datatypes/eztime/eztimetype.php @@ -23,9 +23,9 @@ class eZTimeType extends eZDataType const DEFAULT_EMTPY = 0; const DEFAULT_CURRENT_DATE = 1; - function eZTimeType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Time", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Time", 'Datatype name' ), array( 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezurl/ezurl.php b/kernel/classes/datatypes/ezurl/ezurl.php index f01f1b9d3bb..45072d755cf 100644 --- a/kernel/classes/datatypes/ezurl/ezurl.php +++ b/kernel/classes/datatypes/ezurl/ezurl.php @@ -21,11 +21,6 @@ class eZURL extends eZPersistentObject { - function eZURL( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { static $definition = array( 'fields' => array( 'id' => array( 'name' => 'ID', diff --git a/kernel/classes/datatypes/ezurl/ezurlobjectlink.php b/kernel/classes/datatypes/ezurl/ezurlobjectlink.php index 21126276934..15d8a0aca93 100644 --- a/kernel/classes/datatypes/ezurl/ezurlobjectlink.php +++ b/kernel/classes/datatypes/ezurl/ezurlobjectlink.php @@ -17,14 +17,6 @@ class eZURLObjectLink extends eZPersistentObject { - /*! - Constructor - */ - function eZURLObjectLink( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { static $definition = array( 'fields' => array( 'url_id' => array( 'name' => 'URLID', diff --git a/kernel/classes/datatypes/ezurl/ezurltype.php b/kernel/classes/datatypes/ezurl/ezurltype.php index 85cb5cdbaac..02b6050653f 100644 --- a/kernel/classes/datatypes/ezurl/ezurltype.php +++ b/kernel/classes/datatypes/ezurl/ezurltype.php @@ -20,12 +20,9 @@ class eZURLType extends eZDataType { const DATA_TYPE_STRING = 'ezurl'; - /*! - Initializes with a url id and a description. - */ - function eZURLType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'URL', 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'URL', 'Datatype name' ), array( 'serialize_supported' => true ) ); $this->MaxLenValidator = new eZIntegerValidator(); } diff --git a/kernel/classes/datatypes/ezuser/ezforgotpassword.php b/kernel/classes/datatypes/ezuser/ezforgotpassword.php index e7bc78a9b8d..e77468c9149 100644 --- a/kernel/classes/datatypes/ezuser/ezforgotpassword.php +++ b/kernel/classes/datatypes/ezuser/ezforgotpassword.php @@ -17,14 +17,6 @@ class eZForgotPassword extends eZPersistentObject { - /*! - Constructor - */ - function eZForgotPassword( $row = array() ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/datatypes/ezuser/ezldapuser.php b/kernel/classes/datatypes/ezuser/ezldapuser.php index 96cc54c96a6..aa4253a041d 100644 --- a/kernel/classes/datatypes/ezuser/ezldapuser.php +++ b/kernel/classes/datatypes/ezuser/ezldapuser.php @@ -16,13 +16,6 @@ */ class eZLDAPUser extends eZUser { - /*! - Constructor - */ - function eZLDAPUser() - { - } - /*! \static Logs in the user if applied username and password is diff --git a/kernel/classes/datatypes/ezuser/eztextfileuser.php b/kernel/classes/datatypes/ezuser/eztextfileuser.php index bc2956f65d0..2f132e41b65 100644 --- a/kernel/classes/datatypes/ezuser/eztextfileuser.php +++ b/kernel/classes/datatypes/ezuser/eztextfileuser.php @@ -25,10 +25,7 @@ class eZTextFileUser extends eZUser { - /*! - Constructor - */ - function eZTextFileUser() + public function __construct() { } diff --git a/kernel/classes/datatypes/ezuser/ezuser.php b/kernel/classes/datatypes/ezuser/ezuser.php index e4f5db9d5eb..318f2e0794d 100644 --- a/kernel/classes/datatypes/ezuser/ezuser.php +++ b/kernel/classes/datatypes/ezuser/ezuser.php @@ -52,9 +52,9 @@ class eZUser extends eZPersistentObject protected static $anonymousId = null; - function eZUser( $row = array() ) + public function __construct( $row = array() ) { - $this->eZPersistentObject( $row ); + parent::__construct( $row ); $this->OriginalPassword = false; $this->OriginalPasswordConfirm = false; } @@ -1175,7 +1175,7 @@ static function instance( $id = false ) $userId = $currentUser->attribute( 'contentobject_id' ); $userInfo = array(); - $userInfo[$userId] = array( + $userInfo[$userId] = array( 'contentobject_id' => $userId, 'login' => $currentUser->attribute( 'login' ), 'email' => $currentUser->attribute( 'email' ), @@ -1195,7 +1195,7 @@ static function instance( $id = false ) { eZDebug::writeError( "Undefined ssoHandler class: $className", __METHOD__ ); } - } + } } } diff --git a/kernel/classes/datatypes/ezuser/ezuseraccountkey.php b/kernel/classes/datatypes/ezuser/ezuseraccountkey.php index 3e254e2d5d3..74774e8ab0b 100644 --- a/kernel/classes/datatypes/ezuser/ezuseraccountkey.php +++ b/kernel/classes/datatypes/ezuser/ezuseraccountkey.php @@ -17,14 +17,6 @@ class eZUserAccountKey extends eZPersistentObject { - /*! - Constructor - */ - function eZUserAccountKey( $row = array() ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( 'fields' => array( 'id' => array( 'name' => 'ID', diff --git a/kernel/classes/datatypes/ezuser/ezuserloginhandler.php b/kernel/classes/datatypes/ezuser/ezuserloginhandler.php index 2c674cf176f..c0cf7ae0839 100644 --- a/kernel/classes/datatypes/ezuser/ezuserloginhandler.php +++ b/kernel/classes/datatypes/ezuser/ezuserloginhandler.php @@ -30,13 +30,6 @@ class eZUserLoginHandler const STEP_CHECK_USER = 3; const STEP_LOGIN_USER = 4; - /*! - Constructor - */ - function eZUserLoginHandler() - { - } - /*! \static Clean up session variables used by the login procedure. diff --git a/kernel/classes/datatypes/ezuser/ezusersetting.php b/kernel/classes/datatypes/ezuser/ezusersetting.php index f70fad234f0..82a6355f552 100644 --- a/kernel/classes/datatypes/ezuser/ezusersetting.php +++ b/kernel/classes/datatypes/ezuser/ezusersetting.php @@ -16,11 +16,6 @@ class eZUserSetting extends eZPersistentObject { - function eZUserSetting( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { static $definition = array( 'fields' => array( 'user_id' => array( 'name' => 'UserID', diff --git a/kernel/classes/datatypes/ezuser/ezusertype.php b/kernel/classes/datatypes/ezuser/ezusertype.php index f39b1598bb6..04292d939a0 100644 --- a/kernel/classes/datatypes/ezuser/ezusertype.php +++ b/kernel/classes/datatypes/ezuser/ezusertype.php @@ -19,9 +19,9 @@ class eZUserType extends eZDataType { const DATA_TYPE_STRING = "ezuser"; - function eZUserType( ) + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "User account", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "User account", 'Datatype name' ), array( 'translation_allowed' => false, 'serialize_supported' => true ) ); } diff --git a/kernel/classes/datatypes/ezxmltext/ezxmlinputhandler.php b/kernel/classes/datatypes/ezxmltext/ezxmlinputhandler.php index f9aa3a746d7..49f23cbbb20 100644 --- a/kernel/classes/datatypes/ezxmltext/ezxmlinputhandler.php +++ b/kernel/classes/datatypes/ezxmltext/ezxmlinputhandler.php @@ -17,10 +17,14 @@ class eZXMLInputHandler { - /*! - Constructor - */ - function eZXMLInputHandler( $xmlData, $aliasedType, $contentObjectAttribute ) + /** + * Constructor + * + * @param string $xmlData + * @param string $aliasedType + * @param eZContentObjectAttribute $contentObjectAttribute + */ + public function __construct( $xmlData, $aliasedType, $contentObjectAttribute ) { $this->XMLData = preg_replace( '/[^\x{0009}\x{000a}\x{000d}\x{0020}-\x{D7FF}\x{E000}-\x{FFFD}]+/u', '', $xmlData, -1, $count ); if ( $count > 0 ) diff --git a/kernel/classes/datatypes/ezxmltext/ezxmlinputparser.php b/kernel/classes/datatypes/ezxmltext/ezxmlinputparser.php index dac23d9896b..72aa25e4c47 100644 --- a/kernel/classes/datatypes/ezxmltext/ezxmlinputparser.php +++ b/kernel/classes/datatypes/ezxmltext/ezxmlinputparser.php @@ -117,7 +117,7 @@ function tagNameHandler( $tagName, &$attributes ) \param $detectErrorLevel Determines types of errors that will be detected and added to error log ($Messages). */ - function eZXMLInputParser( $validateErrorLevel = self::ERROR_NONE, $detectErrorLevel = self::ERROR_NONE, $parseLineBreaks = false, + public function __construct( $validateErrorLevel = self::ERROR_NONE, $detectErrorLevel = self::ERROR_NONE, $parseLineBreaks = false, $removeDefaultAttrs = false ) { // Back-compatibility fixes: diff --git a/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php b/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php index 1ed1d435d1e..d754dfbddb9 100644 --- a/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php +++ b/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php @@ -18,10 +18,14 @@ // if ( !class_exists( 'eZXMLSchema' ) ) class eZXMLOutputHandler { - /*! - Constructor - */ - function eZXMLOutputHandler( $xmlData, $aliasedType, $contentObjectAttribute = null ) + /** + * Constructor + * + * @param string $xmlData + * @param string $aliasedType + * @param eZContentObjectAttribute|null $contentObjectAttribute + */ + public function __construct( $xmlData, $aliasedType, $contentObjectAttribute = null ) { $this->XMLData = $xmlData; $this->AliasedHandler = null; diff --git a/kernel/classes/datatypes/ezxmltext/ezxmlschema.php b/kernel/classes/datatypes/ezxmltext/ezxmlschema.php index 440b44d9f61..d9197dd0dc0 100644 --- a/kernel/classes/datatypes/ezxmltext/ezxmlschema.php +++ b/kernel/classes/datatypes/ezxmltext/ezxmlschema.php @@ -139,7 +139,10 @@ class eZXMLSchema 'attributes' => false ) ); - function eZXMLSchema() + /** + * Constructor + */ + public function __construct() { $ini = eZINI::instance( 'content.ini' ); diff --git a/kernel/classes/datatypes/ezxmltext/ezxmltext.php b/kernel/classes/datatypes/ezxmltext/ezxmltext.php index d5b58ffe3f7..46f1b28d7bd 100644 --- a/kernel/classes/datatypes/ezxmltext/ezxmltext.php +++ b/kernel/classes/datatypes/ezxmltext/ezxmltext.php @@ -17,7 +17,13 @@ class eZXMLText { - function eZXMLText( $xmlData, $contentObjectAttribute ) + /** + * Constructor + * + * @param string $xmlData + * @param eZContentObjectAttribute $contentObjectAttribute + */ + public function __construct( $xmlData, $contentObjectAttribute ) { $this->XMLData = $xmlData; $this->ContentObjectAttribute = $contentObjectAttribute; diff --git a/kernel/classes/datatypes/ezxmltext/ezxmltexttype.php b/kernel/classes/datatypes/ezxmltext/ezxmltexttype.php index c88ddb85583..f81712097e6 100644 --- a/kernel/classes/datatypes/ezxmltext/ezxmltexttype.php +++ b/kernel/classes/datatypes/ezxmltext/ezxmltexttype.php @@ -95,9 +95,9 @@ class eZXMLTextType extends eZDataType // timestamp is less than this it needs to be upgraded until it is correct. const VERSION_TIMESTAMP = 1045487555; // AS 21-09-2007: should be the same as VERSION_30_TIMESTAMP - function eZXMLTextType() + public function __construct() { - $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "XML block", 'Datatype name' ), + parent::__construct( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "XML block", 'Datatype name' ), array( 'serialize_supported' => true ) ); $this->deletedStoredObjectAttribute = array(); } diff --git a/kernel/classes/datatypes/ezxmltext/handlers/input/ezsimplifiedxmlinput.php b/kernel/classes/datatypes/ezxmltext/handlers/input/ezsimplifiedxmlinput.php index daa82b9f444..6fd59132490 100644 --- a/kernel/classes/datatypes/ezxmltext/handlers/input/ezsimplifiedxmlinput.php +++ b/kernel/classes/datatypes/ezxmltext/handlers/input/ezsimplifiedxmlinput.php @@ -10,9 +10,9 @@ class eZSimplifiedXMLInput extends eZXMLInputHandler { - function eZSimplifiedXMLInput( $xmlData, $aliasedType, $contentObjectAttribute ) + public function __construct( $xmlData, $aliasedType, $contentObjectAttribute ) { - $this->eZXMLInputHandler( $xmlData, $aliasedType, $contentObjectAttribute ); + parent::__construct( $xmlData, $aliasedType, $contentObjectAttribute ); $this->IsInputValid = true; $this->ContentObjectAttribute = $contentObjectAttribute; diff --git a/kernel/classes/datatypes/ezxmltext/handlers/input/ezsimplifiedxmlinputparser.php b/kernel/classes/datatypes/ezxmltext/handlers/input/ezsimplifiedxmlinputparser.php index d7cb5e82a9c..473dfaa6fcf 100644 --- a/kernel/classes/datatypes/ezxmltext/handlers/input/ezsimplifiedxmlinputparser.php +++ b/kernel/classes/datatypes/ezxmltext/handlers/input/ezsimplifiedxmlinputparser.php @@ -107,11 +107,11 @@ class eZSimplifiedXMLInputParser extends eZXMLInputParser '#text' => array( 'structHandler' => 'structHandlerText' ) ); - function eZSimplifiedXMLInputParser( $contentObjectID, $validateErrorLevel = eZXMLInputParser::ERROR_ALL, $detectErrorLevel = eZXMLInputParser::ERROR_ALL, + public function __construct( $contentObjectID, $validateErrorLevel = eZXMLInputParser::ERROR_ALL, $detectErrorLevel = eZXMLInputParser::ERROR_ALL, $parseLineBreaks = false, $removeDefaultAttrs = false ) { $this->contentObjectID = $contentObjectID; - $this->eZXMLInputParser( $validateErrorLevel, $detectErrorLevel, $parseLineBreaks, $removeDefaultAttrs ); + parent::__construct( $validateErrorLevel, $detectErrorLevel, $parseLineBreaks, $removeDefaultAttrs ); } /* diff --git a/kernel/classes/datatypes/ezxmltext/handlers/output/ezpdfxmloutput.php b/kernel/classes/datatypes/ezxmltext/handlers/output/ezpdfxmloutput.php index 1679231a2f1..bb62312ad00 100644 --- a/kernel/classes/datatypes/ezxmltext/handlers/output/ezpdfxmloutput.php +++ b/kernel/classes/datatypes/ezxmltext/handlers/output/ezpdfxmloutput.php @@ -11,9 +11,9 @@ class eZPDFXMLOutput extends eZXHTMLXMLOutput { - function eZPDFXMLOutput( $xmlData, $aliasedType, $contentObjectAttribute = null ) + public function __construct( $xmlData, $aliasedType, $contentObjectAttribute = null ) { - $this->eZXHTMLXMLOutput( $xmlData, $aliasedType, $contentObjectAttribute ); + parent::__construct( $xmlData, $aliasedType, $contentObjectAttribute ); $this->OutputTags['table']['initHandler'] = 'initHandlerTable'; $this->OutputTags['li']['initHandler'] = 'initHandlerLi'; diff --git a/kernel/classes/datatypes/ezxmltext/handlers/output/ezplainxmloutput.php b/kernel/classes/datatypes/ezxmltext/handlers/output/ezplainxmloutput.php index 08ab4e279f5..c684b60d40d 100644 --- a/kernel/classes/datatypes/ezxmltext/handlers/output/ezplainxmloutput.php +++ b/kernel/classes/datatypes/ezxmltext/handlers/output/ezplainxmloutput.php @@ -10,11 +10,6 @@ class eZPlainXMLOutput extends eZXMLOutputHandler { - function eZPlainXMLOutput( $xmlData, $aliasedType ) - { - $this->eZXMLOutputHandler( $xmlData, $aliasedType ); - } - function &outputText() { $retText = "
" . htmlspecialchars( $this->xmlData() ) . ""; diff --git a/kernel/classes/datatypes/ezxmltext/handlers/output/ezxhtmlxmloutput.php b/kernel/classes/datatypes/ezxmltext/handlers/output/ezxhtmlxmloutput.php index 61287247ccd..2ca94b0d48b 100644 --- a/kernel/classes/datatypes/ezxmltext/handlers/output/ezxhtmlxmloutput.php +++ b/kernel/classes/datatypes/ezxmltext/handlers/output/ezxhtmlxmloutput.php @@ -125,9 +125,9 @@ class eZXHTMLXMLOutput extends eZXMLOutputHandler 'renderHandler' => 'renderText' ) ); - function eZXHTMLXMLOutput( $xmlData, $aliasedType, $contentObjectAttribute = null ) + public function __construct( $xmlData, $aliasedType, $contentObjectAttribute = null ) { - $this->eZXMLOutputHandler( $xmlData, $aliasedType, $contentObjectAttribute ); + parent::__construct( $xmlData, $aliasedType, $contentObjectAttribute ); $ini = eZINI::instance('ezxml.ini'); if ( $ini->variable( 'ezxhtml', 'RenderParagraphInTableCells' ) == 'disabled' ) diff --git a/kernel/classes/ezaudit.php b/kernel/classes/ezaudit.php index 2cf5f6e6666..8d850b4fcb8 100644 --- a/kernel/classes/ezaudit.php +++ b/kernel/classes/ezaudit.php @@ -12,13 +12,6 @@ class eZAudit { const DEFAULT_LOG_DIR = 'log/audit'; - /** - * Creates a new audit object. - */ - function eZAudit() - { - } - /** * Returns an associative array of all names of audit and the log files used by this class, * Will be fetched from ini settings. diff --git a/kernel/classes/ezbasket.php b/kernel/classes/ezbasket.php index f9de0a985b2..b986ef5c02c 100644 --- a/kernel/classes/ezbasket.php +++ b/kernel/classes/ezbasket.php @@ -23,11 +23,6 @@ class eZBasket extends eZPersistentObject */ const ITEM_LIMIT = 3000; - function eZBasket( $row ) - { - $this->eZPersistentObject( $row ); - } - /*! \return the persistent object definition for the eZCard class. */ diff --git a/kernel/classes/ezbinaryfilehandler.php b/kernel/classes/ezbinaryfilehandler.php index 63cead626e2..27e3c0725b0 100644 --- a/kernel/classes/ezbinaryfilehandler.php +++ b/kernel/classes/ezbinaryfilehandler.php @@ -32,7 +32,14 @@ class eZBinaryFileHandler const RESULT_OK = 1; const RESULT_UNAVAILABLE = 2; - function eZBinaryFileHandler( $identifier, $name, $handleType ) + /** + * Constructor + * + * @param string $identifier + * @param string $name + * @param string $handleType + */ + public function __construct( $identifier, $name, $handleType ) { $this->Info = array(); $this->Info['identifier'] = $identifier; diff --git a/kernel/classes/ezclusterfilefailure.php b/kernel/classes/ezclusterfilefailure.php index d91c002e690..ac28be4f72d 100644 --- a/kernel/classes/ezclusterfilefailure.php +++ b/kernel/classes/ezclusterfilefailure.php @@ -22,11 +22,18 @@ class eZClusterFileFailure FILE_CONTENT_GENERATE = 2, FILE_RETRIEVAL_FAILED = 3; - // Error codes: - // 1 - file expired - // 2 - file contents must be manually generated - // 3 - Failed to retrieve file from DFS - function eZClusterFileFailure( $errno, $message = false ) + /** + * Constructor + * + * Error codes: + * 1 - file expired + * 2 - file contents must be manually generated + * 3 - Failed to retrieve file from DFS + * + * @param int $errno + * @param bool|string $message + */ + public function __construct( $errno, $message = false ) { $this->Errno = $errno; $this->Message = $message; diff --git a/kernel/classes/ezcodetemplate.php b/kernel/classes/ezcodetemplate.php index b0141202934..3be5b219552 100644 --- a/kernel/classes/ezcodetemplate.php +++ b/kernel/classes/ezcodetemplate.php @@ -25,10 +25,10 @@ class eZCodeTemplate /// Code file was updated, but no new elements has been added const STATUS_NO_CHANGE = 2; - /*! - Constructor - */ - function eZCodeTemplate() + /** + * + */ + public function __construct() { $ini = eZINI::instance( 'codetemplate.ini' ); $this->Templates = array(); diff --git a/kernel/classes/ezcollaborationgroup.php b/kernel/classes/ezcollaborationgroup.php index 5932d04b013..b43c58c5ace 100644 --- a/kernel/classes/ezcollaborationgroup.php +++ b/kernel/classes/ezcollaborationgroup.php @@ -16,14 +16,6 @@ class eZCollaborationGroup extends eZPersistentObject { - /*! - Constructor - */ - function eZCollaborationGroup( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( 'fields' => array( 'id' => array( 'name' => 'ID', diff --git a/kernel/classes/ezcollaborationitem.php b/kernel/classes/ezcollaborationitem.php index f73a9f288aa..229675ce384 100644 --- a/kernel/classes/ezcollaborationitem.php +++ b/kernel/classes/ezcollaborationitem.php @@ -20,14 +20,6 @@ class eZCollaborationItem extends eZPersistentObject const STATUS_INACTIVE = 2; const STATUS_ARCHIVE = 3; - /*! - Constructor - */ - function eZCollaborationItem( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( 'fields' => array( 'id' => array( 'name' => 'ID', diff --git a/kernel/classes/ezcollaborationitemgrouplink.php b/kernel/classes/ezcollaborationitemgrouplink.php index 951af5cc958..400a0682246 100644 --- a/kernel/classes/ezcollaborationitemgrouplink.php +++ b/kernel/classes/ezcollaborationitemgrouplink.php @@ -16,14 +16,6 @@ class eZCollaborationItemGroupLink extends eZPersistentObject { - /*! - Constructor - */ - function eZCollaborationItemGroupLink( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( 'fields' => array( 'collaboration_id' => array( 'name' => 'CollaborationID', diff --git a/kernel/classes/ezcollaborationitemhandler.php b/kernel/classes/ezcollaborationitemhandler.php index c2454d92d9b..2aef7441bed 100644 --- a/kernel/classes/ezcollaborationitemhandler.php +++ b/kernel/classes/ezcollaborationitemhandler.php @@ -24,10 +24,16 @@ class eZCollaborationItemHandler const NOTIFICATION_COLLECTION_PER_PARTICIPATION_ROLE = 3; /*! - Initializes the handler with identifier and name. - Optional parameters can be placed in \a $parameters. + */ - function eZCollaborationItemHandler( $typeIdentifier, $typeName, $parameters = array() ) + /** + * Initializes the handler with identifier and name and optional parameters + * + * @param string $typeIdentifier + * @param string $typeName + * @param array $parameters + */ + public function __construct( $typeIdentifier, $typeName, $parameters = array() ) { $parameters = array_merge( array( 'use-messages' => false, 'type-class-list' => array(), diff --git a/kernel/classes/ezcollaborationitemmessagelink.php b/kernel/classes/ezcollaborationitemmessagelink.php index 8c75f171d5e..9d1b7c37a23 100644 --- a/kernel/classes/ezcollaborationitemmessagelink.php +++ b/kernel/classes/ezcollaborationitemmessagelink.php @@ -16,14 +16,6 @@ class eZCollaborationItemMessageLink extends eZPersistentObject { - /*! - Constructor - */ - function eZCollaborationItemMessageLink( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( 'fields' => array( 'id' => array( 'name' => 'ID', diff --git a/kernel/classes/ezcollaborationitemparticipantlink.php b/kernel/classes/ezcollaborationitemparticipantlink.php index 5d926a0f20c..9c1c6d7987c 100644 --- a/kernel/classes/ezcollaborationitemparticipantlink.php +++ b/kernel/classes/ezcollaborationitemparticipantlink.php @@ -31,14 +31,6 @@ class eZCollaborationItemParticipantLink extends eZPersistentObject // Everything from 1024 and above is considered custom and is specific per collaboration handler. const ROLE_CUSTOM = 1024; - /*! - Constructor - */ - function eZCollaborationItemParticipantLink( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( 'fields' => array( 'collaboration_id' => array( 'name' => 'CollaborationID', diff --git a/kernel/classes/ezcollaborationitemstatus.php b/kernel/classes/ezcollaborationitemstatus.php index 6a6c25ade63..3bf74e691f7 100644 --- a/kernel/classes/ezcollaborationitemstatus.php +++ b/kernel/classes/ezcollaborationitemstatus.php @@ -16,14 +16,6 @@ class eZCollaborationItemStatus extends eZPersistentObject { - /*! - Constructor - */ - function eZCollaborationItemStatus( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( 'fields' => array( 'collaboration_id' => array( 'name' => 'CollaborationID', diff --git a/kernel/classes/ezcollaborationprofile.php b/kernel/classes/ezcollaborationprofile.php index 2c2a204a663..e258848e3a8 100644 --- a/kernel/classes/ezcollaborationprofile.php +++ b/kernel/classes/ezcollaborationprofile.php @@ -16,14 +16,6 @@ class eZCollaborationProfile extends eZPersistentObject { - /*! - Constructor - */ - function eZCollaborationProfile( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( 'fields' => array( 'id' => array( 'name' => 'ID', diff --git a/kernel/classes/ezcollaborationsimplemessage.php b/kernel/classes/ezcollaborationsimplemessage.php index 3bf5353dc11..a3fe29e5d99 100644 --- a/kernel/classes/ezcollaborationsimplemessage.php +++ b/kernel/classes/ezcollaborationsimplemessage.php @@ -16,14 +16,6 @@ class eZCollaborationSimpleMessage extends eZPersistentObject { - /*! - Constructor - */ - function eZCollaborationSimpleMessage( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( 'fields' => array( 'id' => array( 'name' => 'ID', diff --git a/kernel/classes/ezcollaborationviewhandler.php b/kernel/classes/ezcollaborationviewhandler.php index a2fb498ec0c..8fcb4745876 100644 --- a/kernel/classes/ezcollaborationviewhandler.php +++ b/kernel/classes/ezcollaborationviewhandler.php @@ -19,10 +19,13 @@ class eZCollaborationViewHandler const TYPE_STANDARD = 1; const TYPE_GROUP = 2; - /*! - Initializes the view mode. - */ - function eZCollaborationViewHandler( $viewMode, $viewType ) + /** + * Initializes the view mode. + * + * @param string $viewMode + * @param int $viewType + */ + public function __construct( $viewMode, $viewType ) { $this->ViewMode = $viewMode; $this->ViewType = $viewType; diff --git a/kernel/classes/ezconfirmorderhandler.php b/kernel/classes/ezconfirmorderhandler.php index e3e0d1e55c1..12c483f21cd 100644 --- a/kernel/classes/ezconfirmorderhandler.php +++ b/kernel/classes/ezconfirmorderhandler.php @@ -16,13 +16,6 @@ class eZConfirmOrderHandler { - /*! - Constructor - */ - function eZConfirmOrderHandler() - { - } - /** * Returns a shared instance of the eZConfirmOrderHandler class * as defined in shopaccount.ini[HandlerSettings]Repositories diff --git a/kernel/classes/ezcontentbrowse.php b/kernel/classes/ezcontentbrowse.php index 7b3658039cc..ffa7799c03a 100644 --- a/kernel/classes/ezcontentbrowse.php +++ b/kernel/classes/ezcontentbrowse.php @@ -31,11 +31,13 @@ class eZContentBrowse { - /*! - Initializes the object with the session data if they are found. - If \a $params is supplied it used instead. - */ - function eZContentBrowse( $params = array() ) + /** + * Initializes the object with the session data if they are found. + * If $params is supplied, it uses them instead + * + * @param array $params + */ + function __construct( $params = array() ) { $http = eZHTTPTool::instance(); if ( !$params && $http->hasSessionVariable( 'BrowseParameters' ) ) diff --git a/kernel/classes/ezcontentbrowsebookmark.php b/kernel/classes/ezcontentbrowsebookmark.php index 6e6de7b0bbc..bd89fc0f1e7 100644 --- a/kernel/classes/ezcontentbrowsebookmark.php +++ b/kernel/classes/ezcontentbrowsebookmark.php @@ -33,11 +33,6 @@ class eZContentBrowseBookmark extends eZPersistentObject { - function eZContentBrowseBookmark( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/ezcontentbrowserecent.php b/kernel/classes/ezcontentbrowserecent.php index 1ddb6f4aeb3..5ef867d57dd 100644 --- a/kernel/classes/ezcontentbrowserecent.php +++ b/kernel/classes/ezcontentbrowserecent.php @@ -32,11 +32,6 @@ */ class eZContentBrowseRecent extends eZPersistentObject { - function eZContentBrowseRecent( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/ezcontentclass.php b/kernel/classes/ezcontentclass.php index 593291ee6e6..9d8aa49e773 100644 --- a/kernel/classes/ezcontentclass.php +++ b/kernel/classes/ezcontentclass.php @@ -28,11 +28,11 @@ class eZContentClass extends eZPersistentObject */ const CONTENT_OBJECT_NAME_MAX_LENGTH = 255; - function eZContentClass( $row ) + public function __construct( $row ) { if ( is_array( $row ) ) { - $this->eZPersistentObject( $row ); + parent::__construct( $row ); $this->VersionCount = false; $this->InGroups = null; $this->AllGroups = null; diff --git a/kernel/classes/ezcontentclassattribute.php b/kernel/classes/ezcontentclassattribute.php index 7a9f0b0b5e6..8d837c7f452 100644 --- a/kernel/classes/ezcontentclassattribute.php +++ b/kernel/classes/ezcontentclassattribute.php @@ -17,9 +17,9 @@ class eZContentClassAttribute extends eZPersistentObject { - function eZContentClassAttribute( $row ) + public function __construct( $row ) { - $this->eZPersistentObject( $row ); + parent::__construct($row); $this->Content = null; $this->DisplayInfo = null; diff --git a/kernel/classes/ezcontentclassclassgroup.php b/kernel/classes/ezcontentclassclassgroup.php index 2f5b6583239..357d0695d42 100644 --- a/kernel/classes/ezcontentclassclassgroup.php +++ b/kernel/classes/ezcontentclassclassgroup.php @@ -16,11 +16,6 @@ class eZContentClassClassGroup extends eZPersistentObject { - function eZContentClassClassGroup( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "contentclass_id" => array( 'name' => "ContentClassID", diff --git a/kernel/classes/ezcontentclassgroup.php b/kernel/classes/ezcontentclassgroup.php index 4e47bc92574..efec0cc0e9c 100644 --- a/kernel/classes/ezcontentclassgroup.php +++ b/kernel/classes/ezcontentclassgroup.php @@ -16,11 +16,6 @@ class eZContentClassGroup extends eZPersistentObject { - function eZContentClassGroup( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/ezcontentclassname.php b/kernel/classes/ezcontentclassname.php index 07536965a83..1455d89c445 100644 --- a/kernel/classes/ezcontentclassname.php +++ b/kernel/classes/ezcontentclassname.php @@ -10,11 +10,6 @@ class eZContentClassName extends eZPersistentObject { - function eZContentClassName( $row ) - { - eZPersistentObject::eZPersistentObject( $row ); - } - static function definition() { return array( 'fields' => array( 'contentclass_id' => array( 'name' => 'ContentClassID', diff --git a/kernel/classes/ezcontentclassnamelist.php b/kernel/classes/ezcontentclassnamelist.php index 7fec1d4921f..ec5340d524e 100644 --- a/kernel/classes/ezcontentclassnamelist.php +++ b/kernel/classes/ezcontentclassnamelist.php @@ -10,9 +10,9 @@ class eZContentClassNameList extends eZSerializedObjectNameList { - function eZContentClassNameList( $serializedNameList = false ) + public function __construct( $serializedNameList = false ) { - eZSerializedObjectNameList::eZSerializedObjectNameList( $serializedNameList ); + parent::__construct( $serializedNameList ); } function create( $serializedNamesString = false ) diff --git a/kernel/classes/ezcontentlanguage.php b/kernel/classes/ezcontentlanguage.php index b230851e826..a0e347ba9c4 100644 --- a/kernel/classes/ezcontentlanguage.php +++ b/kernel/classes/ezcontentlanguage.php @@ -10,16 +10,6 @@ class eZContentLanguage extends eZPersistentObject { - /** - * Constructor. - * - * \param row Parameter passed to the constructor of eZPersistentObject. - */ - function eZContentLanguage( $row = array() ) - { - $this->eZPersistentObject( $row ); - } - /** * Persistent object's definition. */ diff --git a/kernel/classes/ezcontentobject.php b/kernel/classes/ezcontentobject.php index c762779f607..61082367654 100644 --- a/kernel/classes/ezcontentobject.php +++ b/kernel/classes/ezcontentobject.php @@ -45,9 +45,9 @@ class eZContentObject extends eZPersistentObject * * @param int|array $row */ - function eZContentObject( $row ) + public function __construct( $row ) { - $this->eZPersistentObject( $row ); + parent::__construct( $row ); $this->ClassIdentifier = false; if ( isset( $row['contentclass_identifier'] ) ) $this->ClassIdentifier = $row['contentclass_identifier']; diff --git a/kernel/classes/ezcontentobjectassignmenthandler.php b/kernel/classes/ezcontentobjectassignmenthandler.php index 7307f9bf078..8b7f6c1442c 100644 --- a/kernel/classes/ezcontentobjectassignmenthandler.php +++ b/kernel/classes/ezcontentobjectassignmenthandler.php @@ -16,10 +16,12 @@ class eZContentObjectAssignmentHandler { - /*! - Constructor - */ - function eZContentObjectAssignmentHandler( $contentObject, $contentVersion ) + /** + * Constructor + * @param eZContentObject $contentObject + * @param eZContentObjectVersion $contentVersion + */ + public function __construct( $contentObject, $contentVersion ) { $this->CurrentObject = $contentObject; $this->CurrentVersion = $contentVersion; @@ -214,7 +216,14 @@ function setupAssignments( $parameters ) } /// \privatesection + /** + * @var eZContentObject + */ public $CurrentObject; + + /** + * @var eZContentObjectVersion + */ public $ContentVersion; } diff --git a/kernel/classes/ezcontentobjectattribute.php b/kernel/classes/ezcontentobjectattribute.php index 1357a5d3809..64a6b4efa7e 100644 --- a/kernel/classes/ezcontentobjectattribute.php +++ b/kernel/classes/ezcontentobjectattribute.php @@ -18,7 +18,7 @@ class eZContentObjectAttribute extends eZPersistentObject { - function eZContentObjectAttribute( $row ) + public function __construct( $row ) { $this->Content = null; $this->DisplayInfo = null; @@ -31,7 +31,7 @@ function eZContentObjectAttribute( $row ) $this->HasValidationError = false; $this->DataTypeCustom = null; $this->DataTypeString = null; - $this->eZPersistentObject( $row ); + parent::__construct( $row ); } static function definition() diff --git a/kernel/classes/ezcontentobjectedithandler.php b/kernel/classes/ezcontentobjectedithandler.php index 0526605ee09..850f4983a2e 100644 --- a/kernel/classes/ezcontentobjectedithandler.php +++ b/kernel/classes/ezcontentobjectedithandler.php @@ -17,13 +17,6 @@ class eZContentObjectEditHandler { - /*! - Constructor - */ - function eZContentObjectEditHandler() - { - } - /*! Override this function in the extension to handle edit input parameters. */ diff --git a/kernel/classes/ezcontentobjecttranslation.php b/kernel/classes/ezcontentobjecttranslation.php index e9c6f13acf0..191e430aefc 100644 --- a/kernel/classes/ezcontentobjecttranslation.php +++ b/kernel/classes/ezcontentobjecttranslation.php @@ -18,7 +18,14 @@ class eZContentObjectTranslation { - function eZContentObjectTranslation( $contentObjectID, $version, $languageCode ) + /** + * Constructor + * + * @param int $contentObjectID + * @param int $version + * @param string $languageCode + */ + public function __construct( $contentObjectID, $version, $languageCode ) { $this->ContentObjectID = $contentObjectID; $this->Version = $version; diff --git a/kernel/classes/ezcontentobjecttrashnode.php b/kernel/classes/ezcontentobjecttrashnode.php index 7f2a9121010..cde292326e8 100644 --- a/kernel/classes/ezcontentobjecttrashnode.php +++ b/kernel/classes/ezcontentobjecttrashnode.php @@ -13,20 +13,6 @@ */ class eZContentObjectTrashNode extends eZContentObjectTreeNode { - /** - * Initializes the object with the $row. - * - * It will try to set each field taken from the database row. Calls fill - * to do the job. If $row is an integer, it will try to fetch it from the - * database using it as the unique ID. - * - * @param int|array $row - */ - function eZContentObjectTrashNode( $row = array() ) - { - $this->eZPersistentObject( $row ); - } - /** * @inheritdoc */ diff --git a/kernel/classes/ezcontentobjecttreenode.php b/kernel/classes/ezcontentobjecttreenode.php index 6aad6d306b8..e344f156260 100644 --- a/kernel/classes/ezcontentobjecttreenode.php +++ b/kernel/classes/ezcontentobjecttreenode.php @@ -32,20 +32,6 @@ class eZContentObjectTreeNode extends eZPersistentObject const SORT_ORDER_DESC = 0; const SORT_ORDER_ASC = 1; - /** - * Initializes the object with the $row. - * - * It will try to set each field taken from the database row. Calls fill - * to do the job. If $row is an integer, it will try to fetch it from the - * database using it as the unique ID. - * - * @param int|array $row - */ - function eZContentObjectTreeNode( $row = array() ) - { - $this->eZPersistentObject( $row ); - } - /** * @inheritdoc */ diff --git a/kernel/classes/ezcontentobjecttreenodeoperations.php b/kernel/classes/ezcontentobjecttreenodeoperations.php index 78fe1973b9b..100ed613d93 100644 --- a/kernel/classes/ezcontentobjecttreenodeoperations.php +++ b/kernel/classes/ezcontentobjecttreenodeoperations.php @@ -20,13 +20,6 @@ class eZContentObjectTreeNodeOperations { - /*! - Constructor - */ - function eZContentObjectTreeNodeOperations() - { - } - /*! \static A wrapper for eZContentObjectTreeNode's 'move' operation. diff --git a/kernel/classes/ezcontentobjectversion.php b/kernel/classes/ezcontentobjectversion.php index 37e20700fc3..4b4e3bedfbd 100755 --- a/kernel/classes/ezcontentobjectversion.php +++ b/kernel/classes/ezcontentobjectversion.php @@ -27,14 +27,14 @@ class eZContentObjectVersion extends eZPersistentObject const STATUS_REPEAT = 6; const STATUS_QUEUED = 7; - function eZContentObjectVersion( $row=array() ) + public function __construct( $row = array() ) { $this->ContentObjectAttributeArray = false; $this->DataMap = false; $this->TempNode = null; $this->VersionName = null; $this->VersionNameCache = array(); - $this->eZPersistentObject( $row ); + parent::__construct( $row ); } static function definition() diff --git a/kernel/classes/ezcontentupload.php b/kernel/classes/ezcontentupload.php index b309026c236..019aeced10f 100644 --- a/kernel/classes/ezcontentupload.php +++ b/kernel/classes/ezcontentupload.php @@ -50,11 +50,13 @@ class eZContentUpload const STATUS_PERMISSION_DENIED = 1; - /*! - Initializes the object with the session data if they are found. - If \a $params is supplied it used instead. - */ - function eZContentUpload( $params = false ) + /** + * Initializes the object with the session data if they are found. + * If $params is supplied it is used instead. + * + * @param bool $params + */ + public function __construct( $params = false ) { $http = eZHTTPTool::instance(); if ( !$params && $http->hasSessionVariable( 'ContentUploadParameters' ) ) diff --git a/kernel/classes/ezcontentuploadhandler.php b/kernel/classes/ezcontentuploadhandler.php index 1932bed6e25..15bc9f6a680 100644 --- a/kernel/classes/ezcontentuploadhandler.php +++ b/kernel/classes/ezcontentuploadhandler.php @@ -26,10 +26,13 @@ class eZContentUploadHandler { - /*! - Initialises the handler with the name. - */ - function eZContentUploadHandler( $name, $identifier ) + /** + * Initialises the handler with the name. + * + * @param string $name + * @param string $identifier + */ + public function __construct( $name, $identifier ) { $this->Name = $name; $this->Identifier = $identifier; diff --git a/kernel/classes/ezdatatype.php b/kernel/classes/ezdatatype.php index 5ef942c2fa5..b0d10bcba2a 100644 --- a/kernel/classes/ezdatatype.php +++ b/kernel/classes/ezdatatype.php @@ -44,11 +44,14 @@ function. See each function for more details. class eZDataType { - /*! - Initializes the datatype with the string id \a $dataTypeString and - the name \a $name. - */ - function eZDataType( $dataTypeString, $name, $properties = array() ) + /** + * Initializes the datatype with the string id $dataTypeString and the name $name. + * + * @param string $dataTypeString + * @param string $name + * @param array $properties + */ + public function __construct( $dataTypeString, $name, $properties = array() ) { $this->DataTypeString = $dataTypeString; $this->Name = $name; @@ -74,6 +77,18 @@ function eZDataType( $dataTypeString, $name, $properties = array() ) 'object_serialize_map' => $objectSerializeMap ); } + /** + * @deprecated Use eZDataType::__construct() instead + * @param string $dataTypeString + * @param string $name + * @param array $properties + */ + public function eZDataType( $dataTypeString, $name, $properties = array() ) + { + self::__construct( $dataTypeString, $name, $properties ); + + } + /*! \return the template name to use for viewing the attribute. \note Default is to return the datatype string which is OK diff --git a/kernel/classes/ezdiscount.php b/kernel/classes/ezdiscount.php index e3eff69d2c0..51e82499c2e 100644 --- a/kernel/classes/ezdiscount.php +++ b/kernel/classes/ezdiscount.php @@ -10,10 +10,6 @@ class eZDiscount { - function eZDiscount() - { - } - /*! \static params = array( 'contentclass_id' => classID, diff --git a/kernel/classes/ezdiscountrule.php b/kernel/classes/ezdiscountrule.php index 0bb6f24e1a2..8988853601d 100644 --- a/kernel/classes/ezdiscountrule.php +++ b/kernel/classes/ezdiscountrule.php @@ -16,14 +16,6 @@ class eZDiscountRule extends eZPersistentObject { - /*! - Constructor - */ - function eZDiscountRule( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/ezdiscountsubrule.php b/kernel/classes/ezdiscountsubrule.php index 1278d1dc1c8..6cd7507f045 100644 --- a/kernel/classes/ezdiscountsubrule.php +++ b/kernel/classes/ezdiscountsubrule.php @@ -16,14 +16,6 @@ class eZDiscountSubRule extends eZPersistentObject { - /*! - Constructor - */ - function eZDiscountSubRule( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/ezdiscountsubrulevalue.php b/kernel/classes/ezdiscountsubrulevalue.php index 41e1dc3fb7c..042482ac83c 100644 --- a/kernel/classes/ezdiscountsubrulevalue.php +++ b/kernel/classes/ezdiscountsubrulevalue.php @@ -15,14 +15,6 @@ */ class eZDiscountSubRuleValue extends eZPersistentObject { - /*! - Constructor - */ - function eZDiscountSubRuleValue( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "discountsubrule_id" => array( 'name' => "DiscountSubRuleID", diff --git a/kernel/classes/ezinformationcollection.php b/kernel/classes/ezinformationcollection.php index 7347ef04c17..7c6ab4dba6a 100644 --- a/kernel/classes/ezinformationcollection.php +++ b/kernel/classes/ezinformationcollection.php @@ -20,11 +20,6 @@ class eZInformationCollection extends eZPersistentObject { - function eZInformationCollection( $row ) - { - $this->eZPersistentObject( $row ); - } - /*! \return the persistent object definition for the eZInformationCollection class. */ diff --git a/kernel/classes/ezinformationcollectionattribute.php b/kernel/classes/ezinformationcollectionattribute.php index 561aef64722..0c4c5913fde 100644 --- a/kernel/classes/ezinformationcollectionattribute.php +++ b/kernel/classes/ezinformationcollectionattribute.php @@ -17,10 +17,10 @@ class eZInformationCollectionAttribute extends eZPersistentObject { - function eZInformationCollectionAttribute( $row ) + public function __construct( $row ) { $this->Content = null; - $this->eZPersistentObject( $row ); + parent::__construct( $row ); } /*! diff --git a/kernel/classes/eznodeassignment.php b/kernel/classes/eznodeassignment.php index fa37e9282c3..40195a7e411 100644 --- a/kernel/classes/eznodeassignment.php +++ b/kernel/classes/eznodeassignment.php @@ -32,14 +32,11 @@ class eZNodeAssignment extends eZPersistentObject const OP_CODE_SET_NOP = 8; const OP_CODE_SET = 9; - /*! - Constructor - */ - function eZNodeAssignment( $row ) + public function __construct( $row ) { $this->TempNode = null; $this->Name = false; - $this->eZPersistentObject( $row ); + parent::__construct( $row ); } static function definition() diff --git a/kernel/classes/ezorder.php b/kernel/classes/ezorder.php index a6151d2bd1c..e1572dbf40a 100644 --- a/kernel/classes/ezorder.php +++ b/kernel/classes/ezorder.php @@ -22,9 +22,9 @@ class eZOrder extends eZPersistentObject const SHOW_ARCHIVED = 1; const SHOW_ALL = 2; - function eZOrder( $row ) + public function __construct( $row ) { - $this->eZPersistentObject( $row ); + parent::__construct( $row ); $this->Status = null; } @@ -372,14 +372,14 @@ static function orderStatistics( $year = false, $month = false ) { $priceExVAT = $price / ( 100 + $vatValue ) * 100; $priceIncVAT = $price; - + } else { $priceExVAT = $price; $priceIncVAT = $price * ( 100 + $vatValue ) / 100; } - + $count = $productItem['item_count']; $realPricePercent = ( 100 - $productItem['discount'] ) / 100; $totalPriceExVAT = round( $count * $priceExVAT * $realPricePercent, 2 ); @@ -401,7 +401,7 @@ static function orderStatistics( $year = false, $month = false ) 'product' => &$contentObjectIDHash[$currentContentObjectID], 'product_info' => $productInfo ); - + // Fetching all ContentObject ids in one query, filling the hash with the corresponding ContentObject foreach ( eZContentObject::fetchList( true, array( "id" => array( array_keys( $contentObjectIDHash ) ) ) ) as $contentObject ) { @@ -803,7 +803,7 @@ function productItems( $asObject = true, array $sorts = null ) $priceExVAT = $price; $priceIncVAT = $price * ( 100 + $vatValue ) / 100; } - + $count = $productItem->attribute( 'item_count' ); $discountPercent = $productItem->attribute( 'discount' ); $realPricePercent = ( 100 - $discountPercent ) / 100; diff --git a/kernel/classes/ezorderitem.php b/kernel/classes/ezorderitem.php index 664993dc9d3..6e2df381fac 100644 --- a/kernel/classes/ezorderitem.php +++ b/kernel/classes/ezorderitem.php @@ -25,11 +25,6 @@ class eZOrderItem extends eZPersistentObject { - function eZOrderItem( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( 'id' => array( 'name' => 'ID', diff --git a/kernel/classes/ezorderstatus.php b/kernel/classes/ezorderstatus.php index 7b7d84594d2..57a9b57aab6 100644 --- a/kernel/classes/ezorderstatus.php +++ b/kernel/classes/ezorderstatus.php @@ -56,11 +56,6 @@ class eZOrderStatus extends eZPersistentObject // All custom order statuses have this value or higher const CUSTOM = 1000; - function eZOrderStatus( $row ) - { - $this->eZPersistentObject( $row ); - } - /*! \return the persistent object definition for the eZOrderStatus class. */ diff --git a/kernel/classes/ezorderstatushistory.php b/kernel/classes/ezorderstatushistory.php index 4af01ea2be8..594052800e2 100644 --- a/kernel/classes/ezorderstatushistory.php +++ b/kernel/classes/ezorderstatushistory.php @@ -33,13 +33,9 @@ class eZOrderStatusHistory extends eZPersistentObject { - /*! - Initialises the persistent object with \a $row. - If \c status_name is present in \a $row it will cache it in the $StatusName variable. - */ - function eZOrderStatusHistory( $row ) + public function __construct( $row ) { - $this->eZPersistentObject( $row ); + parent::__construct( $row ); $this->Modifier = null; $this->StatusName = null; if ( isset( $row['status_name'] ) ) diff --git a/kernel/classes/ezpackage.php b/kernel/classes/ezpackage.php index 59d2cd75d73..fd877b22266 100644 --- a/kernel/classes/ezpackage.php +++ b/kernel/classes/ezpackage.php @@ -28,10 +28,13 @@ class eZPackage const NON_INTERACTIVE = -1; - /*! - Constructor - */ - function eZPackage( $parameters = array(), $repositoryPath = false ) + /** + * Constructor + * + * @param array $parameters + * @param string|bool $repositoryPath + */ + public function __construct( $parameters = array(), $repositoryPath = false ) { $this->setParameters( $parameters ); if ( !$repositoryPath ) diff --git a/kernel/classes/ezpackagecreationhandler.php b/kernel/classes/ezpackagecreationhandler.php index 7d4541574dd..fb05bb595e2 100644 --- a/kernel/classes/ezpackagecreationhandler.php +++ b/kernel/classes/ezpackagecreationhandler.php @@ -17,10 +17,14 @@ class eZPackageCreationHandler { - /*! - Constructor - */ - function eZPackageCreationHandler( $id, $name, $steps ) + /** + * Constructor + * + * @param int $id + * @param string $name + * @param array $steps + */ + public function __construct( $id, $name, $steps ) { $this->Attributes = array( 'id' => $id, 'name' => $name, diff --git a/kernel/classes/ezpackagehandler.php b/kernel/classes/ezpackagehandler.php index 4020cbe0808..7197555be29 100644 --- a/kernel/classes/ezpackagehandler.php +++ b/kernel/classes/ezpackagehandler.php @@ -16,10 +16,13 @@ class eZPackageHandler { - /*! - Constructor - */ - function eZPackageHandler( $handlerType, $parameters = array() ) + /** + * Constructor + * + * @param string $handlerType + * @param array $parameters + */ + public function __construct( $handlerType, $parameters = array() ) { $parameters = array_merge( array( 'extract-install-content' => false ), $parameters ); diff --git a/kernel/classes/ezpackageinstallationhandler.php b/kernel/classes/ezpackageinstallationhandler.php index 90d2095119e..0da4b333c36 100644 --- a/kernel/classes/ezpackageinstallationhandler.php +++ b/kernel/classes/ezpackageinstallationhandler.php @@ -17,10 +17,16 @@ class eZPackageInstallationHandler { - /*! - Constructor - */ - function eZPackageInstallationHandler( $package, $type, $installItem, $name = null, $steps = null ) + /** + * Constructor + * + * @param eZPackage $package + * @param string $type + * @param mixed $installItem + * @param string $name + * @param array $steps + */ + public function __construct( $package, $type, $installItem, $name = null, $steps = null ) { $this->Package = $package; $this->Attributes = array( 'type' => $type, diff --git a/kernel/classes/ezpathelement.php b/kernel/classes/ezpathelement.php index fe5eb424674..ddfeee5034a 100644 --- a/kernel/classes/ezpathelement.php +++ b/kernel/classes/ezpathelement.php @@ -21,10 +21,7 @@ class eZPathElement extends eZPersistentObject { - /*! - Initializes a new path element. - */ - function eZPathElement( $row ) + public function __construct( $row ) { $this->Path = null; $this->PathArray = null; @@ -32,7 +29,7 @@ function eZPathElement( $row ) { $this->AlwaysAvailable = $row['always_available']; } - $this->eZPersistentObject( $row ); + parent::__construct( $row ); } static public function definition() diff --git a/kernel/classes/ezpdfexport.php b/kernel/classes/ezpdfexport.php index fb9fb4e9324..4deb91e7416 100644 --- a/kernel/classes/ezpdfexport.php +++ b/kernel/classes/ezpdfexport.php @@ -23,14 +23,6 @@ class eZPDFExport extends eZPersistentObject const CREATE_ONCE = 1; const CREATE_ONFLY = 2; - /*! - Initializes a new eZPDFExport. - */ - function eZPDFExport( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( 'fields' => array( 'id' => array( 'name' => 'ID', diff --git a/kernel/classes/ezpersistentobject.php b/kernel/classes/ezpersistentobject.php index d10ee83456b..e8a507a4d1e 100644 --- a/kernel/classes/ezpersistentobject.php +++ b/kernel/classes/ezpersistentobject.php @@ -49,7 +49,7 @@ class eZPersistentObject * * @param int|array $row */ - public function eZPersistentObject( $row ) + public function __construct( $row ) { $this->PersistentDataDirty = false; if ( is_numeric( $row ) ) @@ -57,6 +57,15 @@ public function eZPersistentObject( $row ) $this->fill( $row ); } + /** + * @deprecated Use eZPersistentObject::__construct() instead + * @param array $row + */ + public function eZPersistentObject( $row ) + { + self::__construct( $row ); + } + /** * Tries to fill in the data in the object by using the object definition * which is returned by the function definition() and the database row diff --git a/kernel/classes/ezpolicy.php b/kernel/classes/ezpolicy.php index 6880841bc78..76dde4b2efd 100644 --- a/kernel/classes/ezpolicy.php +++ b/kernel/classes/ezpolicy.php @@ -17,12 +17,9 @@ class eZPolicy extends eZPersistentObject { - /*! - Constructor - */ - function eZPolicy( $row ) + public function __construct( $row ) { - $this->eZPersistentObject( $row ); + parent::__construct( $row ); $this->NodeID = 0; } diff --git a/kernel/classes/ezpolicylimitation.php b/kernel/classes/ezpolicylimitation.php index ccbb2fbb3c0..c5d5456fa11 100644 --- a/kernel/classes/ezpolicylimitation.php +++ b/kernel/classes/ezpolicylimitation.php @@ -19,9 +19,9 @@ class eZPolicyLimitation extends eZPersistentObject /*! Constructor */ - function eZPolicyLimitation( $row ) + public function __construct( $row ) { - $this->eZPersistentObject( $row ); + parent::__construct( $row ); $this->NodeID = 0; } diff --git a/kernel/classes/ezpolicylimitationvalue.php b/kernel/classes/ezpolicylimitationvalue.php index 410429eaf7f..a1a19022c46 100644 --- a/kernel/classes/ezpolicylimitationvalue.php +++ b/kernel/classes/ezpolicylimitationvalue.php @@ -16,15 +16,6 @@ */ class eZPolicyLimitationValue extends eZPersistentObject { - /*! - Constructor - */ - function eZPolicyLimitationValue( $row ) - { - $this->eZPersistentObject( $row ); - } - - static function definition() { static $definition = array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/ezproductcategory.php b/kernel/classes/ezproductcategory.php index 4b5352899de..36068dec3ec 100644 --- a/kernel/classes/ezproductcategory.php +++ b/kernel/classes/ezproductcategory.php @@ -16,11 +16,6 @@ class eZProductCategory extends eZPersistentObject { - function eZProductCategory( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/ezproductcollection.php b/kernel/classes/ezproductcollection.php index feb3313fdec..52eb79a0d56 100644 --- a/kernel/classes/ezproductcollection.php +++ b/kernel/classes/ezproductcollection.php @@ -14,11 +14,6 @@ class eZProductCollection extends eZPersistentObject { - function eZProductCollection( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/ezproductcollectionitem.php b/kernel/classes/ezproductcollectionitem.php index 171c89bfd7f..724f2e1d730 100644 --- a/kernel/classes/ezproductcollectionitem.php +++ b/kernel/classes/ezproductcollectionitem.php @@ -18,11 +18,6 @@ class eZProductCollectionItem extends eZPersistentObject { - function eZProductCollectionItem( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/ezproductcollectionitemoption.php b/kernel/classes/ezproductcollectionitemoption.php index f5d8b2628c9..5f79c9505bd 100644 --- a/kernel/classes/ezproductcollectionitemoption.php +++ b/kernel/classes/ezproductcollectionitemoption.php @@ -10,18 +10,6 @@ class eZProductCollectionItemOption extends eZPersistentObject { - /** - * Initialized an eZProductCollectionItemOption object with the given - * attribute array - * - * @param array $row Array of object attributes - */ - function eZProductCollectionItemOption( $row ) - { - $this->eZPersistentObject( $row ); - - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/ezrole.php b/kernel/classes/ezrole.php index 0d6b2e45752..95c33243521 100644 --- a/kernel/classes/ezrole.php +++ b/kernel/classes/ezrole.php @@ -33,12 +33,9 @@ */ class eZRole extends eZPersistentObject { - /*! - Constructor - */ - function eZRole( $row = array() ) + public function __construct( $row = array() ) { - $this->eZPersistentObject( $row ); + parent::__construct( $row ); $this->PolicyArray = 0; $this->LimitIdentifier = false; $this->LimitValue = false; diff --git a/kernel/classes/ezrssexport.php b/kernel/classes/ezrssexport.php index e644eb7374e..808cdf2b425 100644 --- a/kernel/classes/ezrssexport.php +++ b/kernel/classes/ezrssexport.php @@ -20,14 +20,6 @@ class eZRSSExport extends eZPersistentObject const STATUS_VALID = 1; const STATUS_DRAFT = 0; - /*! - Initializes a new RSSExport. - */ - function eZRSSExport( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( 'fields' => array( 'id' => array( 'name' => 'ID', diff --git a/kernel/classes/ezrssexportitem.php b/kernel/classes/ezrssexportitem.php index 695f9e021d6..5181b493249 100644 --- a/kernel/classes/ezrssexportitem.php +++ b/kernel/classes/ezrssexportitem.php @@ -17,15 +17,6 @@ class eZRSSExportItem extends eZPersistentObject { - - /*! - Initializes a new RSSExportItem. - */ - function eZRSSExportItem( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( 'fields' => array( 'id' => array( 'name' => 'ID', diff --git a/kernel/classes/ezrssimport.php b/kernel/classes/ezrssimport.php index 5c0dcffef59..61658f9c73e 100644 --- a/kernel/classes/ezrssimport.php +++ b/kernel/classes/ezrssimport.php @@ -20,14 +20,6 @@ class eZRSSImport extends eZPersistentObject const STATUS_VALID = 1; const STATUS_DRAFT = 0; - /*! - Initializes a new RSSImport. - */ - function eZRSSImport( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/ezscript.php b/kernel/classes/ezscript.php index 2e6ef35f712..8ca6b1480fd 100644 --- a/kernel/classes/ezscript.php +++ b/kernel/classes/ezscript.php @@ -47,9 +47,9 @@ class. */ class eZScript { - /*! - Constructor - */ + /** + * @param array $settings + */ function __construct( $settings = array() ) { $settings += array( diff --git a/kernel/classes/ezsearch.php b/kernel/classes/ezsearch.php index f0b07da6b2f..ee9405362a7 100644 --- a/kernel/classes/ezsearch.php +++ b/kernel/classes/ezsearch.php @@ -17,11 +17,6 @@ class eZSearch { - function eZSearch() - { - - } - /*! \static determine how to pass the commit argument, for deletes and updates diff --git a/kernel/classes/ezsection.php b/kernel/classes/ezsection.php index b938eebbee6..336af6af600 100644 --- a/kernel/classes/ezsection.php +++ b/kernel/classes/ezsection.php @@ -16,13 +16,13 @@ class eZSection extends eZPersistentObject { - function eZSection( $row ) + public function __construct( $row ) { if ( !isset( $row['id'] ) ) { $row['id'] = null; } - $this->eZPersistentObject( $row ); + parent::__construct( $row ); } /*! diff --git a/kernel/classes/ezserializedobjectnamelist.php b/kernel/classes/ezserializedobjectnamelist.php index e820b7b73b7..ba44048c5ec 100644 --- a/kernel/classes/ezserializedobjectnamelist.php +++ b/kernel/classes/ezserializedobjectnamelist.php @@ -12,7 +12,7 @@ class eZSerializedObjectNameList { const ALWAYS_AVAILABLE_STR = 'always-available'; - function eZSerializedObjectNameList( $serializedNamesString = false ) + public function __construct( $serializedNamesString = false ) { $this->DefaultLanguage = null; diff --git a/kernel/classes/ezshopaccounthandler.php b/kernel/classes/ezshopaccounthandler.php index e5c1386abfd..42487f1cfa3 100644 --- a/kernel/classes/ezshopaccounthandler.php +++ b/kernel/classes/ezshopaccounthandler.php @@ -10,11 +10,6 @@ class eZShopAccountHandler { - function eZShopAccountHandler() - { - - } - /** * Returns a shared instance of the eZShopAccountHandler class * as defined in shopaccount.ini[HandlerSettings]Repositories diff --git a/kernel/classes/ezsiteaccess.php b/kernel/classes/ezsiteaccess.php index eb5b50150d5..2bc0f309ccc 100644 --- a/kernel/classes/ezsiteaccess.php +++ b/kernel/classes/ezsiteaccess.php @@ -34,13 +34,6 @@ class eZSiteAccess const SUBTYPE_PRE = 1; const SUBTYPE_POST = 2; - /*! - Constructor - */ - function eZSiteAccess() - { - } - static function siteAccessList() { $siteAccessList = array(); diff --git a/kernel/classes/ezsiteinstaller.php b/kernel/classes/ezsiteinstaller.php index f2f78c22fed..35bab62d11d 100644 --- a/kernel/classes/ezsiteinstaller.php +++ b/kernel/classes/ezsiteinstaller.php @@ -25,7 +25,7 @@ class eZSiteInstaller const ERR_ABORT = 1; const ERR_CONTINUE = 2; - function eZSiteInstaller( $parameters = false ) + public function __construct( $parameters = false ) { $this->initSettings( $parameters ); $this->initSteps(); diff --git a/kernel/classes/ezsubtreecache.php b/kernel/classes/ezsubtreecache.php index 85da9dc3aa8..57b593f6184 100644 --- a/kernel/classes/ezsubtreecache.php +++ b/kernel/classes/ezsubtreecache.php @@ -16,13 +16,6 @@ class eZSubtreeCache { - /*! - Constructor - */ - function eZSubtreeCache() - { - } - /*! \static Removes caches which were created using 'cache-block' operator with 'subtree_expiry' parameter. diff --git a/kernel/classes/eztextinputparser.php b/kernel/classes/eztextinputparser.php index b322938f13c..3c31e764cc9 100644 --- a/kernel/classes/eztextinputparser.php +++ b/kernel/classes/eztextinputparser.php @@ -18,14 +18,6 @@ class eZTextInputParser const CHUNK_TEXT = 1; const CHUNK_TAG = 2; - /*! - - */ - function eZTextInputParser() - { - - } - /*! Will parse the input text and create an array of the input. False will be returned if the parsing diff --git a/kernel/classes/eztipafriendcounter.php b/kernel/classes/eztipafriendcounter.php index b1267ff71fb..1e214f9d167 100644 --- a/kernel/classes/eztipafriendcounter.php +++ b/kernel/classes/eztipafriendcounter.php @@ -16,11 +16,6 @@ class eZTipafriendCounter extends eZPersistentObject { - function eZTipafriendCounter( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( 'fields' => array( 'node_id' => array( 'name' => 'NodeID', diff --git a/kernel/classes/eztipafriendrequest.php b/kernel/classes/eztipafriendrequest.php index 19418a8bf84..bc81d256b9f 100644 --- a/kernel/classes/eztipafriendrequest.php +++ b/kernel/classes/eztipafriendrequest.php @@ -15,14 +15,6 @@ */ class eZTipafriendRequest extends eZPersistentObject { - /*! - Constructor - */ - function eZTipafriendRequest( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( 'email_receiver' => array( 'name' => 'EmailReceiver', diff --git a/kernel/classes/eztrigger.php b/kernel/classes/eztrigger.php index 4227ea389b6..c44adcf0505 100644 --- a/kernel/classes/eztrigger.php +++ b/kernel/classes/eztrigger.php @@ -24,14 +24,6 @@ class eZTrigger extends eZPersistentObject const WORKFLOW_RESET = 6; const FETCH_TEMPLATE_REPEAT = 7; - /*! - Constructor - */ - function eZTrigger( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( 'id' => array( 'name' => 'ID', diff --git a/kernel/classes/ezurlaliasfilter.php b/kernel/classes/ezurlaliasfilter.php index aeade270d15..49b62b8d707 100644 --- a/kernel/classes/ezurlaliasfilter.php +++ b/kernel/classes/ezurlaliasfilter.php @@ -20,13 +20,6 @@ abstract class eZURLAliasFilter { - /** - * Initialize the filter object. - */ - public function eZURLAliasFilter() - { - } - /* * * Process the url alias element $text and return the new element as a string. diff --git a/kernel/classes/ezurlaliasml.php b/kernel/classes/ezurlaliasml.php index 9165987af30..29d5b05554d 100644 --- a/kernel/classes/ezurlaliasml.php +++ b/kernel/classes/ezurlaliasml.php @@ -130,13 +130,9 @@ class eZURLAliasML extends eZPersistentObject */ private static $charset = null; - /*! - Initializes a new URL alias from database row. - \note If 'path' is set it will be cached in $Path. - */ - function eZURLAliasML( $row ) + public function __construct( $row ) { - $this->eZPersistentObject( $row ); + parent::__construct( $row ); $this->Path = null; if ( isset( $row['path'] ) ) { diff --git a/kernel/classes/ezurlaliasquery.php b/kernel/classes/ezurlaliasquery.php index af184416272..95bc30ececd 100644 --- a/kernel/classes/ezurlaliasquery.php +++ b/kernel/classes/ezurlaliasquery.php @@ -95,10 +95,6 @@ class eZURLAliasQuery */ public $items; - function eZURLAliasQuery() - { - } - function hasAttribute( $name ) { return $name !== "query" && array_key_exists( $name, get_object_vars( $this ) ); diff --git a/kernel/classes/ezurlwildcard.php b/kernel/classes/ezurlwildcard.php index 5f24154423f..40709844809 100644 --- a/kernel/classes/ezurlwildcard.php +++ b/kernel/classes/ezurlwildcard.php @@ -49,15 +49,6 @@ class eZURLWildcard extends eZPersistentObject */ protected static $wildcardsIndex = null; - /** - * Initializes a new URL alias persistent object - * @param array $row - */ - public function eZURLWildcard( $row ) - { - $this->eZPersistentObject( $row ); - } - public static function definition() { static $definition = array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/ezuserdiscountrule.php b/kernel/classes/ezuserdiscountrule.php index 974d093eba2..d7db3927c64 100644 --- a/kernel/classes/ezuserdiscountrule.php +++ b/kernel/classes/ezuserdiscountrule.php @@ -16,14 +16,6 @@ class eZUserDiscountRule extends eZPersistentObject { - /*! - Constructor - */ - function eZUserDiscountRule( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/ezvatrule.php b/kernel/classes/ezvatrule.php index bfb01401d98..9dbb7af2b38 100644 --- a/kernel/classes/ezvatrule.php +++ b/kernel/classes/ezvatrule.php @@ -16,10 +16,10 @@ class eZVatRule extends eZPersistentObject { - function eZVatRule( $row ) + public function __construct( $row ) { $this->ProductCategories = null; - $this->eZPersistentObject( $row ); + parent::__construct( $row ); } static function definition() diff --git a/kernel/classes/ezvattype.php b/kernel/classes/ezvattype.php index 41792f49220..db29924ffd9 100644 --- a/kernel/classes/ezvattype.php +++ b/kernel/classes/ezvattype.php @@ -17,11 +17,6 @@ class eZVatType extends eZPersistentObject { - function eZVatType( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/ezviewcounter.php b/kernel/classes/ezviewcounter.php index 39d3b661313..75d479d0aea 100644 --- a/kernel/classes/ezviewcounter.php +++ b/kernel/classes/ezviewcounter.php @@ -10,11 +10,6 @@ class eZViewCounter extends eZPersistentObject { - function eZViewCounter( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "node_id" => array( 'name' => "NodeID", diff --git a/kernel/classes/ezwishlist.php b/kernel/classes/ezwishlist.php index 18553e8617c..b2c38e5ed1d 100644 --- a/kernel/classes/ezwishlist.php +++ b/kernel/classes/ezwishlist.php @@ -18,11 +18,6 @@ class eZWishList extends eZPersistentObject { - function eZWishList( $row = array() ) - { - $this->eZPersistentObject( $row ); - } - /*! \return the persistent object definition for the eZCard class. */ diff --git a/kernel/classes/ezworkflow.php b/kernel/classes/ezworkflow.php index 8ba1d57ed42..d84006e16ec 100644 --- a/kernel/classes/ezworkflow.php +++ b/kernel/classes/ezworkflow.php @@ -28,11 +28,6 @@ class eZWorkflow extends eZPersistentObject const STATUS_WAITING_PARENT = 9; const STATUS_FETCH_TEMPLATE_REPEAT = 10; - function eZWorkflow( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/ezworkflowevent.php b/kernel/classes/ezworkflowevent.php index cede99eea9c..69ad7a00cca 100644 --- a/kernel/classes/ezworkflowevent.php +++ b/kernel/classes/ezworkflowevent.php @@ -16,12 +16,21 @@ class eZWorkflowEvent extends eZPersistentObject { - function eZWorkflowEvent( $row ) + public function __construct( $row ) { - $this->eZPersistentObject( $row ); + parent::__construct( $row ); $this->Content = null; } + /** + * @deprecated Use eZWorkflowEvent::__construct() instead + * @param array $row + */ + public function eZWorkflowEvent( $row ) + { + self::__construct( $row ); + } + static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/ezworkfloweventtype.php b/kernel/classes/ezworkfloweventtype.php index 99b73319f13..a284ca4ed24 100644 --- a/kernel/classes/ezworkfloweventtype.php +++ b/kernel/classes/ezworkfloweventtype.php @@ -16,9 +16,25 @@ class eZWorkflowEventType extends eZWorkflowType { - function eZWorkflowEventType( $typeString, $name ) + /** + * Constructor + * + * @param string $typeString + * @param string $name + */ + public function __construct( $typeString, $name ) { - $this->eZWorkflowType( "event", $typeString, ezpI18n::tr( 'kernel/workflow/event', "Event" ), $name ); + parent::__construct( "event", $typeString, ezpI18n::tr( 'kernel/workflow/event', "Event" ), $name ); + } + + /** + * @deprecated + * @param string $typeString + * @param string $name + */ + public function eZWorkflowEventType( $typeString, $name ) + { + self::__construct( $typeString, $name ); } static function registerEventType( $typeString, $class_name ) diff --git a/kernel/classes/ezworkflowgroup.php b/kernel/classes/ezworkflowgroup.php index 8ddca45e85a..f9bf2c85eea 100644 --- a/kernel/classes/ezworkflowgroup.php +++ b/kernel/classes/ezworkflowgroup.php @@ -16,11 +16,6 @@ class eZWorkflowGroup extends eZPersistentObject { - function eZWorkflowGroup( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/ezworkflowgrouplink.php b/kernel/classes/ezworkflowgrouplink.php index 7f1388bcd48..a019b93c149 100644 --- a/kernel/classes/ezworkflowgrouplink.php +++ b/kernel/classes/ezworkflowgrouplink.php @@ -16,11 +16,6 @@ class eZWorkflowGroupLink extends eZPersistentObject { - function eZWorkflowGroupLink( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "workflow_id" => array( 'name' => "WorkflowID", diff --git a/kernel/classes/ezworkflowgrouptype.php b/kernel/classes/ezworkflowgrouptype.php index 697edcf33ce..2477456eb31 100644 --- a/kernel/classes/ezworkflowgrouptype.php +++ b/kernel/classes/ezworkflowgrouptype.php @@ -16,9 +16,15 @@ class eZWorkflowGroupType extends eZWorkflowType { - function eZWorkflowGroupType( $typeString, $name ) + /** + * Constructor + * + * @param string $typeString + * @param string $name + */ + public function __construct( $typeString, $name ) { - $this->eZWorkflowType( "group", $typeString, ezpI18n::tr( 'kernel/workflow/group', "Group" ), $name ); + parent::__construct( "group", $typeString, ezpI18n::tr( 'kernel/workflow/group', "Group" ), $name ); } static function registerGroupType( $typeString, $class_name ) diff --git a/kernel/classes/ezworkflowprocess.php b/kernel/classes/ezworkflowprocess.php index da14943ebbb..042f0ce009b 100644 --- a/kernel/classes/ezworkflowprocess.php +++ b/kernel/classes/ezworkflowprocess.php @@ -16,11 +16,6 @@ class eZWorkflowProcess extends eZPersistentObject { - function eZWorkflowProcess( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( 'fields' => array( 'id' => array( 'name' => 'ID', diff --git a/kernel/classes/ezworkflowtype.php b/kernel/classes/ezworkflowtype.php index d49c0dd9116..55d8b87aca8 100644 --- a/kernel/classes/ezworkflowtype.php +++ b/kernel/classes/ezworkflowtype.php @@ -30,8 +30,15 @@ class eZWorkflowType const STATUS_REDIRECT_REPEAT = 11; const STATUS_WORKFLOW_RESET = 12; - function eZWorkflowType( $group, $type, - $groupName, $name ) + /** + * Constructor + * + * @param string $group + * @param string $type + * @param string $groupName + * @param string $name + */ + public function __construct( $group, $type, $groupName, $name ) { $this->Group = $group; $this->Type = $type; @@ -50,6 +57,18 @@ function eZWorkflowType( $group, $type, $this->Attributes["activation_date"] =& $this->ActivationDate; } + /** + * @deprecated Use eZWorkflowType::__construct() instead + * @param string $group + * @param string $type + * @param string $groupName + * @param string $name + */ + public function eZWorkflowType( $group, $type, $groupName, $name ) + { + self::__construct( $group, $type, $groupName, $name ); + } + static function statusName( $status ) { $statusNameMap = self::statusNameMap(); diff --git a/kernel/classes/notification/event/ezcollaboration/ezcollaborationtype.php b/kernel/classes/notification/event/ezcollaboration/ezcollaborationtype.php index 703f5fa7ad6..d80c0a030b9 100644 --- a/kernel/classes/notification/event/ezcollaboration/ezcollaborationtype.php +++ b/kernel/classes/notification/event/ezcollaboration/ezcollaborationtype.php @@ -18,12 +18,9 @@ class eZCollaborationEventType extends eZNotificationEventType { const NOTIFICATION_TYPE_STRING = 'ezcollaboration'; - /*! - Constructor - */ - function eZCollaborationEventType() + public function __construct() { - $this->eZNotificationEventType( self::NOTIFICATION_TYPE_STRING ); + parent::__construct( self::NOTIFICATION_TYPE_STRING ); } function initializeEvent( $event, $params ) diff --git a/kernel/classes/notification/event/ezcurrenttime/ezcurrenttimetype.php b/kernel/classes/notification/event/ezcurrenttime/ezcurrenttimetype.php index bd051c8a0f1..f13290f5a18 100644 --- a/kernel/classes/notification/event/ezcurrenttime/ezcurrenttimetype.php +++ b/kernel/classes/notification/event/ezcurrenttime/ezcurrenttimetype.php @@ -17,12 +17,9 @@ class eZCurrentTimeType extends eZNotificationEventType { const NOTIFICATION_TYPE_STRING = 'ezcurrenttime'; - /*! - Constructor - */ - function eZCurrentTimeType() + public function __construct() { - $this->eZNotificationEventType( self::NOTIFICATION_TYPE_STRING ); + parent::__construct( self::NOTIFICATION_TYPE_STRING ); } function initializeEvent( $event, $params ) diff --git a/kernel/classes/notification/event/ezpublish/ezpublishtype.php b/kernel/classes/notification/event/ezpublish/ezpublishtype.php index 67ea07ae87e..c82b9e0cbf9 100644 --- a/kernel/classes/notification/event/ezpublish/ezpublishtype.php +++ b/kernel/classes/notification/event/ezpublish/ezpublishtype.php @@ -18,12 +18,9 @@ class eZPublishType extends eZNotificationEventType { const NOTIFICATION_TYPE_STRING = 'ezpublish'; - /*! - Constructor - */ - function eZPublishType() + public function __construct() { - $this->eZNotificationEventType( self::NOTIFICATION_TYPE_STRING ); + parent::__construct( self::NOTIFICATION_TYPE_STRING ); } function initializeEvent( $event, $params ) diff --git a/kernel/classes/notification/ezmailnotificationtransport.php b/kernel/classes/notification/ezmailnotificationtransport.php index 7b75c2410eb..e3c03a767c3 100644 --- a/kernel/classes/notification/ezmailnotificationtransport.php +++ b/kernel/classes/notification/ezmailnotificationtransport.php @@ -16,14 +16,6 @@ class eZMailNotificationTransport extends eZNotificationTransport { - /*! - Constructor - */ - function eZMailNotificationTransport() - { - $this->eZNotificationTransport(); - } - function send( $addressList = array(), $subject, $body, $transportData = null, $parameters = array() ) { $ini = eZINI::instance(); diff --git a/kernel/classes/notification/eznotificationcollection.php b/kernel/classes/notification/eznotificationcollection.php index c2399a82aa0..6993d5ceefc 100644 --- a/kernel/classes/notification/eznotificationcollection.php +++ b/kernel/classes/notification/eznotificationcollection.php @@ -15,14 +15,6 @@ */ class eZNotificationCollection extends eZPersistentObject { - /*! - Constructor - */ - function eZNotificationCollection( $row = array() ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/notification/eznotificationcollectionitem.php b/kernel/classes/notification/eznotificationcollectionitem.php index d5a018f6bce..2af67ed1499 100644 --- a/kernel/classes/notification/eznotificationcollectionitem.php +++ b/kernel/classes/notification/eznotificationcollectionitem.php @@ -16,14 +16,6 @@ class eZNotificationCollectionItem extends eZPersistentObject { - /*! - Constructor - */ - function eZNotificationCollectionItem( $row = array() ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/notification/eznotificationevent.php b/kernel/classes/notification/eznotificationevent.php index 2b4f1f25313..3e04f025de7 100644 --- a/kernel/classes/notification/eznotificationevent.php +++ b/kernel/classes/notification/eznotificationevent.php @@ -18,12 +18,9 @@ class eZNotificationEvent extends eZPersistentObject const STATUS_CREATED = 0; const STATUS_HANDLED = 1; - /*! - Constructor - */ - function eZNotificationEvent( $row = array() ) + public function __construct( $row = array() ) { - $this->eZPersistentObject( $row ); + parent::__construct( $row ); $this->TypeString = $this->attribute( 'event_type_string' ); } diff --git a/kernel/classes/notification/eznotificationeventfilter.php b/kernel/classes/notification/eznotificationeventfilter.php index 4d83d2410e0..197e403061a 100644 --- a/kernel/classes/notification/eznotificationeventfilter.php +++ b/kernel/classes/notification/eznotificationeventfilter.php @@ -15,13 +15,6 @@ */ class eZNotificationEventFilter { - /*! - Constructor - */ - function eZNotificationEventFilter() - { - } - /*! \note Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit. diff --git a/kernel/classes/notification/eznotificationeventhandler.php b/kernel/classes/notification/eznotificationeventhandler.php index f3ad8cc966e..f14b9467d4e 100644 --- a/kernel/classes/notification/eznotificationeventhandler.php +++ b/kernel/classes/notification/eznotificationeventhandler.php @@ -20,11 +20,14 @@ class eZNotificationEventHandler const EVENT_SKIPPED = 1; const EVENT_UNKNOWN = 2; const EVENT_ERROR = 3; - - /*! - Constructor - */ - function eZNotificationEventHandler( $idString, $name ) + + /** + * Constructor + * + * @param string $idString + * @param string $name + */ + public function __construct( $idString, $name ) { $this->IDString = $idString; $this->Name = $name; diff --git a/kernel/classes/notification/eznotificationeventtype.php b/kernel/classes/notification/eznotificationeventtype.php index a777ad9c707..016e9293b10 100644 --- a/kernel/classes/notification/eznotificationeventtype.php +++ b/kernel/classes/notification/eznotificationeventtype.php @@ -16,10 +16,12 @@ class eZNotificationEventType { - /*! - Constructor - */ - function eZNotificationEventType( $notificationEventTypeString ) + /** + * Constructor + * + * @param string $notificationEventTypeString + */ + public function __construct( $notificationEventTypeString ) { $this->NotificationEventTypeString = $notificationEventTypeString; } diff --git a/kernel/classes/notification/eznotificationschedule.php b/kernel/classes/notification/eznotificationschedule.php index 55c13b3eca7..984dcb5185a 100644 --- a/kernel/classes/notification/eznotificationschedule.php +++ b/kernel/classes/notification/eznotificationschedule.php @@ -16,13 +16,6 @@ class eZNotificationSchedule { - /*! - Constructor - */ - function eZNotificationSchedule() - { - } - static function setDateForItem( $item, $settings ) { if ( !is_array( $settings ) ) diff --git a/kernel/classes/notification/eznotificationtransport.php b/kernel/classes/notification/eznotificationtransport.php index 701e75617da..a66ab7ae0a8 100644 --- a/kernel/classes/notification/eznotificationtransport.php +++ b/kernel/classes/notification/eznotificationtransport.php @@ -15,13 +15,6 @@ */ class eZNotificationTransport { - /*! - Constructor - */ - function eZNotificationTransport() - { - } - /** * Returns a shared instance of the eZNotificationTransport class. * diff --git a/kernel/classes/notification/handler/ezcollaborationnotification/ezcollaborationnotificationhandler.php b/kernel/classes/notification/handler/ezcollaborationnotification/ezcollaborationnotificationhandler.php index 8129fac01cb..46e05ad0e27 100644 --- a/kernel/classes/notification/handler/ezcollaborationnotification/ezcollaborationnotificationhandler.php +++ b/kernel/classes/notification/handler/ezcollaborationnotification/ezcollaborationnotificationhandler.php @@ -19,12 +19,9 @@ class eZCollaborationNotificationHandler extends eZNotificationEventHandler const NOTIFICATION_HANDLER_ID = 'ezcollaboration'; const TRANSPORT = 'ezmail'; - /*! - Constructor - */ - function eZCollaborationNotificationHandler() + public function __construct() { - $this->eZNotificationEventHandler( self::NOTIFICATION_HANDLER_ID, "Collaboration Handler" ); + parent::__construct( self::NOTIFICATION_HANDLER_ID, "Collaboration Handler" ); } function attributes() diff --git a/kernel/classes/notification/handler/ezcollaborationnotification/ezcollaborationnotificationrule.php b/kernel/classes/notification/handler/ezcollaborationnotification/ezcollaborationnotificationrule.php index 73bee04cd73..5a0aab32c02 100644 --- a/kernel/classes/notification/handler/ezcollaborationnotification/ezcollaborationnotificationrule.php +++ b/kernel/classes/notification/handler/ezcollaborationnotification/ezcollaborationnotificationrule.php @@ -15,14 +15,6 @@ */ class eZCollaborationNotificationRule extends eZPersistentObject { - /*! - Constructor - */ - function eZCollaborationNotificationRule( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/notification/handler/ezgeneraldigest/ezgeneraldigesthandler.php b/kernel/classes/notification/handler/ezgeneraldigest/ezgeneraldigesthandler.php index 10056f5d866..6e40529d516 100644 --- a/kernel/classes/notification/handler/ezgeneraldigest/ezgeneraldigesthandler.php +++ b/kernel/classes/notification/handler/ezgeneraldigest/ezgeneraldigesthandler.php @@ -17,12 +17,9 @@ class eZGeneralDigestHandler extends eZNotificationEventHandler { const NOTIFICATION_HANDLER_ID = 'ezgeneraldigest'; - /*! - Constructor - */ - function eZGeneralDigestHandler() + public function __construct() { - $this->eZNotificationEventHandler( self::NOTIFICATION_HANDLER_ID, "General Digest Handler" ); + parent::__construct( self::NOTIFICATION_HANDLER_ID, "General Digest Handler" ); } diff --git a/kernel/classes/notification/handler/ezgeneraldigest/ezgeneraldigestusersettings.php b/kernel/classes/notification/handler/ezgeneraldigest/ezgeneraldigestusersettings.php index 4fb7ec5e1fc..a01b2d9bd50 100644 --- a/kernel/classes/notification/handler/ezgeneraldigest/ezgeneraldigestusersettings.php +++ b/kernel/classes/notification/handler/ezgeneraldigest/ezgeneraldigestusersettings.php @@ -21,14 +21,6 @@ class eZGeneralDigestUserSettings extends eZPersistentObject const TYPE_MONTHLY = 2; const TYPE_DAILY = 3; - /*! - Constructor - */ - function eZGeneralDigestUserSettings( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/notification/handler/ezsubtree/ezsubtreehandler.php b/kernel/classes/notification/handler/ezsubtree/ezsubtreehandler.php index ab1948b4674..0cbb8d82e36 100644 --- a/kernel/classes/notification/handler/ezsubtree/ezsubtreehandler.php +++ b/kernel/classes/notification/handler/ezsubtree/ezsubtreehandler.php @@ -19,12 +19,9 @@ class eZSubTreeHandler extends eZNotificationEventHandler const NOTIFICATION_HANDLER_ID = 'ezsubtree'; const TRANSPORT = 'ezmail'; - /*! - Constructor - */ - function eZSubTreeHandler() + public function __construct() { - $this->eZNotificationEventHandler( self::NOTIFICATION_HANDLER_ID, "Subtree Handler" ); + parent::__construct( self::NOTIFICATION_HANDLER_ID, "Subtree Handler" ); } function attributes() diff --git a/kernel/classes/notification/handler/ezsubtree/ezsubtreenotificationrule.php b/kernel/classes/notification/handler/ezsubtree/ezsubtreenotificationrule.php index 62cbdaf5df3..fe59aaaf969 100644 --- a/kernel/classes/notification/handler/ezsubtree/ezsubtreenotificationrule.php +++ b/kernel/classes/notification/handler/ezsubtree/ezsubtreenotificationrule.php @@ -15,14 +15,6 @@ */ class eZSubtreeNotificationRule extends eZPersistentObject { - /*! - Constructor - */ - function eZSubtreeNotificationRule( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( "fields" => array( "id" => array( 'name' => 'ID', diff --git a/kernel/classes/packagecreators/ezcontentclass/ezcontentclasspackagecreator.php b/kernel/classes/packagecreators/ezcontentclass/ezcontentclasspackagecreator.php index 490561b74e0..f296ef0dba3 100644 --- a/kernel/classes/packagecreators/ezcontentclass/ezcontentclasspackagecreator.php +++ b/kernel/classes/packagecreators/ezcontentclass/ezcontentclasspackagecreator.php @@ -17,7 +17,7 @@ class eZContentClassPackageCreator extends eZPackageCreationHandler { - function eZContentClassPackageCreator( $id ) + public function __construct( $id ) { $steps = array(); $steps[] = array( 'id' => 'class', @@ -29,9 +29,7 @@ function eZContentClassPackageCreator( $id ) $steps[] = $this->packageInformationStep(); $steps[] = $this->packageMaintainerStep(); $steps[] = $this->packageChangelogStep(); - $this->eZPackageCreationHandler( $id, - ezpI18n::tr( 'kernel/package', 'Content class export' ), - $steps ); + parent::__construct( $id, ezpI18n::tr( 'kernel/package', 'Content class export' ), $steps ); } /*! diff --git a/kernel/classes/packagecreators/ezcontentobject/ezcontentobjectpackagecreator.php b/kernel/classes/packagecreators/ezcontentobject/ezcontentobjectpackagecreator.php index 32baac32b79..d917b66959c 100644 --- a/kernel/classes/packagecreators/ezcontentobject/ezcontentobjectpackagecreator.php +++ b/kernel/classes/packagecreators/ezcontentobject/ezcontentobjectpackagecreator.php @@ -16,7 +16,7 @@ class eZContentObjectPackageCreator extends eZPackageCreationHandler { - function eZContentObjectPackageCreator( $id ) + public function __construct( $id ) { $steps = array(); $steps[] = array( 'id' => 'object', @@ -34,9 +34,7 @@ function eZContentObjectPackageCreator( $id ) $steps[] = $this->packageInformationStep(); $steps[] = $this->packageMaintainerStep(); $steps[] = $this->packageChangelogStep(); - $this->eZPackageCreationHandler( $id, - ezpI18n::tr( 'kernel/package', 'Content object export' ), - $steps ); + parent::__construct( $id, ezpI18n::tr( 'kernel/package', 'Content object export' ), $steps ); } /*! diff --git a/kernel/classes/packagecreators/ezextension/ezextensionpackagecreator.php b/kernel/classes/packagecreators/ezextension/ezextensionpackagecreator.php index 55b2498a478..e713fdb7995 100644 --- a/kernel/classes/packagecreators/ezextension/ezextensionpackagecreator.php +++ b/kernel/classes/packagecreators/ezextension/ezextensionpackagecreator.php @@ -17,10 +17,7 @@ class eZExtensionPackageCreator extends eZPackageCreationHandler { - /*! - Constructor - */ - function eZExtensionPackageCreator( $id ) + public function __construct( $id ) { $steps = array(); $steps[] = array( 'id' => 'extensionlist', @@ -33,9 +30,7 @@ function eZExtensionPackageCreator( $id ) $steps[] = $this->packageInformationStep(); $steps[] = $this->packageMaintainerStep(); $steps[] = $this->packageChangelogStep(); - $this->eZPackageCreationHandler( $id, - ezpI18n::tr( 'kernel/package', 'Extension export' ), - $steps ); + parent::__construct( $id, ezpI18n::tr( 'kernel/package', 'Extension export' ), $steps ); } function finalize( &$package, $http, &$persistentData ) diff --git a/kernel/classes/packagecreators/ezstyle/ezstylepackagecreator.php b/kernel/classes/packagecreators/ezstyle/ezstylepackagecreator.php index 3a2bf55aa6e..4be639f4394 100644 --- a/kernel/classes/packagecreators/ezstyle/ezstylepackagecreator.php +++ b/kernel/classes/packagecreators/ezstyle/ezstylepackagecreator.php @@ -17,10 +17,7 @@ class eZStylePackageCreator extends eZPackageCreationHandler { - /*! - Constructor - */ - function eZStylePackageCreator( $id ) + public function __construct( $id ) { $steps = array(); $steps[] = $this->packageThumbnailStep(); @@ -39,9 +36,7 @@ function eZStylePackageCreator( $id ) $steps[] = $this->packageInformationStep(); $steps[] = $this->packageMaintainerStep(); $steps[] = $this->packageChangelogStep(); - $this->eZPackageCreationHandler( $id, - ezpI18n::tr( 'kernel/package', 'Site style' ), - $steps ); + parent::__construct( $id, ezpI18n::tr( 'kernel/package', 'Site style' ), $steps ); } function finalize( &$package, $http, &$persistentData ) diff --git a/kernel/classes/packagehandlers/ezcontentclass/ezcontentclasspackagehandler.php b/kernel/classes/packagehandlers/ezcontentclass/ezcontentclasspackagehandler.php index fd33b6b6357..d05de3145d7 100644 --- a/kernel/classes/packagehandlers/ezcontentclass/ezcontentclasspackagehandler.php +++ b/kernel/classes/packagehandlers/ezcontentclass/ezcontentclasspackagehandler.php @@ -24,13 +24,9 @@ class eZContentClassPackageHandler extends eZPackageHandler const ACTION_NEW = 3; const ACTION_DELETE = 4; - /*! - Constructor - */ - function eZContentClassPackageHandler() + public function __construct() { - $this->eZPackageHandler( 'ezcontentclass', - array( 'extract-install-content' => true ) ); + parent::__construct( 'ezcontentclass', array( 'extract-install-content' => true ) ); } /*! diff --git a/kernel/classes/packagehandlers/ezcontentobject/ezcontentobjectpackagehandler.php b/kernel/classes/packagehandlers/ezcontentobject/ezcontentobjectpackagehandler.php index 4b61b9ffbbe..8110bbe33de 100644 --- a/kernel/classes/packagehandlers/ezcontentobject/ezcontentobjectpackagehandler.php +++ b/kernel/classes/packagehandlers/ezcontentobject/ezcontentobjectpackagehandler.php @@ -28,13 +28,9 @@ class eZContentObjectPackageHandler extends eZPackageHandler const UNINSTALL_OBJECTS_ERROR_RANGE_FROM = 101; const UNINSTALL_OBJECTS_ERROR_RANGE_TO = 200; - /*! - Constructor - */ - function eZContentObjectPackageHandler() + public function __construct() { - $this->eZPackageHandler( 'ezcontentobject', - array( 'extract-install-content' => true ) ); + parent::__construct( 'ezcontentobject', array( 'extract-install-content' => true ) ); } /*! diff --git a/kernel/classes/packagehandlers/ezdb/ezdbpackagehandler.php b/kernel/classes/packagehandlers/ezdb/ezdbpackagehandler.php index 39ec9139167..fffae09e36b 100644 --- a/kernel/classes/packagehandlers/ezdb/ezdbpackagehandler.php +++ b/kernel/classes/packagehandlers/ezdb/ezdbpackagehandler.php @@ -16,12 +16,9 @@ class eZDBPackageHandler extends eZPackageHandler { - /*! - Constructor - */ - function eZDBPackageHandler() + public function __construct() { - $this->eZPackageHandler( 'ezdb' ); + parent::__construct( 'ezdb' ); } /*! diff --git a/kernel/classes/packagehandlers/ezextension/ezextensionpackagehandler.php b/kernel/classes/packagehandlers/ezextension/ezextensionpackagehandler.php index 69f195b16dc..5bd58e02311 100644 --- a/kernel/classes/packagehandlers/ezextension/ezextensionpackagehandler.php +++ b/kernel/classes/packagehandlers/ezextension/ezextensionpackagehandler.php @@ -21,13 +21,9 @@ class eZExtensionPackageHandler extends eZPackageHandler const ACTION_REPLACE = 1; const ACTION_SKIP = 2; - /*! - Constructor - */ - function eZExtensionPackageHandler() + public function __construct() { - $this->eZPackageHandler( 'ezextension', - array( 'extract-install-content' => true ) ); + parent::__construct( 'ezextension', array( 'extract-install-content' => true ) ); } /*! diff --git a/kernel/classes/packagehandlers/ezfile/ezfilepackagehandler.php b/kernel/classes/packagehandlers/ezfile/ezfilepackagehandler.php index 2419192b729..07fa84642d9 100644 --- a/kernel/classes/packagehandlers/ezfile/ezfilepackagehandler.php +++ b/kernel/classes/packagehandlers/ezfile/ezfilepackagehandler.php @@ -16,12 +16,9 @@ class eZFilePackageHandler extends eZPackageHandler { - /*! - Constructor - */ - function eZFilePackageHandler() + public function __construct() { - $this->eZPackageHandler( 'ezfile' ); + parent::__construct( 'ezfile' ); } function install( $package, $installType, $parameters, diff --git a/kernel/classes/packagehandlers/eziniaddon/eziniaddonpackagehandler.php b/kernel/classes/packagehandlers/eziniaddon/eziniaddonpackagehandler.php index af99958dab7..808cebbb8d3 100644 --- a/kernel/classes/packagehandlers/eziniaddon/eziniaddonpackagehandler.php +++ b/kernel/classes/packagehandlers/eziniaddon/eziniaddonpackagehandler.php @@ -16,13 +16,9 @@ class eZINIAddonPackageHandler extends eZPackageHandler { - /*! - Constructor - */ - function eZINIAddonPackageHandler() + public function __construct() { - $this->eZPackageHandler( 'eziniaddon', - array( 'extract-install-content' => true ) ); + parent::__construct( 'eziniaddon', array( 'extract-install-content' => true ) ); } /*! diff --git a/kernel/classes/packagehandlers/ezinstallscript/ezinstallscriptpackagehandler.php b/kernel/classes/packagehandlers/ezinstallscript/ezinstallscriptpackagehandler.php index 77705648a40..37e7824ef6a 100644 --- a/kernel/classes/packagehandlers/ezinstallscript/ezinstallscriptpackagehandler.php +++ b/kernel/classes/packagehandlers/ezinstallscript/ezinstallscriptpackagehandler.php @@ -17,13 +17,9 @@ class eZInstallScriptPackageHandler extends eZPackageHandler { - /*! - Constructor - */ - function eZInstallScriptPackageHandler() + public function __construct() { - $this->eZPackageHandler( 'ezinstallscript', - array( 'extract-install-content' => false ) ); + parent::__construct( 'ezinstallscript', array( 'extract-install-content' => false ) ); } /*! diff --git a/kernel/classes/packageinstallers/ezcontentobject/ezcontentobjectpackageinstaller.php b/kernel/classes/packageinstallers/ezcontentobject/ezcontentobjectpackageinstaller.php index df088504f76..14230516e99 100644 --- a/kernel/classes/packageinstallers/ezcontentobject/ezcontentobjectpackageinstaller.php +++ b/kernel/classes/packageinstallers/ezcontentobject/ezcontentobjectpackageinstaller.php @@ -16,8 +16,14 @@ class eZContentObjectPackageInstaller extends eZPackageInstallationHandler { - - function eZContentObjectPackageInstaller( $package, $type, $installItem ) + /** + * Constructor + * + * @param eZPackage $package + * @param string $type + * @param mixed $installItem + */ + public function __construct( $package, $type, $installItem ) { $steps = array(); $steps[] = array( 'id' => 'site_access', @@ -35,11 +41,9 @@ function eZContentObjectPackageInstaller( $package, $type, $installItem ) 'methods' => array( 'initialize' => 'initializeAdvancedOptions', 'validate' => 'validateAdvancedOptions' ), 'template' => 'advanced_options.tpl' ); - $this->eZPackageInstallationHandler( $package, - $type, - $installItem, - ezpI18n::tr( 'kernel/package', 'Content object import' ), - $steps ); + parent::__construct( + $package, $type, $installItem, ezpI18n::tr( 'kernel/package', 'Content object import' ), $steps + ); } /*! diff --git a/kernel/classes/packageinstallers/ezinstallscript/ezinstallscriptpackageinstaller.php b/kernel/classes/packageinstallers/ezinstallscript/ezinstallscriptpackageinstaller.php index 38eee0aa528..142712e6150 100644 --- a/kernel/classes/packageinstallers/ezinstallscript/ezinstallscriptpackageinstaller.php +++ b/kernel/classes/packageinstallers/ezinstallscript/ezinstallscriptpackageinstaller.php @@ -15,13 +15,14 @@ class eZInstallScriptPackageInstaller extends eZPackageInstallationHandler { - /* - Constructor should be implemented in the child class - and call the constructor of eZPackageInstallationHandler. + /** + * The Constructor should be implemented in the child class + * and call the constructor of eZPackageInstallationHandler. */ - function eZInstallScriptPackageInstaller( $package, $type, $installItem ) + public function __construct( $package, $type, $installItem, $name = null, $steps = null ) { } + /*! Returns \c 'stable', content class packages are always stable. */ diff --git a/kernel/classes/shopaccounthandlers/ezdefaultshopaccounthandler.php b/kernel/classes/shopaccounthandlers/ezdefaultshopaccounthandler.php index f5b471fc8c1..3adbc041d98 100644 --- a/kernel/classes/shopaccounthandlers/ezdefaultshopaccounthandler.php +++ b/kernel/classes/shopaccounthandlers/ezdefaultshopaccounthandler.php @@ -10,11 +10,6 @@ class eZDefaultShopAccountHandler { - function eZDefaultShopAccountHandler() - { - - } - /*! Will verify that the user has supplied the correct user information. Returns true if we have all the information needed about the user. diff --git a/kernel/classes/shopaccounthandlers/ezsimpleshopaccounthandler.php b/kernel/classes/shopaccounthandlers/ezsimpleshopaccounthandler.php index ff28b658879..c7a07dbd3fa 100644 --- a/kernel/classes/shopaccounthandlers/ezsimpleshopaccounthandler.php +++ b/kernel/classes/shopaccounthandlers/ezsimpleshopaccounthandler.php @@ -10,11 +10,6 @@ class eZSimpleShopAccountHandler { - function eZSimpleShopAccountHandler() - { - - } - /*! Will verify that the user has supplied the correct user information. Returns true if we have all the information needed about the user. diff --git a/kernel/classes/shopaccounthandlers/ezusershopaccounthandler.php b/kernel/classes/shopaccounthandlers/ezusershopaccounthandler.php index 688f8069dca..3461f87557f 100644 --- a/kernel/classes/shopaccounthandlers/ezusershopaccounthandler.php +++ b/kernel/classes/shopaccounthandlers/ezusershopaccounthandler.php @@ -10,11 +10,6 @@ class eZUserShopAccountHandler { - function eZUserShopAccountHandler() - { - - } - /*! Will verify that the user has supplied the correct user information. Returns true if we have all the information needed about the user. diff --git a/kernel/classes/workflowtypes/event/ezapprove/ezapprovetype.php b/kernel/classes/workflowtypes/event/ezapprove/ezapprovetype.php index 5ea747fbef2..a8d0f95aea8 100644 --- a/kernel/classes/workflowtypes/event/ezapprove/ezapprovetype.php +++ b/kernel/classes/workflowtypes/event/ezapprove/ezapprovetype.php @@ -31,9 +31,9 @@ class eZApproveType extends eZWorkflowEventType const VERSION_OPTION_EXCEPT_FIRST = 2; const VERSION_OPTION_ALL = 3; - function eZApproveType() + public function __construct() { - $this->eZWorkflowEventType( eZApproveType::WORKFLOW_TYPE_STRING, ezpI18n::tr( 'kernel/workflow/event', "Approve" ) ); + parent::__construct( eZApproveType::WORKFLOW_TYPE_STRING, ezpI18n::tr( 'kernel/workflow/event', "Approve" ) ); $this->setTriggerTypes( array( 'content' => array( 'publish' => array( 'before' ) ) ) ); } diff --git a/kernel/classes/workflowtypes/event/ezfinishuserregister/ezfinishuserregistertype.php b/kernel/classes/workflowtypes/event/ezfinishuserregister/ezfinishuserregistertype.php index 0bffec01178..a2efd6cd767 100644 --- a/kernel/classes/workflowtypes/event/ezfinishuserregister/ezfinishuserregistertype.php +++ b/kernel/classes/workflowtypes/event/ezfinishuserregister/ezfinishuserregistertype.php @@ -19,7 +19,7 @@ class eZFinishUserRegisterType extends eZWorkflowEventType { public function __construct() { - $this->eZWorkflowEventType( eZFinishUserRegisterType::WORKFLOW_TYPE_STRING, ezpI18n::tr( 'kernel/workflow/event', "Finish User Registration" ) ); + parent::__construct( eZFinishUserRegisterType::WORKFLOW_TYPE_STRING, ezpI18n::tr( 'kernel/workflow/event', "Finish User Registration" ) ); $this->setTriggerTypes( array( 'content' => array( 'publish' => array( 'after' ) ) ) ); } diff --git a/kernel/classes/workflowtypes/event/ezmultiplexer/ezmultiplexertype.php b/kernel/classes/workflowtypes/event/ezmultiplexer/ezmultiplexertype.php index 065b798f11d..6585709dc96 100644 --- a/kernel/classes/workflowtypes/event/ezmultiplexer/ezmultiplexertype.php +++ b/kernel/classes/workflowtypes/event/ezmultiplexer/ezmultiplexertype.php @@ -30,9 +30,9 @@ class eZMultiplexerType extends eZWorkflowEventType /*! Constructor */ - function eZMultiplexerType() + public function __construct() { - $this->eZWorkflowEventType( eZMultiplexerType::WORKFLOW_TYPE_STRING, ezpI18n::tr( 'kernel/workflow/event', 'Multiplexer' ) ); + parent::__construct( eZMultiplexerType::WORKFLOW_TYPE_STRING, ezpI18n::tr( 'kernel/workflow/event', 'Multiplexer' ) ); } function attributeDecoder( $event, $attr ) diff --git a/kernel/classes/workflowtypes/event/ezpaymentgateway/ezpaymentgatewaytype.php b/kernel/classes/workflowtypes/event/ezpaymentgateway/ezpaymentgatewaytype.php index 54363fe1a8a..ead2366bf97 100644 --- a/kernel/classes/workflowtypes/event/ezpaymentgateway/ezpaymentgatewaytype.php +++ b/kernel/classes/workflowtypes/event/ezpaymentgateway/ezpaymentgatewaytype.php @@ -22,15 +22,11 @@ class eZPaymentGatewayType extends eZWorkflowEventType const GATEWAY_NOT_SELECTED = 0; const GATEWAY_SELECTED = 1; - /*! - Constructor. - */ - - function eZPaymentGatewayType() + public function __construct() { - $this->logger = eZPaymentLogger::CreateForAdd( "var/log/eZPaymentGatewayType.log" ); + $this->logger = eZPaymentLogger::CreateForAdd( "var/log/eZPaymentGatewayType.log" ); - $this->eZWorkflowEventType( eZPaymentGatewayType::WORKFLOW_TYPE_STRING, ezpI18n::tr( 'kernel/workflow/event', "Payment Gateway" ) ); + parent::__construct( eZPaymentGatewayType::WORKFLOW_TYPE_STRING, ezpI18n::tr( 'kernel/workflow/event', "Payment Gateway" ) ); $this->loadAndRegisterGateways(); } diff --git a/kernel/classes/workflowtypes/event/ezpaymentgateway/ezpaymentlogger.php b/kernel/classes/workflowtypes/event/ezpaymentgateway/ezpaymentlogger.php index 795fffe7522..2bc9f64ce13 100644 --- a/kernel/classes/workflowtypes/event/ezpaymentgateway/ezpaymentlogger.php +++ b/kernel/classes/workflowtypes/event/ezpaymentgateway/ezpaymentlogger.php @@ -14,7 +14,7 @@ class eZPaymentLogger { - function eZPaymentLogger( $fileName, $mode ) + public function __construct( $fileName, $mode ) { $this->file = fopen( $fileName, $mode ); } diff --git a/kernel/classes/workflowtypes/event/ezsimpleshipping/ezsimpleshippingtype.php b/kernel/classes/workflowtypes/event/ezsimpleshipping/ezsimpleshippingtype.php index 32f3e260e52..36bee2adab8 100644 --- a/kernel/classes/workflowtypes/event/ezsimpleshipping/ezsimpleshippingtype.php +++ b/kernel/classes/workflowtypes/event/ezsimpleshipping/ezsimpleshippingtype.php @@ -17,12 +17,9 @@ class eZSimpleShippingType extends eZWorkflowEventType { const WORKFLOW_TYPE_STRING = 'ezsimpleshipping'; - /*! - Constructor - */ - function eZSimpleShippingType() + public function __construct() { - $this->eZWorkflowEventType( eZSimpleShippingType::WORKFLOW_TYPE_STRING, ezpI18n::tr( 'kernel/workflow/event', "Simple shipping" ) ); + parent::__construct( eZSimpleShippingType::WORKFLOW_TYPE_STRING, ezpI18n::tr( 'kernel/workflow/event', "Simple shipping" ) ); $this->setTriggerTypes( array( 'shop' => array( 'confirmorder' => array ( 'before' ) ) ) ); } diff --git a/kernel/classes/workflowtypes/event/ezwaituntildate/ezwaituntildate.php b/kernel/classes/workflowtypes/event/ezwaituntildate/ezwaituntildate.php index 875966b1cdf..8aa580f8d27 100644 --- a/kernel/classes/workflowtypes/event/ezwaituntildate/ezwaituntildate.php +++ b/kernel/classes/workflowtypes/event/ezwaituntildate/ezwaituntildate.php @@ -15,7 +15,11 @@ */ class eZWaitUntilDate { - function eZWaitUntilDate( $eventID, $eventVersion ) + /** + * @param int $eventID + * @param int $eventVersion + */ + public function __construct( $eventID, $eventVersion ) { $this->WorkflowEventID = $eventID; $this->WorkflowEventVersion = $eventVersion; diff --git a/kernel/classes/workflowtypes/event/ezwaituntildate/ezwaituntildatetype.php b/kernel/classes/workflowtypes/event/ezwaituntildate/ezwaituntildatetype.php index 8611715a7bf..954d5e199d8 100644 --- a/kernel/classes/workflowtypes/event/ezwaituntildate/ezwaituntildatetype.php +++ b/kernel/classes/workflowtypes/event/ezwaituntildate/ezwaituntildatetype.php @@ -17,12 +17,9 @@ class eZWaitUntilDateType extends eZWorkflowEventType { const WORKFLOW_TYPE_STRING = "ezwaituntildate"; - /*! - Constructor - */ - function eZWaitUntilDateType() + public function __construct() { - $this->eZWorkflowEventType( eZWaitUntilDateType::WORKFLOW_TYPE_STRING, ezpI18n::tr( 'kernel/workflow/event', "Wait until date" ) ); + parent::__construct( eZWaitUntilDateType::WORKFLOW_TYPE_STRING, ezpI18n::tr( 'kernel/workflow/event', "Wait until date" ) ); $this->setTriggerTypes( array( 'content' => array( 'publish' => array( 'before', 'after' ) ) ) ); } diff --git a/kernel/classes/workflowtypes/event/ezwaituntildate/ezwaituntildatevalue.php b/kernel/classes/workflowtypes/event/ezwaituntildate/ezwaituntildatevalue.php index 7edf187aecc..482a68f9551 100644 --- a/kernel/classes/workflowtypes/event/ezwaituntildate/ezwaituntildatevalue.php +++ b/kernel/classes/workflowtypes/event/ezwaituntildate/ezwaituntildatevalue.php @@ -16,12 +16,9 @@ class eZWaitUntilDateValue extends eZPersistentObject { - /*! - Constructor - */ - function eZWaitUntilDateValue( $row ) + public function __construct( $row ) { - $this->eZPersistentObject( $row ); + parent::__construct( $row ); $this->ClassName = null; $this->ClassAttributeName = null; diff --git a/kernel/collaboration/ezcollaborationfunctioncollection.php b/kernel/collaboration/ezcollaborationfunctioncollection.php index 44b863f833a..f4e366d177e 100644 --- a/kernel/collaboration/ezcollaborationfunctioncollection.php +++ b/kernel/collaboration/ezcollaborationfunctioncollection.php @@ -16,13 +16,6 @@ class eZCollaborationFunctionCollection { - /*! - Constructor - */ - function eZCollaborationFunctionCollection() - { - } - function fetchParticipant( $itemID, $participantID ) { if ( $participantID === false ) diff --git a/kernel/common/ezalphabetoperator.php b/kernel/common/ezalphabetoperator.php index c057ae39273..2fabf564e23 100644 --- a/kernel/common/ezalphabetoperator.php +++ b/kernel/common/ezalphabetoperator.php @@ -17,7 +17,12 @@ class eZAlphabetOperator { - function eZAlphabetOperator( $alphabet = 'alphabet' ) + /** + * Constructor + * + * @param string $alphabet + */ + public function __construct( $alphabet = 'alphabet' ) { $this->Operators = array( $alphabet ); $this->Alphabet = $alphabet; diff --git a/kernel/common/ezautolinkoperator.php b/kernel/common/ezautolinkoperator.php index 50617741633..a78514e6884 100644 --- a/kernel/common/ezautolinkoperator.php +++ b/kernel/common/ezautolinkoperator.php @@ -10,7 +10,12 @@ class eZAutoLinkOperator { - function eZAutoLinkOperator( $name = 'autolink' ) + /** + * Constructor + * + * @param string $name + */ + public function __construct( $name = 'autolink' ) { $this->Operators = array( $name ); } diff --git a/kernel/common/ezcontentstructuretreeoperator.php b/kernel/common/ezcontentstructuretreeoperator.php index 52b52b03b97..f253c66ca82 100644 --- a/kernel/common/ezcontentstructuretreeoperator.php +++ b/kernel/common/ezcontentstructuretreeoperator.php @@ -15,7 +15,12 @@ class eZContentStructureTreeOperator { - function eZContentStructureTreeOperator( $name = 'content_structure_tree' ) + /** + * Constructor + * + * @param string $name + */ + public function __construct( $name = 'content_structure_tree' ) { $this->Operators = array( $name ); } diff --git a/kernel/common/ezdateoperatorcollection.php b/kernel/common/ezdateoperatorcollection.php index f1a4dd9c64b..a3f5731e6cd 100644 --- a/kernel/common/ezdateoperatorcollection.php +++ b/kernel/common/ezdateoperatorcollection.php @@ -10,7 +10,12 @@ class eZDateOperatorCollection { - function eZDateOperatorCollection( $monthName = 'month_overview' ) + /** + * Constructor + * + * @param string $monthName + */ + public function __construct( $monthName = 'month_overview' ) { $this->MonthOverviewName = $monthName; $this->Operators = array( $monthName ); diff --git a/kernel/common/ezi18noperator.php b/kernel/common/ezi18noperator.php index 74f656ff7ff..e503e3472c4 100644 --- a/kernel/common/ezi18noperator.php +++ b/kernel/common/ezi18noperator.php @@ -16,7 +16,14 @@ class eZi18nOperator { - function eZi18nOperator( $name = 'i18n', $extensionName = 'x18n', $dynamicName = 'd18n' ) + /** + * Constructor + * + * @param string $name + * @param string $extensionName + * @param string $dynamicName + */ + public function __construct( $name = 'i18n', $extensionName = 'x18n', $dynamicName = 'd18n' ) { $this->Operators = array( $name, $extensionName, $dynamicName ); $this->Name = $name; diff --git a/kernel/common/ezkerneloperator.php b/kernel/common/ezkerneloperator.php index 3098e720a90..c82ec01d7ab 100644 --- a/kernel/common/ezkerneloperator.php +++ b/kernel/common/ezkerneloperator.php @@ -15,10 +15,12 @@ */ class eZKernelOperator { - /*! - Initializes the object with the name $name - */ - function eZKernelOperator( $name = "ezpreference" ) + /** + * Constructor + * + * @param string $name + */ + public function __construct( $name = "ezpreference" ) { $this->Operators = array( $name ); } diff --git a/kernel/common/ezmoduleoperator.php b/kernel/common/ezmoduleoperator.php index 54abe739cf4..d3a6e9ae1e9 100644 --- a/kernel/common/ezmoduleoperator.php +++ b/kernel/common/ezmoduleoperator.php @@ -17,10 +17,12 @@ class eZModuleOperator { - /*! - Constructor - */ - function eZModuleOperator( $name = 'ezmodule' ) + /** + * Constructor + * + * @param string $name + */ + public function __construct( $name = 'ezmodule' ) { $this->Operators = array( $name ); } diff --git a/kernel/common/ezmoduleparamsoperator.php b/kernel/common/ezmoduleparamsoperator.php index b378237d12a..7b61e4d2051 100644 --- a/kernel/common/ezmoduleparamsoperator.php +++ b/kernel/common/ezmoduleparamsoperator.php @@ -30,13 +30,6 @@ class eZModuleParamsOperator { - /*! - Constructor, does nothing by default. - */ - function eZModuleParamsOperator() - { - } - /*! \return an array with the template operator name. */ diff --git a/kernel/common/ezobjectforwarder.php b/kernel/common/ezobjectforwarder.php index 76f0813d0a1..71c879d605f 100644 --- a/kernel/common/ezobjectforwarder.php +++ b/kernel/common/ezobjectforwarder.php @@ -16,7 +16,12 @@ class eZObjectForwarder { - function eZObjectForwarder( $rules ) + /** + * Constructor + * + * @param array $rules + */ + public function __construct( $rules ) { $this->Rules = $rules; } diff --git a/kernel/common/ezpackageoperator.php b/kernel/common/ezpackageoperator.php index f660699373f..7af6a6863a0 100644 --- a/kernel/common/ezpackageoperator.php +++ b/kernel/common/ezpackageoperator.php @@ -16,10 +16,12 @@ class eZPackageOperator { - /*! - Constructor - */ - function eZPackageOperator( $name = 'ezpackage' ) + /** + * Constructor + * + * @param string $name + */ + public function __construct( $name = 'ezpackage' ) { $this->Operators = array( $name ); } diff --git a/kernel/common/ezsimpletagsoperator.php b/kernel/common/ezsimpletagsoperator.php index 1d29bf6af7f..6cc1d019269 100644 --- a/kernel/common/ezsimpletagsoperator.php +++ b/kernel/common/ezsimpletagsoperator.php @@ -10,7 +10,12 @@ class eZSimpleTagsOperator { - function eZSimpleTagsOperator( $name = 'simpletags' ) + /** + * Constructor + * + * @param string $name + */ + public function __construct( $name = 'simpletags' ) { $this->Operators = array( $name ); } diff --git a/kernel/common/eztemplatedesignresource.php b/kernel/common/eztemplatedesignresource.php index d9c97968eb9..27eaf87f9ee 100644 --- a/kernel/common/eztemplatedesignresource.php +++ b/kernel/common/eztemplatedesignresource.php @@ -27,12 +27,14 @@ class eZTemplateDesignResource extends eZTemplateFileResource */ protected static $overrideArrayCache = null; - /*! - Initializes with a default resource name "design". - */ - function eZTemplateDesignResource( $name = "design" ) + /** + * Constructor + * + * @param string $name + */ + public function __construct( $name = "design" ) { - $this->eZTemplateFileResource( $name, true ); + parent::__construct( $name, true ); $this->Keys = array(); $this->KeyStack = array(); } diff --git a/kernel/common/eztocoperator.php b/kernel/common/eztocoperator.php index 506df115239..abbf7fe5859 100644 --- a/kernel/common/eztocoperator.php +++ b/kernel/common/eztocoperator.php @@ -16,13 +16,6 @@ class eZTOCOperator { - /*! - Constructor - */ - function eZTOCOperator() - { - } - /*! \return an array with the template operator name. */ diff --git a/kernel/common/eztopmenuoperator.php b/kernel/common/eztopmenuoperator.php index d80a3129c55..483a5fb46dd 100644 --- a/kernel/common/eztopmenuoperator.php +++ b/kernel/common/eztopmenuoperator.php @@ -17,10 +17,12 @@ class eZTopMenuOperator { - /*! - Constructor - */ - function eZTopMenuOperator( $name = 'topmenu' ) + /** + * Constructor + * + * @param string $name + */ + public function __construct( $name = 'topmenu' ) { $this->Operators = array( $name ); $this->DefaultNames = array( diff --git a/kernel/common/eztreemenuoperator.php b/kernel/common/eztreemenuoperator.php index 2e11e5f8337..190a915ad5a 100644 --- a/kernel/common/eztreemenuoperator.php +++ b/kernel/common/eztreemenuoperator.php @@ -10,7 +10,12 @@ class eZTreeMenuOperator { - function eZTreeMenuOperator( $name = 'treemenu' ) + /** + * Constructor + * + * @param string $name + */ + public function __construct( $name = 'treemenu' ) { $this->Operators = array( $name ); } diff --git a/kernel/common/ezurloperator.php b/kernel/common/ezurloperator.php index 99126a9b875..0416e806b14 100644 --- a/kernel/common/ezurloperator.php +++ b/kernel/common/ezurloperator.php @@ -21,10 +21,21 @@ class eZURLOperator const HTTP_OPERATOR_TYPE_SESSION = 3; const HTTP_OPERATOR_TYPE_COOKIE = 4; - /*! - Initializes the image operator with the operator name $name. - */ - function eZURLOperator( $url_name = 'ezurl', + /** + * Constructor + * + * @param string $url_name + * @param string $urlroot_name + * @param string $ezsys_name + * @param string $design_name + * @param string $image_name + * @param string $ext_name + * @param string $httpName + * @param string $iniName + * @param string $iniNameHasVariable + * @param string $httpNameHasVariable + */ + public function __construct( $url_name = 'ezurl', $urlroot_name = 'ezroot', $ezsys_name = 'ezsys', $design_name = 'ezdesign', diff --git a/kernel/common/ezwordtoimageoperator.php b/kernel/common/ezwordtoimageoperator.php index 01d99cdaaf9..9fc552f5097 100644 --- a/kernel/common/ezwordtoimageoperator.php +++ b/kernel/common/ezwordtoimageoperator.php @@ -15,10 +15,10 @@ */ class eZWordToImageOperator { - /*! - Initializes the object with the name $name, default is "wash". - */ - function eZWordToImageOperator() + /** + * Constructor + */ + public function __construct() { $this->Operators = array( "wordtoimage", "mimetype_icon", "class_icon", "classgroup_icon", "action_icon", "icon", diff --git a/kernel/content/ezcontentfunctioncollection.php b/kernel/content/ezcontentfunctioncollection.php index d83e60324e6..ee9dc2f5e4e 100644 --- a/kernel/content/ezcontentfunctioncollection.php +++ b/kernel/content/ezcontentfunctioncollection.php @@ -16,13 +16,6 @@ class eZContentFunctionCollection { - /*! - Constructor - */ - function eZContentFunctionCollection() - { - } - static public function fetchContentObject( $objectID, $remoteID = false ) { if ( $objectID === false && $remoteID !== false ) @@ -843,7 +836,7 @@ static public function fetchKeywordCount( $alphabet, INNER JOIN ezcontentobject_tree ON (ezcontentobject_tree.contentobject_id = ezcontentobject.id) INNER JOIN ezcontentclass ON (ezcontentclass.id = ezcontentobject.contentclass_id) $sqlPermissionChecking[from] - WHERE + WHERE $parentNodeIDString $sqlMatching $showInvisibleNodesCond diff --git a/kernel/content/ezcontentoperationcollection.php b/kernel/content/ezcontentoperationcollection.php index 9019ecccf55..fc7e189680a 100644 --- a/kernel/content/ezcontentoperationcollection.php +++ b/kernel/content/ezcontentoperationcollection.php @@ -21,13 +21,6 @@ class eZContentOperationCollection */ private static $operationsStack = 0; - /*! - Constructor - */ - function eZContentOperationCollection() - { - } - static public function readNode( $nodeID ) { diff --git a/kernel/infocollector/ezinfocollectorfunctioncollection.php b/kernel/infocollector/ezinfocollectorfunctioncollection.php index c81939a7914..4cf0a0d9d2f 100644 --- a/kernel/infocollector/ezinfocollectorfunctioncollection.php +++ b/kernel/infocollector/ezinfocollectorfunctioncollection.php @@ -16,13 +16,6 @@ class eZInfocollectorFunctionCollection { - /*! - Constructor - */ - function eZInfocollectorFunctionCollection() - { - } - static public function fetchCollectedInfoCount( $objectAttributeID, $objectID, $value, $creatorID = false, $userIdentifier = false ) { if ( $objectAttributeID ) diff --git a/kernel/layout/ezlayoutfunctioncollection.php b/kernel/layout/ezlayoutfunctioncollection.php index ce4f299741d..b51655528ac 100644 --- a/kernel/layout/ezlayoutfunctioncollection.php +++ b/kernel/layout/ezlayoutfunctioncollection.php @@ -16,13 +16,6 @@ class eZLayoutFunctionCollection { - /*! - Constructor - */ - function eZLayoutFunctionCollection() - { - } - function fetchSitedesignList() { $contentINI = eZINI::instance( 'content.ini' ); diff --git a/kernel/notification/eznotificationfunctioncollection.php b/kernel/notification/eznotificationfunctioncollection.php index 5fbda63443b..9a9d4156418 100644 --- a/kernel/notification/eznotificationfunctioncollection.php +++ b/kernel/notification/eznotificationfunctioncollection.php @@ -16,13 +16,6 @@ class eZNotificationFunctionCollection { - /*! - Constructor - */ - function eZNotificationFunctionCollection() - { - } - function handlerList() { $availableHandlers = eZNotificationEventFilter::availableHandlers(); diff --git a/kernel/package/ezpackagefunctioncollection.php b/kernel/package/ezpackagefunctioncollection.php index 9969993156f..511c019c89a 100644 --- a/kernel/package/ezpackagefunctioncollection.php +++ b/kernel/package/ezpackagefunctioncollection.php @@ -16,13 +16,6 @@ class eZPackageFunctionCollection { - /*! - Constructor - */ - function eZPackageFunctionCollection() - { - } - function fetchList( $filterArray = false, $offset, $limit, $repositoryID ) { $filterParams = array(); diff --git a/kernel/private/classes/clusterfilehandlers/dfsbackends/mysqlbackenderror.php b/kernel/private/classes/clusterfilehandlers/dfsbackends/mysqlbackenderror.php index 6de162ca9f9..c5d8fe2c1b3 100644 --- a/kernel/private/classes/clusterfilehandlers/dfsbackends/mysqlbackenderror.php +++ b/kernel/private/classes/clusterfilehandlers/dfsbackends/mysqlbackenderror.php @@ -15,7 +15,13 @@ class eZDFSMySQLBackendError { - function eZDFSMySQLBackendError( $value, $text ) + /** + * Constructor + * + * @param mixed $value + * @param string $text + */ + public function __construct( $value, $text ) { $this->errorValue = $value; $this->errorText = $text; diff --git a/kernel/private/classes/ezcontentobjectstate.php b/kernel/private/classes/ezcontentobjectstate.php index a6a435703d3..27f320aa2fe 100644 --- a/kernel/private/classes/ezcontentobjectstate.php +++ b/kernel/private/classes/ezcontentobjectstate.php @@ -18,11 +18,6 @@ class eZContentObjectState extends eZPersistentObject { const MAX_IDENTIFIER_LENGTH = 45; - function __construct( $row = array() ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { static $definition = array( "fields" => array( "id" => array( "name" => "ID", diff --git a/kernel/private/classes/ezcontentobjectstategroup.php b/kernel/private/classes/ezcontentobjectstategroup.php index 89a54b36f1c..8ef56dc738a 100644 --- a/kernel/private/classes/ezcontentobjectstategroup.php +++ b/kernel/private/classes/ezcontentobjectstategroup.php @@ -25,11 +25,6 @@ class eZContentObjectStateGroup extends eZPersistentObject */ static $allowInternalCUD = false; - function __construct( $row = array() ) - { - $this->eZPersistentObject( $row ); - } - public static function definition() { static $definition = array( "fields" => array( "id" => array( "name" => "ID", diff --git a/kernel/private/classes/ezcontentobjectstategrouplanguage.php b/kernel/private/classes/ezcontentobjectstategrouplanguage.php index 9ea1ba7afc6..24ddc5b5017 100644 --- a/kernel/private/classes/ezcontentobjectstategrouplanguage.php +++ b/kernel/private/classes/ezcontentobjectstategrouplanguage.php @@ -19,11 +19,6 @@ */ class eZContentObjectStateGroupLanguage extends eZPersistentObject { - function __construct( $row = array() ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { static $definition = array( "fields" => array( "contentobject_state_group_id" => array( "name" => "ContentObjectStateGroupID", diff --git a/kernel/private/classes/ezcontentobjectstatelanguage.php b/kernel/private/classes/ezcontentobjectstatelanguage.php index c3322db760d..a8842ed0594 100644 --- a/kernel/private/classes/ezcontentobjectstatelanguage.php +++ b/kernel/private/classes/ezcontentobjectstatelanguage.php @@ -19,11 +19,6 @@ */ class eZContentObjectStateLanguage extends eZPersistentObject { - function __construct( $row = array() ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { static $definition = array( "fields" => array( "contentobject_state_id" => array( "name" => "ContentObjectStateID", diff --git a/kernel/role/ezrolefunctioncollection.php b/kernel/role/ezrolefunctioncollection.php index 5481505b506..8371a53a54c 100644 --- a/kernel/role/ezrolefunctioncollection.php +++ b/kernel/role/ezrolefunctioncollection.php @@ -16,13 +16,6 @@ class eZRoleFunctionCollection { - /*! - Constructor - */ - function eZRoleFunctionCollection() - { - } - function fetchRole( $roleID ) { $role = eZRole::fetch( $roleID ); diff --git a/kernel/search/ezsearchfunctioncollection.php b/kernel/search/ezsearchfunctioncollection.php index d5c214ee15f..48d241b1d9d 100644 --- a/kernel/search/ezsearchfunctioncollection.php +++ b/kernel/search/ezsearchfunctioncollection.php @@ -16,13 +16,6 @@ class eZSearchFunctionCollection { - /*! - Constructor - */ - function eZSearchFunctionCollection() - { - } - function fetchSearchListCount() { $db = eZDB::instance(); diff --git a/kernel/search/plugins/ezsearchengine/ezsearchengine.php b/kernel/search/plugins/ezsearchengine/ezsearchengine.php index 4a45296bf00..3166a139e0a 100644 --- a/kernel/search/plugins/ezsearchengine/ezsearchengine.php +++ b/kernel/search/plugins/ezsearchengine/ezsearchengine.php @@ -15,7 +15,7 @@ class eZSearchEngine implements ezpSearchEngine { - function eZSearchEngine() + public function __construct() { $generalFilter = array( 'subTreeTable' => '', 'searchDateQuery' => '', diff --git a/kernel/section/ezsectionfunctioncollection.php b/kernel/section/ezsectionfunctioncollection.php index a0343c8800d..7e88ca39171 100644 --- a/kernel/section/ezsectionfunctioncollection.php +++ b/kernel/section/ezsectionfunctioncollection.php @@ -16,13 +16,6 @@ class eZSectionFunctionCollection { - /*! - Constructor - */ - function eZSectionFunctionCollection() - { - } - /** * Fetch section object given either section id or section identifier. There should be one and only one parameter. * @param integer $sectionID diff --git a/kernel/setup/ezsetup_summary.php b/kernel/setup/ezsetup_summary.php index fd0e7f57f7e..ae60282d5d4 100644 --- a/kernel/setup/ezsetup_summary.php +++ b/kernel/setup/ezsetup_summary.php @@ -16,15 +16,13 @@ class eZSetupSummary { - /*! - Constructor - - Create new object for generating summary - - \param template - \param persistence list - */ - function eZSetupSummary( $tpl, &$persistenceList ) + /** + * Creates a new object for generating summary + * + * @param eZTemplate $tpl + * @param array $persistenceList + */ + public function __construct( $tpl, &$persistenceList ) { $this->Tpl =& $tpl; $this->PersistenceList =& $persistenceList; diff --git a/kernel/setup/ezsetupfunctioncollection.php b/kernel/setup/ezsetupfunctioncollection.php index 1fc288b29aa..30fb9594825 100644 --- a/kernel/setup/ezsetupfunctioncollection.php +++ b/kernel/setup/ezsetupfunctioncollection.php @@ -16,14 +16,6 @@ class eZSetupFunctionCollection { - /*! - Constructor - */ - function eZSetupFunctionCollection() - { - } - - function fetchFullVersionString() { return array( 'result' => eZPublishSDK::version() ); diff --git a/kernel/setup/steps/ezstep_create_sites.php b/kernel/setup/steps/ezstep_create_sites.php index 487340bad8b..372ee7d0997 100644 --- a/kernel/setup/steps/ezstep_create_sites.php +++ b/kernel/setup/steps/ezstep_create_sites.php @@ -46,13 +46,17 @@ class eZStepCreateSites extends eZStepInstaller { - /*! - Constructor - */ - function eZStepCreateSites( $tpl, $http, $ini, &$persistenceList ) + /** + * Constructor + * + * @param eZTemplate $tpl + * @param eZHTTPTool $http + * @param eZINI $ini + * @param array $persistenceList + */ + public function __construct( $tpl, $http, $ini, &$persistenceList ) { - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, - 'create_sites', 'Create sites' ); + parent::__construct( $tpl, $http, $ini, $persistenceList, 'create_sites', 'Create sites' ); } function processPostData() diff --git a/kernel/setup/steps/ezstep_data.php b/kernel/setup/steps/ezstep_data.php index ad8b012c93b..b3856abbb6e 100644 --- a/kernel/setup/steps/ezstep_data.php +++ b/kernel/setup/steps/ezstep_data.php @@ -16,10 +16,6 @@ class eZStepData { - function eZStepData( ) - { - } - /*! \static Get file and class info for specified step diff --git a/kernel/setup/steps/ezstep_database_choice.php b/kernel/setup/steps/ezstep_database_choice.php index 47a6b37dd1b..31e7d5eefbc 100644 --- a/kernel/setup/steps/ezstep_database_choice.php +++ b/kernel/setup/steps/ezstep_database_choice.php @@ -16,12 +16,17 @@ class eZStepDatabaseChoice extends eZStepInstaller { - /*! - Constructor - */ - function eZStepDatabaseChoice( $tpl, $http, $ini, &$persistenceList ) + /** + * Constructor + * + * @param eZTemplate $tpl + * @param eZHTTPTool $http + * @param eZINI $ini + * @param array $persistenceList + */ + public function __construct( $tpl, $http, $ini, &$persistenceList ) { - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, + parent::__construct( $tpl, $http, $ini, $persistenceList, 'database_choice', 'Database choice' ); } diff --git a/kernel/setup/steps/ezstep_database_init.php b/kernel/setup/steps/ezstep_database_init.php index 2baf5fd9294..f70bbe8e804 100644 --- a/kernel/setup/steps/ezstep_database_init.php +++ b/kernel/setup/steps/ezstep_database_init.php @@ -16,13 +16,17 @@ class eZStepDatabaseInit extends eZStepInstaller { - /*! - Constructor - */ - function eZStepDatabaseInit( $tpl, $http, $ini, &$persistenceList ) + /** + * Constructor + * + * @param eZTemplate $tpl + * @param eZHTTPTool $http + * @param eZINI $ini + * @param array $persistenceList + */ + public function __construct( $tpl, $http, $ini, &$persistenceList ) { - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, - 'database_init', 'Database init' ); + parent::__construct( $tpl, $http, $ini, $persistenceList, 'database_init', 'Database init' ); } function processPostData() diff --git a/kernel/setup/steps/ezstep_email_settings.php b/kernel/setup/steps/ezstep_email_settings.php index cbc7164eff2..8f165f2c24f 100644 --- a/kernel/setup/steps/ezstep_email_settings.php +++ b/kernel/setup/steps/ezstep_email_settings.php @@ -16,13 +16,17 @@ class eZStepEmailSettings extends eZStepInstaller { - /*! - Constructor - */ - function eZStepEmailSettings( $tpl, $http, $ini, &$persistenceList ) + /** + * Constructor + * + * @param eZTemplate $tpl + * @param eZHTTPTool $http + * @param eZINI $ini + * @param array $persistenceList + */ + public function __construct( $tpl, $http, $ini, &$persistenceList ) { - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, - 'email_settings', 'Email settings' ); + parent::__construct( $tpl, $http, $ini, $persistenceList, 'email_settings', 'Email settings' ); } function processPostData() diff --git a/kernel/setup/steps/ezstep_final.php b/kernel/setup/steps/ezstep_final.php index 47c2a88f5eb..fdbb4e5de84 100644 --- a/kernel/setup/steps/ezstep_final.php +++ b/kernel/setup/steps/ezstep_final.php @@ -16,13 +16,17 @@ class eZStepFinal extends eZStepInstaller { - /*! - Constructor - */ - function eZStepFinal( $tpl, $http, $ini, &$persistenceList ) + /** + * Constructor + * + * @param eZTemplate $tpl + * @param eZHTTPTool $http + * @param eZINI $ini + * @param array $persistenceList + */ + public function __construct( $tpl, $http, $ini, &$persistenceList ) { - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, - 'final', 'Final' ); + parent::__construct( $tpl, $http, $ini, $persistenceList, 'final', 'Final' ); } function processPostData() diff --git a/kernel/setup/steps/ezstep_installer.php b/kernel/setup/steps/ezstep_installer.php index 93137711609..49e747f6551 100644 --- a/kernel/setup/steps/ezstep_installer.php +++ b/kernel/setup/steps/ezstep_installer.php @@ -40,7 +40,7 @@ class eZStepInstaller * @param string $identifier * @param string $name */ - function eZStepInstaller( eZTemplate $tpl, eZHTTPTool $http, eZINI $ini, array &$persistenceList, + public function __construct( eZTemplate $tpl, eZHTTPTool $http, eZINI $ini, array &$persistenceList, $identifier, $name ) { $this->Tpl = $tpl; diff --git a/kernel/setup/steps/ezstep_language_options.php b/kernel/setup/steps/ezstep_language_options.php index 09b596f56c1..3c789c8ce6c 100644 --- a/kernel/setup/steps/ezstep_language_options.php +++ b/kernel/setup/steps/ezstep_language_options.php @@ -16,13 +16,17 @@ class eZStepLanguageOptions extends eZStepInstaller { - /*! - Constructor - */ - function eZStepLanguageOptions( $tpl, $http, $ini, &$persistenceList ) + /** + * Constructor + * + * @param eZTemplate $tpl + * @param eZHTTPTool $http + * @param eZINI $ini + * @param array $persistenceList + */ + public function __construct( $tpl, $http, $ini, &$persistenceList ) { - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, - 'language_options', 'Language options' ); + parent::__construct( $tpl, $http, $ini, $persistenceList, 'language_options', 'Language options' ); } function processPostData() diff --git a/kernel/setup/steps/ezstep_package_language_options.php b/kernel/setup/steps/ezstep_package_language_options.php index b9073352ce4..e1ab3807771 100644 --- a/kernel/setup/steps/ezstep_package_language_options.php +++ b/kernel/setup/steps/ezstep_package_language_options.php @@ -16,13 +16,17 @@ class eZStepPackageLanguageOptions extends eZStepInstaller { - /*! - Constructor - */ - function eZStepPackageLanguageOptions( $tpl, $http, $ini, &$persistenceList ) + /** + * Constructor + * + * @param eZTemplate $tpl + * @param eZHTTPTool $http + * @param eZINI $ini + * @param array $persistenceList + */ + public function __construct( $tpl, $http, $ini, &$persistenceList ) { - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, - 'package_language_options', 'Package language options' ); + parent::__construct( $tpl, $http, $ini, $persistenceList, 'package_language_options', 'Package language options' ); } function processPostData() diff --git a/kernel/setup/steps/ezstep_registration.php b/kernel/setup/steps/ezstep_registration.php index 4b050a93f91..28846bc9d51 100644 --- a/kernel/setup/steps/ezstep_registration.php +++ b/kernel/setup/steps/ezstep_registration.php @@ -24,10 +24,9 @@ class eZStepRegistration extends eZStepInstaller * @param \eZINI $ini * @param array $persistenceList */ - function eZStepRegistration( eZTemplate $tpl, eZHTTPTool $http, eZINI $ini, array &$persistenceList ) + public function __construct( eZTemplate $tpl, eZHTTPTool $http, eZINI $ini, array &$persistenceList ) { - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, - 'registration', 'Registration' ); + parent::__construct( $tpl, $http, $ini, $persistenceList, 'registration', 'Registration' ); } /** diff --git a/kernel/setup/steps/ezstep_security.php b/kernel/setup/steps/ezstep_security.php index 6c066145a11..ebeae91f097 100644 --- a/kernel/setup/steps/ezstep_security.php +++ b/kernel/setup/steps/ezstep_security.php @@ -16,13 +16,17 @@ class eZStepSecurity extends eZStepInstaller { - /*! - Constructor - */ - function eZStepSecurity( $tpl, $http, $ini, &$persistenceList ) + /** + * Constructor + * + * @param eZTemplate $tpl + * @param eZHTTPTool $http + * @param eZINI $ini + * @param array $persistenceList + */ + public function __construct( $tpl, $http, $ini, &$persistenceList ) { - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, - 'security', 'Security' ); + parent::__construct( $tpl, $http, $ini, $persistenceList, 'security', 'Security' ); } function processPostData() diff --git a/kernel/setup/steps/ezstep_site_access.php b/kernel/setup/steps/ezstep_site_access.php index 0cbcea2dd0f..a421fe75104 100644 --- a/kernel/setup/steps/ezstep_site_access.php +++ b/kernel/setup/steps/ezstep_site_access.php @@ -16,13 +16,17 @@ class eZStepSiteAccess extends eZStepInstaller { - /*! - Constructor - */ - function eZStepSiteAccess( $tpl, $http, $ini, &$persistenceList ) + /** + * Constructor + * + * @param eZTemplate $tpl + * @param eZHTTPTool $http + * @param eZINI $ini + * @param array $persistenceList + */ + public function __construct( $tpl, $http, $ini, &$persistenceList ) { - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, - 'site_access', 'Site access' ); + parent::__construct( $tpl, $http, $ini, $persistenceList, 'site_access', 'Site access' ); } function processPostData() diff --git a/kernel/setup/steps/ezstep_site_admin.php b/kernel/setup/steps/ezstep_site_admin.php index eb7152dfc35..d38e881e3a1 100644 --- a/kernel/setup/steps/ezstep_site_admin.php +++ b/kernel/setup/steps/ezstep_site_admin.php @@ -24,13 +24,17 @@ class eZStepSiteAdmin extends eZStepInstaller const PASSWORD_MISSING = 6; const PASSWORD_TOO_SHORT = 7; - /*! - Constructor - */ - function eZStepSiteAdmin( $tpl, $http, $ini, &$persistenceList ) + /** + * Constructor + * + * @param eZTemplate $tpl + * @param eZHTTPTool $http + * @param eZINI $ini + * @param array $persistenceList + */ + public function __construct( $tpl, $http, $ini, &$persistenceList ) { - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, - 'site_admin', 'Site admin' ); + parent::__construct( $tpl, $http, $ini, $persistenceList, 'site_admin', 'Site admin' ); } function processPostData() diff --git a/kernel/setup/steps/ezstep_site_details.php b/kernel/setup/steps/ezstep_site_details.php index fd529dab440..78cd6aed724 100644 --- a/kernel/setup/steps/ezstep_site_details.php +++ b/kernel/setup/steps/ezstep_site_details.php @@ -22,13 +22,17 @@ class eZStepSiteDetails extends eZStepInstaller const SITE_ACCESS_HOSTNAME_REGEXP = '/^([a-zA-Z0-9.\-:]*)$/'; const SITE_ACCESS_PORT_REGEXP = '/^([0-9]*)$/'; - /*! - Constructor - */ - function eZStepSiteDetails( $tpl, $http, $ini, &$persistenceList ) + /** + * Constructor + * + * @param eZTemplate $tpl + * @param eZHTTPTool $http + * @param eZINI $ini + * @param array $persistenceList + */ + public function __construct( $tpl, $http, $ini, &$persistenceList ) { - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, - 'site_details', 'Site details' ); + parent::__construct( $tpl, $http, $ini, $persistenceList, 'site_details', 'Site details' ); } function processPostData() diff --git a/kernel/setup/steps/ezstep_site_packages.php b/kernel/setup/steps/ezstep_site_packages.php index f41a120a482..0d04f5107d1 100644 --- a/kernel/setup/steps/ezstep_site_packages.php +++ b/kernel/setup/steps/ezstep_site_packages.php @@ -16,13 +16,17 @@ class eZStepSitePackages extends eZStepInstaller { - /*! - Constructor - */ - function eZStepSitePackages( $tpl, $http, $ini, &$persistenceList ) + /** + * Constructor + * + * @param eZTemplate $tpl + * @param eZHTTPTool $http + * @param eZINI $ini + * @param array $persistenceList + */ + public function __construct( $tpl, $http, $ini, &$persistenceList ) { - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, - 'site_packages', 'Site packages' ); + parent::__construct( $tpl, $http, $ini, $persistenceList, 'site_packages', 'Site packages' ); } function processPostData() diff --git a/kernel/setup/steps/ezstep_site_templates.php b/kernel/setup/steps/ezstep_site_templates.php index e12529b2b7c..c0e4df61036 100644 --- a/kernel/setup/steps/ezstep_site_templates.php +++ b/kernel/setup/steps/ezstep_site_templates.php @@ -16,13 +16,17 @@ class eZStepSiteTemplates extends eZStepInstaller { - /*! - Constructor - */ - function eZStepSiteTemplates( $tpl, $http, $ini, &$persistenceList ) + /** + * Constructor + * + * @param eZTemplate $tpl + * @param eZHTTPTool $http + * @param eZINI $ini + * @param array $persistenceList + */ + public function __construct( $tpl, $http, $ini, &$persistenceList ) { - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, - 'site_templates', 'Site templates' ); + parent::__construct( $tpl, $http, $ini, $persistenceList, 'site_templates', 'Site templates' ); } function processPostData() diff --git a/kernel/setup/steps/ezstep_site_types.php b/kernel/setup/steps/ezstep_site_types.php index 68e51aa8f32..ea0a9ac7857 100644 --- a/kernel/setup/steps/ezstep_site_types.php +++ b/kernel/setup/steps/ezstep_site_types.php @@ -16,10 +16,15 @@ class eZStepSiteTypes extends eZStepInstaller { - /*! - Constructor - */ - function eZStepSiteTypes( $tpl, $http, $ini, &$persistenceList ) + /** + * Constructor + * + * @param eZTemplate $tpl + * @param eZHTTPTool $http + * @param eZINI $ini + * @param array $persistenceList + */ + public function __construct( $tpl, $http, $ini, &$persistenceList ) { $ini = eZINI::instance( 'package.ini' ); $indexURL = trim( $ini->variable( 'RepositorySettings', 'RemotePackagesIndexURL' ) ); @@ -39,8 +44,7 @@ function eZStepSiteTypes( $tpl, $http, $ini, &$persistenceList ) else $this->XMLIndexURL = $this->IndexURL . '/index.xml'; - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, - 'site_types', 'Site types' ); + parent::__construct( $tpl, $http, $ini, $persistenceList, 'site_types', 'Site types' ); } /** diff --git a/kernel/setup/steps/ezstep_system_check.php b/kernel/setup/steps/ezstep_system_check.php index 3f19da17313..df9a5922364 100644 --- a/kernel/setup/steps/ezstep_system_check.php +++ b/kernel/setup/steps/ezstep_system_check.php @@ -16,13 +16,17 @@ class eZStepSystemCheck extends eZStepInstaller { - /*! - Constructor - */ - function eZStepSystemCheck( $tpl, $http, $ini, &$persistenceList ) + /** + * Constructor + * + * @param eZTemplate $tpl + * @param eZHTTPTool $http + * @param eZINI $ini + * @param array $persistenceList + */ + public function __construct( $tpl, $http, $ini, &$persistenceList ) { - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, - 'system_check', 'System check' ); + parent::__construct( $tpl, $http, $ini, $persistenceList, 'system_check', 'System check' ); } function processPostData() diff --git a/kernel/setup/steps/ezstep_system_finetune.php b/kernel/setup/steps/ezstep_system_finetune.php index 459e971eeb5..3d78aacf6b6 100644 --- a/kernel/setup/steps/ezstep_system_finetune.php +++ b/kernel/setup/steps/ezstep_system_finetune.php @@ -16,13 +16,17 @@ class eZStepSystemFinetune extends eZStepInstaller { - /*! - Constructor - */ - function eZStepSystemFinetune( $tpl, $http, $ini, &$persistenceList ) + /** + * Constructor + * + * @param eZTemplate $tpl + * @param eZHTTPTool $http + * @param eZINI $ini + * @param array $persistenceList + */ + public function __construct( $tpl, $http, $ini, &$persistenceList ) { - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, - 'system_finetune', 'System finetune' ); + parent::__construct( $tpl, $http, $ini, $persistenceList, 'system_finetune', 'System finetune' ); } function processPostData() diff --git a/kernel/setup/steps/ezstep_welcome.php b/kernel/setup/steps/ezstep_welcome.php index 1ee6a66c48b..02238ed7223 100644 --- a/kernel/setup/steps/ezstep_welcome.php +++ b/kernel/setup/steps/ezstep_welcome.php @@ -16,13 +16,17 @@ class eZStepWelcome extends eZStepInstaller { - /*! - Constructor - */ - function eZStepWelcome( $tpl, $http, $ini, &$persistenceList ) + /** + * Constructor + * + * @param eZTemplate $tpl + * @param eZHTTPTool $http + * @param eZINI $ini + * @param array $persistenceList + */ + public function __construct( $tpl, $http, $ini, &$persistenceList ) { - $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, - 'welcome', 'Welcome' ); + parent::__construct( $tpl, $http, $ini, $persistenceList, 'welcome', 'Welcome' ); } function processPostData() diff --git a/kernel/shop/classes/exchangeratehandlers/ezecb/ezecbhandler.php b/kernel/shop/classes/exchangeratehandlers/ezecb/ezecbhandler.php index f1d9351b38c..9e42c95faf2 100644 --- a/kernel/shop/classes/exchangeratehandlers/ezecb/ezecbhandler.php +++ b/kernel/shop/classes/exchangeratehandlers/ezecb/ezecbhandler.php @@ -10,13 +10,13 @@ class eZECBHandler extends eZExchangeRatesUpdateHandler { - function eZECBHandler() + public function __construct() { $this->ServerName = false; $this->ServerPort = false; $this->RatesURI = false; - eZExchangeRatesUpdateHandler::eZExchangeRatesUpdateHandler(); + parent::__construct(); } function initialize( $params = array() ) diff --git a/kernel/shop/classes/exchangeratehandlers/ezexchangeratesupdatehandler.php b/kernel/shop/classes/exchangeratehandlers/ezexchangeratesupdatehandler.php index 528f91f8124..ac5bd09fbeb 100644 --- a/kernel/shop/classes/exchangeratehandlers/ezexchangeratesupdatehandler.php +++ b/kernel/shop/classes/exchangeratehandlers/ezexchangeratesupdatehandler.php @@ -17,7 +17,7 @@ class eZExchangeRatesUpdateHandler const UNKNOWN_BASE_CURRENCY = 4; const INVALID_BASE_CROSS_RATE = 5; - function eZExchangeRatesUpdateHandler() + public function __construct() { $this->RateList = false; $this->BaseCurrency = false; diff --git a/kernel/shop/classes/ezcurrencyconverter.php b/kernel/shop/classes/ezcurrencyconverter.php index 4b8af1e972a..323ba4bc6af 100644 --- a/kernel/shop/classes/ezcurrencyconverter.php +++ b/kernel/shop/classes/ezcurrencyconverter.php @@ -23,7 +23,7 @@ class eZCurrencyConverter const ROUNDING_TYPE_CEIL = 3; const ROUNDING_TYPE_FLOOR = 4; - function eZCurrencyConverter() + public function __construct() { $this->setMathHandler( null ); $this->setRoundingType( null ); diff --git a/kernel/shop/classes/ezcurrencydata.php b/kernel/shop/classes/ezcurrencydata.php index 0c7aef69db4..8e33a4947f6 100644 --- a/kernel/shop/classes/ezcurrencydata.php +++ b/kernel/shop/classes/ezcurrencydata.php @@ -22,9 +22,9 @@ class eZCurrencyData extends eZPersistentObject const STATUS_ACTIVE = '1'; const STATUS_INACTIVE = '2'; - function eZCurrencyData( $row ) + public function __construct( $row ) { - $this->eZPersistentObject( $row ); + parent::__construct( $row ); $this->RateValue = false; } diff --git a/kernel/shop/classes/ezmultipricedata.php b/kernel/shop/classes/ezmultipricedata.php index 1e082115e06..1e5bbd076ea 100644 --- a/kernel/shop/classes/ezmultipricedata.php +++ b/kernel/shop/classes/ezmultipricedata.php @@ -17,11 +17,6 @@ class eZMultiPriceData extends eZPersistentObject const ERROR_OK = 0; const ERROR_AUTOPRICES_UPDATE_FAILED = 1; - function eZMultiPriceData( $row ) - { - $this->eZPersistentObject( $row ); - } - static function definition() { return array( 'fields' => array( 'id' => array( 'name' => 'ID', diff --git a/kernel/shop/classes/ezpaymentcallbackchecker.php b/kernel/shop/classes/ezpaymentcallbackchecker.php index fdc63a3214a..39a6802f988 100644 --- a/kernel/shop/classes/ezpaymentcallbackchecker.php +++ b/kernel/shop/classes/ezpaymentcallbackchecker.php @@ -17,10 +17,12 @@ class eZPaymentCallbackChecker { - /*! - Constructor. - */ - function eZPaymentCallbackChecker( $iniFile ) + /** + * Constructor + * + * @param string $iniFile + */ + public function __construct( $iniFile ) { $this->logger = eZPaymentLogger::CreateForAdd( 'var/log/eZPaymentChecker.log' ); $this->ini = eZINI::instance( $iniFile ); diff --git a/kernel/shop/classes/ezpaymentgateway.php b/kernel/shop/classes/ezpaymentgateway.php index 56a0aa5bea5..7165e7d9bba 100644 --- a/kernel/shop/classes/ezpaymentgateway.php +++ b/kernel/shop/classes/ezpaymentgateway.php @@ -15,10 +15,7 @@ class eZPaymentGateway { - /*! - Constructor. - */ - function eZPaymentGateway() + public function __construct() { $this->logger = eZPaymentLogger::CreateForAdd( "var/log/eZPaymentGateway.log" ); } diff --git a/kernel/shop/classes/ezpaymentobject.php b/kernel/shop/classes/ezpaymentobject.php index d9859daa9a5..82e709a857d 100644 --- a/kernel/shop/classes/ezpaymentobject.php +++ b/kernel/shop/classes/ezpaymentobject.php @@ -23,14 +23,6 @@ class eZPaymentObject extends eZPersistentObject const STATUS_NOT_APPROVED = 0; const STATUS_APPROVED = 1; - /*! - Constructor. - */ - function eZPaymentObject( $row ) - { - $this->eZPersistentObject( $row ); - } - /*! \static Creates new object. diff --git a/kernel/shop/classes/ezredirectgateway.php b/kernel/shop/classes/ezredirectgateway.php index ceee2158823..0464b6bbd49 100644 --- a/kernel/shop/classes/ezredirectgateway.php +++ b/kernel/shop/classes/ezredirectgateway.php @@ -22,10 +22,7 @@ class eZRedirectGateway extends eZPaymentGateway const OBJECT_NOT_CREATED = 1; const OBJECT_CREATED = 2; - /*! - Constructor. - */ - function eZRedirectGateway() + public function __construct() { //__DEBUG__ $this->logger = eZPaymentLogger::CreateForAdd( "var/log/eZRedirectGateway.log" ); diff --git a/kernel/shop/classes/ezshopfunctions.php b/kernel/shop/classes/ezshopfunctions.php index 2f5d750f1f2..6a56b6926a8 100644 --- a/kernel/shop/classes/ezshopfunctions.php +++ b/kernel/shop/classes/ezshopfunctions.php @@ -10,10 +10,6 @@ class eZShopFunctions { - function eZShopFunctions() - { - } - /*! \static */ diff --git a/kernel/shop/classes/ezsimpleprice.php b/kernel/shop/classes/ezsimpleprice.php index 6eec57f5217..457f20ff1ea 100644 --- a/kernel/shop/classes/ezsimpleprice.php +++ b/kernel/shop/classes/ezsimpleprice.php @@ -35,7 +35,14 @@ class eZSimplePrice { - function eZSimplePrice( $classAttribute, $contentObjectAttribute, $storedPrice = null ) + /** + * Constructor + * + * @param eZContentClassAttribute $classAttribute + * @param eZContentObjectAttribute $contentObjectAttribute + * @param float $storedPrice + */ + public function __construct( $classAttribute, $contentObjectAttribute, $storedPrice = null ) { $this->setVATIncluded( false ); diff --git a/kernel/shop/ezshopfunctioncollection.php b/kernel/shop/ezshopfunctioncollection.php index abece995b2e..14d797c0f76 100644 --- a/kernel/shop/ezshopfunctioncollection.php +++ b/kernel/shop/ezshopfunctioncollection.php @@ -16,13 +16,6 @@ class eZShopFunctionCollection { - /*! - Constructor - */ - function eZShopFunctionCollection() - { - } - function fetchBasket( ) { $http = eZHTTPTool::instance(); diff --git a/kernel/shop/ezshopoperationcollection.php b/kernel/shop/ezshopoperationcollection.php index 287fd9e2198..4adeccbbca3 100644 --- a/kernel/shop/ezshopoperationcollection.php +++ b/kernel/shop/ezshopoperationcollection.php @@ -15,13 +15,6 @@ */ class eZShopOperationCollection { - /*! - Constructor - */ - function eZShopOperationCollection() - { - } - function fetchOrder( $orderID ) { return array( 'status' => eZModuleOperationInfo::STATUS_CONTINUE ); diff --git a/kernel/url/ezurlfunctioncollection.php b/kernel/url/ezurlfunctioncollection.php index b55edd56ca5..146ab7becfa 100644 --- a/kernel/url/ezurlfunctioncollection.php +++ b/kernel/url/ezurlfunctioncollection.php @@ -16,13 +16,6 @@ class eZURLFunctionCollection { - /*! - Constructor - */ - function eZURLFunctionCollection() - { - } - function fetchList( $isValid, $offset, $limit, $onlyPublished ) { $parameters = array( 'is_valid' => $isValid, diff --git a/kernel/user/ezuserfunctioncollection.php b/kernel/user/ezuserfunctioncollection.php index 925f2490dfc..b1e7e812e96 100644 --- a/kernel/user/ezuserfunctioncollection.php +++ b/kernel/user/ezuserfunctioncollection.php @@ -16,13 +16,6 @@ class eZUserFunctionCollection { - /*! - Constructor - */ - function eZUserFunctionCollection() - { - } - function fetchCurrentUser() { $user = eZUser::currentUser(); diff --git a/kernel/user/ezuseroperationcollection.php b/kernel/user/ezuseroperationcollection.php index 5a6b3ca67b9..c11df666657 100644 --- a/kernel/user/ezuseroperationcollection.php +++ b/kernel/user/ezuseroperationcollection.php @@ -16,13 +16,6 @@ class eZUserOperationCollection { - /*! - Constructor - */ - function eZUserOperationCollection() - { - } - /** * Changes user settings * diff --git a/kernel/workflow/ezworkflowfunctioncollection.php b/kernel/workflow/ezworkflowfunctioncollection.php index 3de7493b934..5cb58eb07bc 100644 --- a/kernel/workflow/ezworkflowfunctioncollection.php +++ b/kernel/workflow/ezworkflowfunctioncollection.php @@ -16,14 +16,6 @@ class eZWorkflowFunctionCollection { - /*! - Constructor - */ - function eZWorkflowFunctionCollection() - { - } - - function fetchWorkflowStatuses() { return array( 'result' => eZWorkflow::statusNameMap() ); diff --git a/lib/ezdb/classes/ezdbinterface.php b/lib/ezdb/classes/ezdbinterface.php index 54f0b648398..5f7d16c1ccd 100644 --- a/lib/ezdb/classes/ezdbinterface.php +++ b/lib/ezdb/classes/ezdbinterface.php @@ -47,7 +47,7 @@ class eZDBInterface * * @param array $parameters */ - function eZDBInterface( $parameters ) + public function __construct( $parameters ) { $server = $parameters['server']; $port = $parameters['port']; diff --git a/lib/ezdb/classes/ezmysqlidb.php b/lib/ezdb/classes/ezmysqlidb.php index d8818b544fe..49e3201449f 100644 --- a/lib/ezdb/classes/ezmysqlidb.php +++ b/lib/ezdb/classes/ezmysqlidb.php @@ -22,12 +22,14 @@ class eZMySQLiDB extends eZDBInterface const RELATION_FOREIGN_KEY = 5; const RELATION_FOREIGN_KEY_BIT = 32; - /*! - Create a new eZMySQLiDB object and connects to the database backend. - */ - function eZMySQLiDB( $parameters ) + /** + * Create a new eZMySQLiDB object and connects to the database backend. + * + * @param array $parameters + */ + public function __construct( $parameters ) { - $this->eZDBInterface( $parameters ); + parent::__construct( $parameters ); if ( !extension_loaded( 'mysqli' ) ) { diff --git a/lib/ezdb/classes/eznulldb.php b/lib/ezdb/classes/eznulldb.php index 84a2b27d1b2..56738a458c7 100644 --- a/lib/ezdb/classes/eznulldb.php +++ b/lib/ezdb/classes/eznulldb.php @@ -18,14 +18,6 @@ class eZNullDB extends eZDBInterface { - /*! - Does nothing. - */ - function eZNullDB( $parameters ) - { - $this->eZDBInterface( $parameters ); - } - /*! Does nothing. */ diff --git a/lib/ezdb/classes/ezpostgresqldb.php b/lib/ezdb/classes/ezpostgresqldb.php index b2078a8c4c1..bfab7550e23 100644 --- a/lib/ezdb/classes/ezpostgresqldb.php +++ b/lib/ezdb/classes/ezpostgresqldb.php @@ -19,12 +19,15 @@ */ class eZPostgreSQLDB extends eZDBInterface { - /*! - Creates a new eZPostgreSQLDB object and connects to the database. - */ - function eZPostgreSQLDB( $parameters ) + /** + * Creates a new eZPostgreSQLDB object and connects to the database. + * + * @param array $parameters + * @throws eZDBNoConnectionException + */ + public function __construct( $parameters ) { - $this->eZDBInterface( $parameters ); + parent::__construct( $parameters ); if ( !extension_loaded( 'pgsql' ) ) { diff --git a/lib/ezdbschema/classes/ezdbschemainterface.php b/lib/ezdbschema/classes/ezdbschemainterface.php index 77bc7d49600..abfee45366a 100644 --- a/lib/ezdbschema/classes/ezdbschemainterface.php +++ b/lib/ezdbschema/classes/ezdbschemainterface.php @@ -60,12 +60,12 @@ class eZDBSchemaInterface { - /*! - Constructor - - \sa eZDB + /** + * Constructor + * + * @param array $params */ - function eZDBSchemaInterface( $params ) + public function __construct( $params ) { $this->DBInstance = $params['instance']; $this->Schema = false; diff --git a/lib/ezdbschema/classes/ezlintschema.php b/lib/ezdbschema/classes/ezlintschema.php index e0f7e963725..050a1f960b2 100644 --- a/lib/ezdbschema/classes/ezlintschema.php +++ b/lib/ezdbschema/classes/ezlintschema.php @@ -39,15 +39,15 @@ class eZLintSchema extends eZDBSchemaInterface { - /*! - Initializes the lint checker with a foreign db schema. - - \param $db A dummy parameter, pass \c false. - \param $otherSchema The db schema that should be checked - */ - function eZLintSchema( $db, $otherSchema ) + /** + * Initializes the lint checker with a foreign db schema. + * + * @param array $db A dummy parameter, pass false. + * @param eZDBSchemaInterface $otherSchema The db schema that should be checked + */ + public function __construct( $db, $otherSchema ) { - $this->eZDBSchemaInterface( $db ); + parent::__construct( $db ); $this->OtherSchema = $otherSchema; $this->CorrectSchema = false; $this->IsLintChecked = false; diff --git a/lib/ezdbschema/classes/ezmysqlschema.php b/lib/ezdbschema/classes/ezmysqlschema.php index c1e2321442a..b0c412e5472 100644 --- a/lib/ezdbschema/classes/ezmysqlschema.php +++ b/lib/ezdbschema/classes/ezmysqlschema.php @@ -17,17 +17,6 @@ class eZMysqlSchema extends eZDBSchemaInterface { - - /*! - Constructor - - \param db instance - */ - function eZMysqlSchema( $params ) - { - $this->eZDBSchemaInterface( $params ); - } - function schema( $params = array() ) { $params = array_merge( array( 'meta_data' => false, diff --git a/lib/ezdbschema/classes/ezpgsqlschema.php b/lib/ezdbschema/classes/ezpgsqlschema.php index 7bfed7973b8..5f540170e5f 100644 --- a/lib/ezdbschema/classes/ezpgsqlschema.php +++ b/lib/ezdbschema/classes/ezpgsqlschema.php @@ -68,16 +68,6 @@ class eZPgsqlSchema extends eZDBSchemaInterface WHERE a.attrelid = \'<