<?php
trait UsoEnt{
	private $iduso,$uso;
	public function setIduso($val){$this->iduso=$val;} public function getIduso(){return $this->iduso;}
	public function setUso($val){$this->uso=$val;} public function getUso(){return $this->uso;}
}
class UsoMod{
	public function registrarUso($val){
		$sql="insert into uso(iduso,uso) values('".$val->getIduso()."','".$val->getUso()."');";
		$query=mysqli_query(ConexionMod::Conectar(),$sql) or die("Error de registro");
		mysqli_close(ConexionMod::Conectar());
	}
}
?>