Changeset 29 for types


Ignore:
Timestamp:
Dec 9, 2008, 1:24:32 PM (16 years ago)
Author:
george
Message:
  • Upraveno: Hledání položek v seznamu dle zadaného filtru.
Location:
types
Files:
1 added
15 edited

Legend:

Unmodified
Added
Removed
  • types/Boolean.php

    r22 r29  
    11<?php
    22
    3 class TypeBoolean
     3class TypeBoolean extends TypeBase
    44{
     5  var $DatabaseCompareOperators = array('Rovno' => '=', 'Nerovno' => '!=');
     6
    57  function OnView($Item)
    68  {
  • types/Date.php

    r22 r29  
    11<?php
    22
    3 class TypeDate
     3class TypeDate extends TypeBase
    44{
     5  var $DatabaseCompareOperators = array('Rovno' => '=', 'Nerovno' => '!=', 'Menší' => '<', 'Větší' => '>');
     6
    57  function OnView($Item)
    68  {
     
    5052    return($_POST[$Item['Name'].'-year'].'-'.$_POST[$Item['Name'].'-month'].'-'.$_POST[$Item['Name'].'-day']);
    5153  }
     54
     55  function DatabaseEscape($Value)
     56  {
     57    return('"'.addslashes($Value).'"');
     58  }
    5259}
    5360
  • types/DateTime.php

    r22 r29  
    11<?php
    22
    3 class TypeDateTime
     3class TypeDateTime extends TypeBase
    44{
     5  var $DatabaseCompareOperators = array('Rovno' => '=', 'Nerovno' => '!=', 'Menší' => '<', 'Větší' => '>');
     6
    57  function OnView($Item)
    68  {
     
    7981      $_POST[$Item['Name'].'-hour'].':'.$_POST[$Item['Name'].'-minute'].':'.$_POST[$Item['Name'].'-second']);
    8082  }
     83
     84  function DatabaseEscape($Value)
     85  {
     86    return('"'.addslashes($Value).'"');
     87  }
    8188}
    8289
  • types/Enumeration.php

    r22 r29  
    11<?php
    22
    3 class TypeEnumeration
     3class TypeEnumeration extends TypeBase
    44{
    55  function OnView($Item)
  • types/Float.php

    r22 r29  
    11<?php
    22
    3 class TypeFloat
     3class TypeFloat extends TypeBase
    44{
     5  var $DatabaseCompareOperators = array('Rovno' => '=', 'Nerovno' => '!=', 'Menší' => '<', 'Větší' => '>');
     6
    57  function OnView($Item)
    68  {
  • types/GPS.php

    r22 r29  
    11<?php
    22
    3 class TypeGPS
     3class TypeGPS extends TypeBase
    44{
    55  function OnView($Item)
  • types/Hidden.php

    r22 r29  
    11<?php
    22
    3 class TypeHidden
     3class TypeHidden extends TypeBase
    44{
    55  function OnView($Item)
  • types/Hyperlink.php

    r22 r29  
    11<?php
    22
    3 class TypeHyperlink
     3class TypeHyperlink extends TypeBase
    44{
    55  function OnView($Item)
  • types/IPv4Address.php

    r22 r29  
    11<?php
    22
    3 class TypeIPv4Address
     3class TypeIPv4Address extends TypeBase
    44{
    55  function OnView($Item)
  • types/Integer.php

    r22 r29  
    11<?php
    22
    3 class TypeInteger
     3class TypeInteger extends TypeBase
    44{
     5  var $DatabaseCompareOperators = array('Rovno' => '=', 'Nerovno' => '!=', 'Menší' => '<', 'Větší' => '>');
     6
    57  function OnView($Item)
    68  {
  • types/Password.php

    r22 r29  
    33// SHA1 hash used
    44
    5 class TypePassword
     5class TypePassword extends TypeBase
    66{
    77  function OnView($Item)
  • types/PointerOneToMany.php

    r22 r29  
    11<?php
    22
    3 class TypePointerOneToMany
     3class TypePointerOneToMany extends TypeBase
    44{
    55  function OnView($Item)
  • types/PointerOneToOne.php

    r28 r29  
    11<?php
    22
    3 class TypePointerOneToOne
     3class TypePointerOneToOne extends TypeBase
    44{
    55  function GetTablePointerName($Type, $Item)
  • types/String.php

    r22 r29  
    11<?php
    22
    3 class TypeString
     3class TypeString extends TypeBase
    44{
     5  var $DatabaseCompareOperators = array('Jako' => 'LIKE', 'Rovno' => '=', 'Nerovno' => '!=');
     6
    57  function OnView($Item)
    68  {
     
    1921    return($_POST[$Item['Name']]);
    2022  }
     23
     24  function DatabaseEscape($Value)
     25  {
     26    return('"'.addslashes($Value).'"');
     27  }
    2128}
    2229
  • types/include.php

    r26 r29  
    22
    33// Include type definitions
     4include('types/Base.php');
    45include('types/Enumeration.php');
    56include('types/Boolean.php');
Note: See TracChangeset for help on using the changeset viewer.