Changeset 922 for trunk/Common/Form/Types
- Timestamp:
- Feb 28, 2022, 8:53:22 AM (3 years ago)
- Location:
- trunk/Common/Form/Types
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Form/Types/Base.php
r887 r922 28 28 { 29 29 return ''; 30 } 31 32 function OnCanLoad(array $Item): bool 33 { 34 return array_key_exists($Item['Name'], $_POST); 30 35 } 31 36 32 37 function OnLoadDb(array $Item): ?string 33 38 { -
trunk/Common/Form/Types/Boolean.php
r887 r922 28 28 else return 0; 29 29 } 30 31 function OnCanLoad(array $Item): bool 32 { 33 return true; 34 } 30 35 } -
trunk/Common/Form/Types/Date.php
r887 r922 82 82 } 83 83 84 function OnCanLoad(array $Item): bool 85 { 86 return array_key_exists($Item['Name'].'-null', $_POST) or (array_key_exists($Item['Name'].'-day', $_POST) and 87 array_key_exists($Item['Name'].'-month', $_POST) and array_key_exists($Item['Name'].'-year', $_POST)); 88 } 89 84 90 function OnLoadDb(array $Item): ?string 85 91 { -
trunk/Common/Form/Types/DateTime.php
r887 r922 108 108 } 109 109 110 function OnCanLoad(array $Item): bool 111 { 112 return array_key_exists($Item['Name'].'-null', $_POST) or (array_key_exists($Item['Name'].'-day', $_POST) and 113 array_key_exists($Item['Name'].'-month', $_POST) and array_key_exists($Item['Name'].'-year', $_POST) and 114 array_key_exists($Item['Name'].'-hour', $_POST) and array_key_exists($Item['Name'].'-minute', $_POST) and 115 array_key_exists($Item['Name'].'-second', $_POST) 116 ); 117 } 118 110 119 function OnLoadDb(array $Item): ?string 111 120 { -
trunk/Common/Form/Types/GPS.php
r908 r922 47 47 } 48 48 49 function OnCanLoad(array $Item): bool 50 { 51 return array_key_exists($Item['Name'].'-lat-deg', $_POST) and array_key_exists($Item['Name'].'-lat-sec', $_POST) and 52 array_key_exists($Item['Name'].'-lat-min', $_POST) and array_key_exists($Item['Name'].'-lon-deg', $_POST) and 53 array_key_exists($Item['Name'].'-lon-min', $_POST) and array_key_exists($Item['Name'].'-lon-sec', $_POST); 54 } 55 56 49 57 function Explode(float $Float): array 50 58 { -
trunk/Common/Form/Types/Time.php
r887 r922 80 80 } 81 81 82 function OnCanLoad(array $Item): bool 83 { 84 return array_key_exists($Item['Name'].'-null', $_POST) or (array_key_exists($Item['Name'].'-hour', $_POST) and 85 array_key_exists($Item['Name'].'-minute', $_POST) and array_key_exists($Item['Name'].'-second', $_POST) 86 ); 87 } 88 82 89 function OnLoadDb(array $Item): ?string 83 90 {
Note:
See TracChangeset
for help on using the changeset viewer.