Changeset 887 for trunk/Common/Form/Types/IPv4Address.php
- Timestamp:
- Nov 20, 2020, 12:08:12 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Form/Types/IPv4Address.php
r874 r887 5 5 class TypeIPv4Address extends TypeBase 6 6 { 7 function OnView( $Item)7 function OnView(array $Item): ?string 8 8 { 9 9 $Output = $Item['Value']; … … 11 11 } 12 12 13 function OnEdit( $Item)13 function OnEdit(array $Item): string 14 14 { 15 15 $Output = '<input type="text" name="'.$Item['Name'].'" value="'.$Item['Value'].'"/>'; … … 17 17 } 18 18 19 function OnLoad( $Item)19 function OnLoad(array $Item): ?string 20 20 { 21 21 return $_POST[$Item['Name']]; 22 22 } 23 23 24 function Validate( $Item)24 function Validate(array $Item): bool 25 25 { 26 26 if ($Item['Null'] and ($Item['Value'] == '')) return true; … … 28 28 } 29 29 30 function GetValidationFormat() 30 function GetValidationFormat(): string 31 31 { 32 32 return 'x.x.x.x kde x je hodnota 0..255';
Note:
See TracChangeset
for help on using the changeset viewer.