Ignore:
Timestamp:
Apr 14, 2020, 11:13:32 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Improved code formatting.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/Form/Types/Base.php

    r1 r7  
    1717  function OnView($Item)
    1818  {
    19     return('');
     19    return '';
    2020  }
    2121
    2222  function OnEdit($Item)
    2323  {
    24     return('');
     24    return '';
    2525  }
    2626
    2727  function OnLoad($Item)
    2828  {
    29     return('');
     29    return '';
    3030  }
    3131
    3232  function OnLoadDb($Item)
    3333  {
    34     return($Item['Value']);
     34    return $Item['Value'];
    3535  }
    3636
    3737  function OnSaveDb($Item)
    3838  {
    39     return($Item['Value']);
     39    return $Item['Value'];
    4040  }
    4141
    4242  function DatabaseEscape($Value)
    4343  {
    44     return(addslashes($Value));
     44    return addslashes($Value);
    4545  }
    4646
    4747  function OnFilterName($Item)
    4848  {
    49     if(array_key_exists('SQL', $Item) and ($Item['SQL'] != ''))
     49    if (array_key_exists('SQL', $Item) and ($Item['SQL'] != ''))
    5050      $SQL = '('.$Item['SQL'].') AS ';
    5151      else $SQL = '';
    52     return($SQL.'`'.$Item['Name'].'`');
     52    return $SQL.'`'.$Item['Name'].'`';
    5353  }
    5454
    5555  function OnFilterNameQuery($Item)
    5656  {
    57     if(array_key_exists('SQL', $Item) and ($Item['SQL'] != ''))
     57    if (array_key_exists('SQL', $Item) and ($Item['SQL'] != ''))
    5858      $Output = '('.$Item['SQL'].') AS `'.$Item['Name'].'`, ('.$Item['SQL'].') AS `'.$Item['Name'].'_Filter`';
    5959      else $Output = '`'.$Item['Name'].'`, `'.$Item['Name'].'` AS `'.$Item['Name'].'_Filter`';
    60     return($Output);
     60    return $Output;
    6161  }
    6262
    6363  function Validate($Item)
    6464  {
    65     return(true);
     65    return true;
    6666  }
    6767
    6868  function GetValidationFormat()
    6969  {
    70     return('');
     70    return '';
    7171  }
    7272}
Note: See TracChangeset for help on using the changeset viewer.