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/OneToMany.php

    r874 r887  
    55class TypeOneToMany extends TypeBase
    66{
    7   var $EditActions;
     7  public array $EditActions;
    88
    9   function OnView($Item)
     9  function OnView(array $Item): ?string
    1010  {
    1111    $Type = $this->FormManager->Type->TypeDefinitionList[$Item['Type']];
     
    1818  }
    1919
    20   function OnEdit($Item)
     20  function OnEdit(array $Item): string
    2121  {
    2222    $Output = '<select name="'.$Item['Name'].'" id="'.$Item['Name'].'">';
     
    5454  }
    5555
    56   function OnLoad($Item)
     56  function OnLoad(array $Item): ?string
    5757  {
    5858    if ($_POST[$Item['Name']] == '') return NULL;
     
    6060  }
    6161
    62   function OnLoadDb($Item)
     62  function OnLoadDb(array $Item): ?string
    6363  {
    6464    if ($Item['Value'] == '') return NULL;
     
    6666  }
    6767
    68   function OnFilterName($Item)
     68  function OnFilterName(array $Item): string
    6969  {
    7070    return '`'.$Item['Name'].'_Filter`';
    7171  }
    7272
    73   function OnFilterNameQuery($Item)
     73  function OnFilterNameQuery(array $Item): string
    7474  {
    7575    $Type = $this->FormManager->Type->TypeDefinitionList[$Item['Type']];
Note: See TracChangeset for help on using the changeset viewer.