Exemple #1
0
 /**
  * Constructor, define component name
  */
 function __construct()
 {
     parent::__construct();
     $this->_component = 'fi.kilonkipinat.events';
     $this->_autoload_files = array('functions.php');
     $this->_autoload_libraries = array('midcom.helper.datamanager2', 'org.routamc.positioning', 'net.nemein.rss');
 }
Exemple #2
0
 /**
  * Constructor, define component name
  */
 function __construct()
 {
     parent::__construct();
     $this->_component = 'fi.kilonkipinat.website';
     // Load all mandatory class files of the component here
     $this->_autoload_files = array();
     // Load all libraries used by component here
     $this->_autoload_libraries = array();
 }
Exemple #3
0
 /**
  * Constructor, define component name
  */
 function __construct()
 {
     parent::__construct();
     $this->_component = 'fi.kilonkipinat.forms';
 }
Exemple #4
0
 /**
  * Handle a request.
  *
  * The URL of the component that is used to handle the request is obtained automatically.
  * If the handler hook returns false (i.e. handling failed), it will produce an error page.
  *
  * @param midcom_baseclasses_components_interface $handler The component's main handler class
  */
 public function run(midcom_baseclasses_components_interface $handler)
 {
     $result = $handler->handle();
     if (false === $result) {
         throw new midcom_error("Component " . $this->get_key(MIDCOM_CONTEXT_COMPONENT) . " failed to handle the request");
     } else {
         if (is_object($result) && $result instanceof midcom_response) {
             $result->send();
             //this will exit
         }
     }
     // Retrieve Metadata
     $nav = new midcom_helper_nav();
     if ($nav->get_current_leaf() === false) {
         $meta = $nav->get_node($nav->get_current_node());
     } else {
         $meta = $nav->get_leaf($nav->get_current_leaf());
     }
     if ($this->get_key(MIDCOM_CONTEXT_PERMALINKGUID) === null) {
         $this->set_key(MIDCOM_CONTEXT_PERMALINKGUID, $meta[MIDCOM_NAV_GUID]);
     }
     if ($this->get_key(MIDCOM_CONTEXT_PAGETITLE) == '') {
         $this->set_key(MIDCOM_CONTEXT_PAGETITLE, $meta[MIDCOM_NAV_NAME]);
     }
 }
Exemple #5
0
 /**
  * Constructor, define component name
  */
 function __construct()
 {
     parent::__construct();
     $this->_component = 'fi.kilonkipinat.accountregistration';
 }
Exemple #6
0
 /**
  * Constructor, define component name
  */
 function __construct()
 {
     parent::__construct();
     $this->_component = 'fi.kilonkipinat.emailmappings';
 }
Exemple #7
0
 /**
  * Constructor, define component name
  */
 function __construct()
 {
     parent::__construct();
     $this->_component = 'fi.kilonkipinat.todos';
     $this->_autoload_libraries = array('org.openpsa.qbpager', 'org.openpsa.notifications');
 }
Exemple #8
0
 /**
  * Constructor, define component name
  */
 function __construct()
 {
     parent::__construct();
     $this->_component = 'fi.opengov.datacatalog';
     $this->_component_id = 'fi_opengov_datacatalog';
 }