diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index 27814b14f..06a093466 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -1251,6 +1251,22 @@ abstract class AttributeDefinition class AttributeDashboard extends AttributeDefinition { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { return array_merge(parent::ListExpectedParams(), @@ -1327,6 +1343,22 @@ class AttributeDashboard extends AttributeDefinition */ class AttributeLinkedSet extends AttributeDefinition { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { return array_merge(parent::ListExpectedParams(), @@ -2159,6 +2191,22 @@ class AttributeLinkedSet extends AttributeDefinition */ class AttributeLinkedSetIndirect extends AttributeLinkedSet { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { return array_merge(parent::ListExpectedParams(), array("ext_key_to_remote")); @@ -2417,6 +2465,22 @@ class AttributeInteger extends AttributeDBField { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_NUMERIC; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { return parent::ListExpectedParams(); @@ -2533,6 +2597,22 @@ class AttributeObjectKey extends AttributeDBFieldVoid { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_EXTERNAL_KEY; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { return array_merge(parent::ListExpectedParams(), array('class_attcode', 'is_null_allowed')); @@ -2613,6 +2693,22 @@ class AttributePercentage extends AttributeInteger { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_NUMERIC; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public function GetAsHTML($sValue, $oHostObject = null, $bLocalize = true) { $iWidth = 5; // Total width of the percentage bar graph, in em... @@ -2661,6 +2757,22 @@ class AttributeDecimal extends AttributeDBField { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_NUMERIC; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { return array_merge(parent::ListExpectedParams(), array('digits', 'decimals' /* including precision */)); @@ -2784,6 +2896,22 @@ class AttributeBoolean extends AttributeInteger { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_RAW; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { return parent::ListExpectedParams(); @@ -3025,6 +3153,22 @@ class AttributeString extends AttributeDBField { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_STRING; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { return parent::ListExpectedParams(); @@ -3255,6 +3399,22 @@ class AttributeClassState extends AttributeString { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_STRING; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { return array_merge(parent::ListExpectedParams(), array('class_field')); @@ -3582,6 +3742,22 @@ class AttributePassword extends AttributeString { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_RAW; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { return parent::ListExpectedParams(); @@ -3766,6 +3942,22 @@ define('WIKI_OBJECT_REGEXP', '/\[\[(.+):(.+)(\|(.+))?\]\]/U'); */ class AttributeText extends AttributeString { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public function GetEditClass() { return ($this->GetFormat() == 'text') ? 'Text' : "HTML"; @@ -4155,6 +4347,22 @@ class AttributeText extends AttributeString */ class AttributeLongText extends AttributeText { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + protected function GetSQLCol($bFullSpec = false) { return "LONGTEXT".CMDBSource::GetSqlStringColumnDefinition(); @@ -4177,6 +4385,22 @@ class AttributeCaseLog extends AttributeLongText { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_STRING; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public function GetNullValue() { return ''; @@ -4573,6 +4797,22 @@ class AttributeCaseLog extends AttributeLongText */ class AttributeHTML extends AttributeLongText { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public function GetSQLColumns($bFullSpec = false) { $aColumns = array(); @@ -4608,6 +4848,22 @@ class AttributeHTML extends AttributeLongText */ class AttributeEmailAddress extends AttributeString { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public function GetValidationPattern() { return $this->GetOptional('validation_pattern', '^'.utils::GetConfig()->Get('email_validation_pattern').'$'); @@ -4638,6 +4894,22 @@ class AttributeEmailAddress extends AttributeString */ class AttributeIPAddress extends AttributeString { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public function GetValidationPattern() { $sNum = '(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])'; @@ -4659,6 +4931,22 @@ class AttributeIPAddress extends AttributeString */ class AttributePhoneNumber extends AttributeString { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public function GetValidationPattern() { return $this->GetOptional('validation_pattern', @@ -4694,6 +4982,22 @@ class AttributeOQL extends AttributeText { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_STRING; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public function GetEditClass() { return "OQLExpression"; @@ -4708,6 +5012,22 @@ class AttributeOQL extends AttributeText class AttributeTemplateString extends AttributeString { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_STRING; + + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } } /** @@ -4718,6 +5038,22 @@ class AttributeTemplateString extends AttributeString class AttributeTemplateText extends AttributeText { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_STRING; + + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } } /** @@ -4729,6 +5065,22 @@ class AttributeTemplateHTML extends AttributeText { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_STRING; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public function GetSQLColumns($bFullSpec = false) { $aColumns = array(); @@ -4767,6 +5119,22 @@ class AttributeEnum extends AttributeString { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_ENUM; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { return parent::ListExpectedParams(); @@ -5104,6 +5472,22 @@ class AttributeEnum extends AttributeString */ class AttributeMetaEnum extends AttributeEnum { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { return array('allowed_values', 'sql', 'default_value', 'mapping'); @@ -5246,6 +5630,22 @@ class AttributeDateTime extends AttributeDBField public static $oFormat = null; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + /** * * @return DateTimeFormat @@ -5697,6 +6097,22 @@ class AttributeDateTime extends AttributeDBField */ class AttributeDuration extends AttributeInteger { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public function GetEditClass() { return "Duration"; @@ -5825,7 +6241,23 @@ class AttributeDate extends AttributeDateTime { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_DATE; - static $oDateFormat = null; + public static $oDateFormat = null; + + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } public static function GetFormat() { @@ -5911,6 +6343,22 @@ class AttributeDate extends AttributeDateTime */ class AttributeDeadline extends AttributeDateTime { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public function GetAsHTML($value, $oHostObject = null, $bLocalize = true) { $sResult = self::FormatDeadline($value); @@ -5991,6 +6439,21 @@ class AttributeExternalKey extends AttributeDBFieldVoid { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_EXTERNAL_KEY; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } /** * Return the search widget type corresponding to this attribute @@ -6291,6 +6754,22 @@ class AttributeHierarchicalKey extends AttributeExternalKey protected $m_sTargetClass; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { $aParams = parent::ListExpectedParams(); @@ -6467,6 +6946,22 @@ class AttributeHierarchicalKey extends AttributeExternalKey */ class AttributeExternalField extends AttributeDefinition { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + /** * Return the search widget type corresponding to this attribute * @@ -6498,7 +6993,6 @@ class AttributeExternalField extends AttributeDefinition return self::SEARCH_WIDGET_TYPE_RAW; } - public static function ListExpectedParams() { return array_merge(parent::ListExpectedParams(), array("extkey_attcode", "target_attcode")); @@ -6951,6 +7445,22 @@ class AttributeExternalField extends AttributeDefinition */ class AttributeURL extends AttributeString { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { //return parent::ListExpectedParams(); @@ -7032,6 +7542,22 @@ class AttributeBlob extends AttributeDefinition { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_RAW; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { return array_merge(parent::ListExpectedParams(), array("depends_on")); @@ -7360,6 +7886,22 @@ class AttributeBlob extends AttributeDefinition */ class AttributeImage extends AttributeBlob { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public function GetEditClass() { return "Image"; @@ -7510,6 +8052,22 @@ class AttributeStopWatch extends AttributeDefinition { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_RAW; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { // The list of thresholds must be an array of iPercent => array of 'option' => value @@ -8345,7 +8903,23 @@ class AttributeStopWatch extends AttributeDefinition */ class AttributeSubItem extends AttributeDefinition { - /** + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + + /** * Return the search widget type corresponding to this attribute * the computation is made by AttributeStopWatch::GetSubItemSearchType * @@ -8592,6 +9166,22 @@ class AttributeOneWayPassword extends AttributeDefinition { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_RAW; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { return array_merge(parent::ListExpectedParams(), array("depends_on")); @@ -8791,6 +9381,22 @@ class AttributeTable extends AttributeDBField { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_RAW; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public function GetEditClass() { return "Table"; @@ -8929,6 +9535,22 @@ class AttributeTable extends AttributeDBField // The PHP value is a hash array, it is stored as a TEXT column class AttributePropertySet extends AttributeTable { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public function GetEditClass() { return "PropertySet"; @@ -10562,7 +11184,6 @@ class AttributeFriendlyName extends AttributeDefinition $this->m_sValue = $this->Get("default_value"); } - public function GetEditClass() { return ""; @@ -10754,6 +11375,22 @@ class AttributeRedundancySettings extends AttributeDBField { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_RAW; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { return array( @@ -11227,6 +11864,22 @@ class AttributeCustomFields extends AttributeDefinition { const SEARCH_WIDGET_TYPE = self::SEARCH_WIDGET_TYPE_RAW; + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public static function ListExpectedParams() { return array_merge(parent::ListExpectedParams(), array("handler_class")); @@ -11673,6 +12326,22 @@ class AttributeArchiveFlag extends AttributeBoolean class AttributeArchiveDate extends AttributeDate { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public function GetLabel($sDefault = null) { $sDefault = Dict::S('Core:AttributeArchiveDate/Label', $sDefault); @@ -11804,6 +12473,22 @@ class AttributeObsolescenceFlag extends AttributeBoolean class AttributeObsolescenceDate extends AttributeDate { + /** + * Useless constructor, but if not present PHP 7.4.0/7.4.1 is crashing :( (N°2329) + * + * @see https://www.php.net/manual/fr/language.oop5.decon.php states that child constructor can be ommited + * + * @param string $sCode + * @param array $aParams + * + * @throws \Exception + * @noinspection SenselessProxyMethodInspection + */ + public function __construct($sCode, $aParams) + { + parent::__construct($sCode, $aParams); + } + public function GetLabel($sDefault = null) { $sDefault = Dict::S('Core:AttributeObsolescenceDate/Label', $sDefault);