class ModelPeriodo: def __init__(self): self.model=Conection('periodo_escolar') def get_periodo_all(self, colum_order): return self.model.get_all(colum_order) def get_periodo_one_condition(self, condition_filter): return self.model.get_by_one_condition(condition_filter) def get_periodo_by_multiple_condition(self, condition_filter): return self.model.get_by_multiple_condition(condition_filter) #revisar mobile def insert_mobile(self, data): return self.model.insert(data) def insert_periodo(self,data): return self.model.insert(data) def update_periodo(self, values_to_update, conditions_filter): return self.model.update(values_to_update, conditions_filter) def delete_periodo(self,conditions_filter): return self.model.delete(conditions_filter)
class ModelProfesor: def __init__(self): self.model = Conection('profesores') def get_profesor_all(self, colum_order): return self.model.get_all(colum_order) def get_profesor_one_condition(self, condition_filter): return self.model.get_by_one_condition(condition_filter) def get_profesor_by_multiple_condition(self, condition_filter): return self.model.get_by_multiple_condition(condition_filter) def insert_mobile(self, data): return self.model.insert(data) def insert_profesor(self, data): return self.model.insert(data) def update_profesor(self, values_to_update, conditions_filter): return self.model.update(values_to_update, conditions_filter) def delete_profesor(self, conditions_filter): return self.model.delete(conditions_filter)
class ModelCurso: def __init__(self): self.model = Conection('cursos') def get_cursos_all(self, colum_order): return self.model.get_all(colum_order) def get_curso_one_condition(self, condition_filter): return self.model.get_by_one_condition(condition_filter) def get_curso_by_multiple_condition(self, condition_filter): return self.model.get_by_multiple_condition(condition_filter) def insert_curso(self, data): return self.model.insert(data) def update_curso(self, values_to_update, conditions_filter): return self.model.update(values_to_update, conditions_filter) def delete_curso(self, conditions_filter): return self.model.delete(conditions_filter)
class Salones: def __init__(self): self.model = Conection('salones') def get_salones_all(self, order): return self.model.get_all(order) def get_salon(self, id_object): return self.model.get_by_one_condition(id_object) def get_salones_multiple_condition(self, id_object): return self.model.get_by_multiple_condition(id_object) def insert_salon(self, data): return self.model.insert(data) def update_salon(self, id_object, data): return self.model.update(id_object, data) def delete_salon(self, id_object): return self.model.delete(id_object)
class Model_Malla_Curricular: def __init__(self): self.model = Conection('malla_curricular') def get_malla_curricular_all(self, colum_order): return self.model.get_all(colum_order) def get_malla_curricular_one_condition(self, condition_filter): return self.model.get_by_one_condition(condition_filter) def get_malla_curricular_by_multiple_condition(self, condition_filter): return self.model.get_by_multiple_condition(condition_filter) def insert_malla_curricular(self, data): return self.model.insert(data) def update_malla_curricular(self, values_to_update, conditions_filter): return self.model.update(values_to_update, conditions_filter) def delete_malla_curricular(self, conditions_filter): return self.model.delete(conditions_filter)