lo único que te puedo decir es esto... no estas usando las variables declaradas como argumentos!
Código PHP:
function __construct($ip=IPSERVIDORDB,$usu=USUARIOBD,$cla=CLAVEBD,$tipo='N'){ // o based
$this->ipserver=$localhost; // debe ser $ip
$this->usuario=$jcparra; // debe ser $usu
$this->clave=$Abc12345; // debe ser $cla
$this->tipo_conexion=$tipo;
$this->nfilas=0;
}