public function action() { // Load dashboard components $components = freemed::module_handler('Dashboard'); $this->smarty->assign('COMPONENTS', $components); $this->load('org.freemedsoftware.ui.dashboard'); }
public function GetAvailableGraphs() { $h = freemed::module_handler('GraphingModule'); $req = $GLOBALS['sql']->queryAll("SELECT module_name AS v, module_class AS k FROM modules WHERE FIND_IN_SET( LOWER(module_class), LOWER(" . $GLOBALS['sql']->quote(join(',', $h)) . ") ) "); foreach ($req as $r) { $result[$r['k']] = $r['v']; } return $result; }
<?php // $Id$ // // Authors: // Jeff Buchbinder <*****@*****.**> // // FreeMED Electronic Medical Record and Practice Management System // Copyright (C) 1999-2012 FreeMED Software Foundation // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. include_once dirname(__FILE__) . '/bootstrap.test.php'; t("resolve_module(systemreports)", resolve_module('systemreports')); t("freemed::module_handler(useradd)", freemed::module_handler('UserAdd')); #t("resolveobjectpath(org.freemedsoftware.module.systemreports)", ResolveObjectPath('org.freemedsoftware.module.systemreports')); #t("resolveclassname(org.freemedsoftware.module.systemreports.view)", ResolveClassName('org.freemedsoftware.module.systemreports.view')); #t("resolvemethodname(org.freemedsoftware.module.systemreports.view)", ResolveMethodName('org.freemedsoftware.module.systemreports.view')); t('org.freemedsoftware.module.zipcodes.CalculateDistance', CallMethod('org.freemedsoftware.module.zipcodes.CalculateDistance', '06226', '03743'));
public static function handler_breakpoint($name, $params = NULL) { $handlers = freemed::module_handler($name); if (is_array($handlers)) { foreach ($handlers as $class => $handler) { T_textdomain(strtolower($class)); if ($params != NULL) { $reply[] = module_function($class, $handler, $params); } else { $reply[] = module_function($class, $handler); } } return $reply; } return false; }