/**
  * Constructor.
  * @param boolean $check Control de aplicación configurada. Por defecto, se controla (true).
  */
 function base_Controller($bol_check = true)
 {
     if ($bol_check) {
         //Preparamos la sesión
         $obj_session =& Session::start();
         //Obtenemos el registro de miguel
         $this->registry =& Registry::start();
     }
     if (MIGUELBASE_CACHEABLE) {
         $this->bol_isCacheable = true;
     } else {
         $this->bol_isCacheable = false;
     }
 }
 /**
  * Obtiene los elementos a incluir en la barra
  * @internal
  */
 function _getBarrElements()
 {
     $registry =& Registry::start();
     $services = $registry->listServices();
     return $services;
 }
 /**
  * Constructor.
  * @param string $str_title Título de la página
  * @param array $arr_commarea Variables necesarias para la visualización de la vista
  *
  */
 function base_LayoutPage($str_title, $arr_commarea)
 {
     $this->arr_commarea = $arr_commarea;
     //Obtenemos el registro de miguel
     $this->registry =& Registry::start();
     //Superclass initialization
     $this->PageWidget(agt($str_title), $this->str_renderType);
 }
 function _getServicesBar()
 {
     $registry = Registry::start();
     $table = html_table(Session::getContextValue("mainInterfaceWidth"), 0, 1);
     //$table->set_tag_attribute('bgcolor', '#CECECE');
     //$table->set_class("mainInterfaceWidth");
     //$table->set_id("header");
     $row = html_tr();
     $arr_elem = $registry->listServices();
     //$arr_elem = $this->_getBarrElementsbyFile();
     $profile = Session::getValue("userinfo_profile_id");
     //Debug::oneVar($profile, __FILE__, __LINE__);
     foreach ($arr_elem as $app => $params) {
         if ($registry->checkServiceAccess($params[0], $profile)) {
             if (strncmp($params[1], 'http://', 7) != 0) {
                 $row->add($this->_getBarElement(Util::format_URLPath($params[1], $params[2]), $params[4]));
             } else {
                 $row->add($this->_getBarElement($params[1], $params[4]));
             }
         }
     }
     $table->add_row($row);
     return $table;
 }