
<?php
trait DivisionEnt{
	private $iddivision,$division;
	public function setIddivision($val){$this->iddivision=$val;} public function getIddivision(){return $this->iddivision;}
	public function setDivision($val){$this->division=$val;} public function getDivision(){return $this->division;}
}
class DivisionMod{
	public function registrarDivision($val){
		$sql="insert into division(iddivision,division) values('".$val->getIddivision()."','".$val->getDivision()."');";
		$query=mysqli_query(ConexionMod::Conectar(),$sql) or die("Error de registro");
		mysqli_close(ConexionMod::Conectar());
	}
}
?>