1 <?php // vim: set binary noeol et sts=4 sw=4 :
4 require_once 'DB/DataObject.php';
6 class T_DBO_Prueba extends DB_DataObject
8 var $_database = 'taller';
9 var $__table = 'prueba';
12 var $caso_de_prueba_id;
20 function staticGet($k, $v = NULL)
22 return DB_DataObject::staticGet('T_DBO_Prueba', $k, $v);
25 // now define your table structure.
26 // key is column name, value is type
30 'id' => DB_DATAOBJECT_INT,
31 'intento_id' => DB_DATAOBJECT_INT,
32 'caso_de_prueba_id' => DB_DATAOBJECT_INT,
33 'inicio' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME,
34 'fin' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME,
35 'memoria_ok' => DB_DATAOBJECT_INT + DB_DATAOBJECT_BOOL,
36 'salida_ok' => DB_DATAOBJECT_INT + DB_DATAOBJECT_BOOL,
37 'observaciones' => DB_DATAOBJECT_STR + DB_DATAOBJECT_TXT,
41 // now define the keys.