1 <?php // vim: set binary noeol et sts=4 sw=4 :
4 require_once 'DB/DataObject.php';
6 class T_DBO_Entrega extends DB_DataObject
8 var $_database = 'taller';
9 var $__table = 'entrega';
19 function staticGet($k, $v = NULL)
21 return DB_DataObject::staticGet('T_DBO_Entrega', $k, $v);
24 // now define your table structure.
25 // key is column name, value is type
29 'id' => DB_DATAOBJECT_INT,
30 'curso_id' => DB_DATAOBJECT_INT,
31 'nro_ejercicio' => DB_DATAOBJECT_INT,
32 'entrega' => DB_DATAOBJECT_INT,
33 'ejercicio_id' => DB_DATAOBJECT_INT,
34 'desde' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME,
35 'hasta' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME,
39 // now define the keys.
45 function getFrom($curso_id, $ejercicio, $entrega)
47 $this->curso_id = $curso_id;
48 $this->nro_ejercicio = $ejercicio;
49 $this->entrega = $entrega;
50 return $this->find(true);