<?php
defined('BASEPATH') OR exit('No direct script access allowed');

//Validaciones para el modelo de usuarios
class Postventa_lib {

	public function __construct(){
		
	}
	
	public function normaliza($cadena){
	    $originales = 'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿŔŕ';
	    $modificadas = 'aaaaaaaceeeeiiiidnoooooouuuuybsaaaaaaaceeeeiiiidnoooooouuuyybyRr';
	    $cadena = utf8_decode($cadena);
	    $cadena = strtr($cadena, utf8_decode($originales), $modificadas);
	    $cadena = strtolower($cadena);
	    $cadena = str_replace(","," ",$cadena);
		$cadena = str_replace(".","",$cadena);
	    return utf8_encode($cadena);
	}

}

?>