DB_DATAOBJECT_INT, 'curso_id' => DB_DATAOBJECT_INT, 'nro_ejercicio' => DB_DATAOBJECT_INT, 'entrega' => DB_DATAOBJECT_INT, 'ejercicio_id' => DB_DATAOBJECT_INT, 'desde' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME, 'hasta' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME, ); } // now define the keys. function keys() { return array('id'); } function getFrom($curso_id, $ejercicio, $entrega) { $this->curso_id = $curso_id; $this->nro_ejercicio = $ejercicio; $this->entrega = $entrega; return $this->find(true); } } ?>