1 <?php // vim: set binary noeol et sts=4 sw=4 :
4 require_once 'DB/DataObject.php';
6 class T_DBO_Ejercicio extends DB_DataObject
8 var $_database = 'taller';
9 var $__table = 'ejercicio';
16 function staticGet($k, $v = NULL)
18 return DB_DataObject::staticGet('T_DBO_Ejercicio', $k, $v);
21 // now define your table structure.
22 // key is column name, value is type
26 'id' => DB_DATAOBJECT_INT,
27 'nombre' => DB_DATAOBJECT_STR,
28 'numero' => DB_DATAOBJECT_INT,
29 'docente_id' => DB_DATAOBJECT_INT,
33 // now define the keys.
39 function getFrom($nombre)
41 $this->nombre = $nombre;
42 return $this->find(true);