Esempio n. 1
0
 function __construct($url, $usuario, $clave)
 {
     $this->url = $url;
     $this->usuario = $usuario;
     $this->clave = $clave;
     $this->establecerAtributosBasicos();
     $this->conexion = $this->crearConexion();
     if (!$this->controlServidorPoseeTipos(RDITipos::getTiposBasicos())) {
         throw new RDIExcepcion('El servidor no posee los tipos requeridos por SIU-RDI');
         //Mejorar Msg
     }
 }
Esempio n. 2
0
 function controlServidorPoseeTipos($tiposBasicos)
 {
     return true;
     /**
      * @todo
      *	Dejar la respuesta en un cache local asociado a los parametros del server.
      *  Mejorar mensaje de la excepcion lanzada cuando no encuentra el tipo ancestro
      */
     $ancestro = RDITipos::getAncestroTipos();
     try {
         $descendientes = $this->conexion->getTypeDescendants($ancestro, -1);
     } catch (CmisObjectNotFoundException $ex) {
         //No existe ni el ancestro de todos los tipos SIU-RDI.
         //$txtCMIS = $this->extraerTextoExcepcion($ex->getMessage());
         $this->log_error($ex);
         //throw new RDIExcepcion('Faltan los tipos basicos para los elementos '.$txtCMIS);
         return false;
         //El llamador se encarga del msg por ahora
     }
     return $this->hayTiposBasicos($descendientes, $tiposBasicos);
 }