source: trunk/www/Base/Types/Integer.php

Last change on this file was 93, checked in by chronos, 11 years ago
  • Fixed: System variable as parameter to constructors of descendents of Module class.
  • Removed: End PHP mark "?>" from all files.
File size: 457 bytes
Line 
1<?php
2
3class TypeInteger extends TypeBase
4{
5 var $DatabaseCompareOperators = array('Rovno' => '=', 'Nerovno' => '!=', 'Menší' => '<', 'Větší' => '>');
6
7 function OnView($Item)
8 {
9 $Output = $Item['Value'];
10 return($Output);
11 }
12
13 function OnEdit($Item)
14 {
15 $Output = '<input type="text" name="'.$Item['Name'].'" value="'.$Item['Value'].'">';
16 return($Output);
17 }
18
19 function OnLoad($Item)
20 {
21 return($_POST[$Item['Name']]);
22 }
23}
Note: See TracBrowser for help on using the repository browser.