@@ -912,7 +912,7 @@ public function MakeValue()
912912 return call_user_func ($ sComputeFunc );
913913 }
914914
915- abstract public function GetDefaultValue (DBObject $ oHostObject = null );
915+ abstract public function GetDefaultValue (? DBObject $ oHostObject = null );
916916
917917 //
918918 // To be overloaded in subclasses
@@ -1476,7 +1476,7 @@ public function GetEditClass()
14761476 return "" ;
14771477 }
14781478
1479- public function GetDefaultValue (DBObject $ oHostObject = null )
1479+ public function GetDefaultValue (? DBObject $ oHostObject = null )
14801480 {
14811481 return null ;
14821482 }
@@ -1622,7 +1622,7 @@ public function GetPrerequisiteAttributes($sClass = null)
16221622 * @throws \CoreException
16231623 * @throws \CoreWarning
16241624 */
1625- public function GetDefaultValue (DBObject $ oHostObject = null )
1625+ public function GetDefaultValue (? DBObject $ oHostObject = null )
16261626 {
16271627 if ($ oHostObject === null ) {
16281628 return null ;
@@ -2639,7 +2639,7 @@ public function GetSQLExpr()
26392639 return $ this ->Get ("sql " );
26402640 }
26412641
2642- public function GetDefaultValue (DBObject $ oHostObject = null )
2642+ public function GetDefaultValue (? DBObject $ oHostObject = null )
26432643 {
26442644 return $ this ->MakeRealValue ("" , $ oHostObject );
26452645 }
@@ -2728,7 +2728,7 @@ public static function ListExpectedParams()
27282728 return array_merge (parent ::ListExpectedParams (), ["default_value " , "is_null_allowed " ]);
27292729 }
27302730
2731- public function GetDefaultValue (DBObject $ oHostObject = null )
2731+ public function GetDefaultValue (? DBObject $ oHostObject = null )
27322732 {
27332733 return $ this ->MakeRealValue ($ this ->Get ("default_value " ), $ oHostObject );
27342734 }
@@ -2917,7 +2917,7 @@ protected function GetSQLCol($bFullSpec = false)
29172917 return "INT(11) " .($ bFullSpec ? " DEFAULT 0 " : "" );
29182918 }
29192919
2920- public function GetDefaultValue (DBObject $ oHostObject = null )
2920+ public function GetDefaultValue (? DBObject $ oHostObject = null )
29212921 {
29222922 return 0 ;
29232923 }
@@ -3649,7 +3649,7 @@ public function __construct($sCode, $aParams)
36493649 parent ::__construct ($ sCode , $ aParams );
36503650 }
36513651
3652- public function GetDefaultValue (DBObject $ oHostObject = null )
3652+ public function GetDefaultValue (? DBObject $ oHostObject = null )
36533653 {
36543654 $ sDefault = parent ::GetDefaultValue ($ oHostObject );
36553655 if (!$ this ->IsNullAllowed () && $ this ->IsNull ($ sDefault )) {
@@ -3843,7 +3843,7 @@ public function SetFixedValue($sValue)
38433843 $ this ->m_sValue = $ sValue ;
38443844 }
38453845
3846- public function GetDefaultValue (DBObject $ oHostObject = null )
3846+ public function GetDefaultValue (? DBObject $ oHostObject = null )
38473847 {
38483848 return $ this ->m_sValue ;
38493849 }
@@ -4730,7 +4730,7 @@ public function GetAsPlainText($value, $oHostObj = null)
47304730 }
47314731 }
47324732
4733- public function GetDefaultValue (DBObject $ oHostObject = null )
4733+ public function GetDefaultValue (? DBObject $ oHostObject = null )
47344734 {
47354735 return new ormCaseLog ();
47364736 }
@@ -6128,7 +6128,7 @@ public static function GetAsUnixSeconds($value)
61286128 return $ iUnixSeconds ;
61296129 }
61306130
6131- public function GetDefaultValue (DBObject $ oHostObject = null )
6131+ public function GetDefaultValue (? DBObject $ oHostObject = null )
61326132 {
61336133 $ sDefaultValue = $ this ->Get ('default_value ' );
61346134 if (utils::IsNotNullOrEmptyString ($ sDefaultValue )) {
@@ -6812,7 +6812,7 @@ public function GetDisplayStyle()
68126812 return $ this ->GetOptional ('display_style ' , 'select ' );
68136813 }
68146814
6815- public function GetDefaultValue (DBObject $ oHostObject = null )
6815+ public function GetDefaultValue (? DBObject $ oHostObject = null )
68166816 {
68176817 return 0 ;
68186818 }
@@ -7547,7 +7547,7 @@ public function GetSQLExpr()
75477547 return $ oExtAttDef ->GetSQLExpr ();
75487548 }
75497549
7550- public function GetDefaultValue (DBObject $ oHostObject = null )
7550+ public function GetDefaultValue (? DBObject $ oHostObject = null )
75517551 {
75527552 $ oExtAttDef = $ this ->GetExtAttDef ();
75537553
@@ -7910,12 +7910,12 @@ public function IsWritable()
79107910 return true ;
79117911 }
79127912
7913- public function GetDefaultValue (DBObject $ oHostObject = null )
7913+ public function GetDefaultValue (? DBObject $ oHostObject = null )
79147914 {
79157915 return new ormDocument ('' , '' , '' );
79167916 }
79177917
7918- public function IsNullAllowed (DBObject $ oHostObject = null )
7918+ public function IsNullAllowed (? DBObject $ oHostObject = null )
79197919 {
79207920 return $ this ->GetOptional ("is_null_allowed " , false );
79217921 }
@@ -8295,7 +8295,7 @@ public function MakeRealValue($proposedValue, $oHostObj)
82958295 return $ oDoc ;
82968296 }
82978297
8298- public function GetDefaultValue (DBObject $ oHostObject = null )
8298+ public function GetDefaultValue (? DBObject $ oHostObject = null )
82998299 {
83008300 return new ormDocument ('' , '' , '' );
83018301 }
@@ -8481,7 +8481,7 @@ public function IsWritable()
84818481 return true ;
84828482 }
84838483
8484- public function GetDefaultValue (DBObject $ oHostObject = null )
8484+ public function GetDefaultValue (? DBObject $ oHostObject = null )
84858485 {
84868486 return $ this ->NewStopWatch ();
84878487 }
@@ -9348,7 +9348,7 @@ public function IsWritable()
93489348 return false ;
93499349 }
93509350
9351- public function GetDefaultValue (DBObject $ oHostObject = null )
9351+ public function GetDefaultValue (? DBObject $ oHostObject = null )
93529352 {
93539353 return null ;
93549354 }
@@ -9566,7 +9566,7 @@ public function IsWritable()
95669566 return true ;
95679567 }
95689568
9569- public function GetDefaultValue (DBObject $ oHostObject = null )
9569+ public function GetDefaultValue (? DBObject $ oHostObject = null )
95709570 {
95719571 return "" ;
95729572 }
@@ -10146,7 +10146,7 @@ public function RequiresFullTextIndex()
1014610146 return true ;
1014710147 }
1014810148
10149- public function GetDefaultValue (DBObject $ oHostObject = null )
10149+ public function GetDefaultValue (? DBObject $ oHostObject = null )
1015010150 {
1015110151 return null ;
1015210152 }
@@ -11359,7 +11359,7 @@ public function GetNullValue()
1135911359 return new ormTagSet (MetaModel::GetAttributeOrigin ($ this ->GetHostClass (), $ this ->GetCode ()), $ this ->GetCode (), $ this ->GetMaxItems ());
1136011360 }
1136111361
11362- public function GetDefaultValue (DBObject $ oHostObject = null )
11362+ public function GetDefaultValue (? DBObject $ oHostObject = null )
1136311363 {
1136411364 $ oTagSet = new ormTagSet (MetaModel::GetAttributeOrigin ($ this ->GetHostClass (), $ this ->GetCode ()), $ this ->GetCode (), $ this ->GetMaxItems ());
1136511365 $ oTagSet ->SetValues ([]);
@@ -11867,7 +11867,7 @@ public function SetFixedValue($sValue)
1186711867 $ this ->m_sValue = $ sValue ;
1186811868 }
1186911869
11870- public function GetDefaultValue (DBObject $ oHostObject = null )
11870+ public function GetDefaultValue (? DBObject $ oHostObject = null )
1187111871 {
1187211872 return $ this ->m_sValue ;
1187311873 }
@@ -12030,7 +12030,7 @@ public function GetMaxSize()
1203012030 return 20 ;
1203112031 }
1203212032
12033- public function GetDefaultValue (DBObject $ oHostObject = null )
12033+ public function GetDefaultValue (? DBObject $ oHostObject = null )
1203412034 {
1203512035 $ sRet = 'disabled ' ;
1203612036 if ($ this ->Get ('enabled ' )) {
@@ -12466,7 +12466,7 @@ public static function LoadFromClassTables()
1246612466 return false ;
1246712467 } // See ReadValue...
1246812468
12469- public function GetDefaultValue (DBObject $ oHostObject = null )
12469+ public function GetDefaultValue (? DBObject $ oHostObject = null )
1247012470 {
1247112471 return new ormCustomFieldsValue ($ oHostObject , $ this ->GetCode ());
1247212472 }
@@ -13053,7 +13053,7 @@ public function GetSQLExpr()
1305313053 return null ;
1305413054 }
1305513055
13056- public function GetDefaultValue (DBObject $ oHostObject = null )
13056+ public function GetDefaultValue (? DBObject $ oHostObject = null )
1305713057 {
1305813058 return $ this ->MakeRealValue (false , $ oHostObject );
1305913059 }
0 commit comments