示例#1
0
文件: tareas.php 项目: jesusgm/tareas
 function start()
 {
     if ($this->estado == 0) {
         //solo se puede empezar si esta parada
         //se crea un tiempo
         $tiempo = new Tiempo();
         $tiempo->crear($this->id);
         //se cambia el estado de la tarea
         $this->setEstado(1);
         $this->dbsave();
         return true;
     }
 }