- Timestamp:
- Dec 9, 2008, 1:24:32 PM (16 years ago)
- Location:
- types
- Files:
-
- 1 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
types/Boolean.php
r22 r29 1 1 <?php 2 2 3 class TypeBoolean 3 class TypeBoolean extends TypeBase 4 4 { 5 var $DatabaseCompareOperators = array('Rovno' => '=', 'Nerovno' => '!='); 6 5 7 function OnView($Item) 6 8 { -
types/Date.php
r22 r29 1 1 <?php 2 2 3 class TypeDate 3 class TypeDate extends TypeBase 4 4 { 5 var $DatabaseCompareOperators = array('Rovno' => '=', 'Nerovno' => '!=', 'Menší' => '<', 'Větší' => '>'); 6 5 7 function OnView($Item) 6 8 { … … 50 52 return($_POST[$Item['Name'].'-year'].'-'.$_POST[$Item['Name'].'-month'].'-'.$_POST[$Item['Name'].'-day']); 51 53 } 54 55 function DatabaseEscape($Value) 56 { 57 return('"'.addslashes($Value).'"'); 58 } 52 59 } 53 60 -
types/DateTime.php
r22 r29 1 1 <?php 2 2 3 class TypeDateTime 3 class TypeDateTime extends TypeBase 4 4 { 5 var $DatabaseCompareOperators = array('Rovno' => '=', 'Nerovno' => '!=', 'Menší' => '<', 'Větší' => '>'); 6 5 7 function OnView($Item) 6 8 { … … 79 81 $_POST[$Item['Name'].'-hour'].':'.$_POST[$Item['Name'].'-minute'].':'.$_POST[$Item['Name'].'-second']); 80 82 } 83 84 function DatabaseEscape($Value) 85 { 86 return('"'.addslashes($Value).'"'); 87 } 81 88 } 82 89 -
types/Enumeration.php
r22 r29 1 1 <?php 2 2 3 class TypeEnumeration 3 class TypeEnumeration extends TypeBase 4 4 { 5 5 function OnView($Item) -
types/Float.php
r22 r29 1 1 <?php 2 2 3 class TypeFloat 3 class TypeFloat extends TypeBase 4 4 { 5 var $DatabaseCompareOperators = array('Rovno' => '=', 'Nerovno' => '!=', 'Menší' => '<', 'Větší' => '>'); 6 5 7 function OnView($Item) 6 8 { -
types/GPS.php
r22 r29 1 1 <?php 2 2 3 class TypeGPS 3 class TypeGPS extends TypeBase 4 4 { 5 5 function OnView($Item) -
types/Hidden.php
r22 r29 1 1 <?php 2 2 3 class TypeHidden 3 class TypeHidden extends TypeBase 4 4 { 5 5 function OnView($Item) -
types/Hyperlink.php
r22 r29 1 1 <?php 2 2 3 class TypeHyperlink 3 class TypeHyperlink extends TypeBase 4 4 { 5 5 function OnView($Item) -
types/IPv4Address.php
r22 r29 1 1 <?php 2 2 3 class TypeIPv4Address 3 class TypeIPv4Address extends TypeBase 4 4 { 5 5 function OnView($Item) -
types/Integer.php
r22 r29 1 1 <?php 2 2 3 class TypeInteger 3 class TypeInteger extends TypeBase 4 4 { 5 var $DatabaseCompareOperators = array('Rovno' => '=', 'Nerovno' => '!=', 'Menší' => '<', 'Větší' => '>'); 6 5 7 function OnView($Item) 6 8 { -
types/Password.php
r22 r29 3 3 // SHA1 hash used 4 4 5 class TypePassword 5 class TypePassword extends TypeBase 6 6 { 7 7 function OnView($Item) -
types/PointerOneToMany.php
r22 r29 1 1 <?php 2 2 3 class TypePointerOneToMany 3 class TypePointerOneToMany extends TypeBase 4 4 { 5 5 function OnView($Item) -
types/PointerOneToOne.php
r28 r29 1 1 <?php 2 2 3 class TypePointerOneToOne 3 class TypePointerOneToOne extends TypeBase 4 4 { 5 5 function GetTablePointerName($Type, $Item) -
types/String.php
r22 r29 1 1 <?php 2 2 3 class TypeString 3 class TypeString extends TypeBase 4 4 { 5 var $DatabaseCompareOperators = array('Jako' => 'LIKE', 'Rovno' => '=', 'Nerovno' => '!='); 6 5 7 function OnView($Item) 6 8 { … … 19 21 return($_POST[$Item['Name']]); 20 22 } 23 24 function DatabaseEscape($Value) 25 { 26 return('"'.addslashes($Value).'"'); 27 } 21 28 } 22 29 -
types/include.php
r26 r29 2 2 3 3 // Include type definitions 4 include('types/Base.php'); 4 5 include('types/Enumeration.php'); 5 6 include('types/Boolean.php');
Note:
See TracChangeset
for help on using the changeset viewer.