Ignore:
Timestamp:
Nov 20, 2020, 12:08:12 AM (3 years ago)
Author:
chronos
Message:
  • Added: Static types added to almost all classes, methods and function. Supported by PHP 7.4.
  • Fixed: Various found code issues.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Form/Types/Password.php

    r874 r887  
    77class TypePassword extends TypeBase
    88{
    9   function OnView($Item)
     9  function OnView(array $Item): ?string
    1010  {
    1111    $Output = '';
     
    1515  }
    1616
    17   function OnEdit($Item)
     17  function OnEdit(array $Item): string
    1818  {
    1919    $Output = '<input type="password" name="'.$Item['Name'].'" value=""/>';
     
    2121  }
    2222
    23   function OnLoad($Item)
     23  function OnLoad(array $Item): ?string
    2424  {
    2525    global $Database;
     
    4242  }
    4343
    44   function OnSaveDb($Item)
     44  function OnSaveDb(array $Item): string
    4545  {
    4646    if ($Item['Value'] == '') return '';
     
    5151  }
    5252
    53   function OnLoadDb($Item)
     53  function OnLoadDb(array $Item): ?string
    5454  {
    5555    return '';
Note: See TracChangeset for help on using the changeset viewer.