public static function get_available_ontologies($property) { $ontos = new ontologies(); $ontologies = $ontos->get_other_ontologies(); return $ontologies; }
<?php // +-------------------------------------------------+ // © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net) // +-------------------------------------------------+ // $Id: main.inc.php,v 1.1 2015-08-10 23:16:26 arenou Exp $ if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) { die("no access"); } error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); require_once $class_path . "/autoloader.class.php"; $autoloader = new autoloader(); $autoloader->add_register("onto_class", true); $ontologies = new ontologies(); $admin_layout = str_replace("!!ontologies_menu!!", $ontologies->get_admin_menu(), $admin_layout); switch ($sub) { case 'general': print str_replace("!!menu_sous_rub!!", $msg['ontologies_general'], $admin_layout); $ontologies->admin_proceed($act, $ontology_id); break; default: print str_replace("!!menu_sous_rub!!", "", $admin_layout); $ontology = new ontology($ontology_id); $ontology->exec_onto_framework(); break; }
$base_title = "\$msg[semantic]"; $base_use_dojo = 1; require_once "{$base_path}/includes/init.inc.php"; // ini_set('errors_display',1); // error_reporting(E_ALL); require_once $class_path . "/autoloader.class.php"; $autoloader = new autoloader(); $autoloader->add_register("onto_class", true); require_once $class_path . "/ontologies.class.php"; require_once $include_path . "/templates/semantic.tpl.php"; print "<div id='att' style='z-Index:1000'></div>"; print $menu_bar; print $extra; print $extra2; print $extra_info; if ($use_shortcuts) { include "{$include_path}/shortcuts/circ.sht"; } $ontologies = new ontologies(); $layout = str_replace("!!ontologies_menu!!", $ontologies->get_semantic_menu(), $semantic_layout); print $layout; if ($ontology_id) { $ontology = new ontology($ontology_id); $ontology->exec_data_framework(); } else { //TODO print "<div class='row'>PAGE D'AIDE</div>"; } print $semantic_layout_end; print $footer; mysql_close($dbh);
protected function build_ontologies() { $ontologies = array(); for ($i = 0; $i < count(self::$configs[$this->config_filename]['available_fields']); $i++) { if (self::$configs[$this->config_filename]['available_fields'][$i]['type'] == 'ontologie') { $infos = self::$configs[$this->config_filename]['available_fields'][$i]; unset(self::$configs[$this->config_filename]['available_fields'][$i]); $tmp = new ontologies(); $ontos = $tmp->looking_for_use_in_concepts(); foreach ($ontos as $onto) { $ontologies[] = array('num' => (string) ($infos['num'] + $onto['id']), 'name' => $onto['name'], 'class_name' => "vedette_ontologies", 'type' => "ontology" . $onto['id'], 'params' => array('num' => (string) ($infos['num'] + $onto['id']), 'id_ontology' => $onto['ontology_id'], 'label' => $onto['name'], 'pmbname' => $onto['pmbname'])); } break; } } self::$configs[$this->config_filename]['available_fields'] = array_merge(self::$configs[$this->config_filename]['available_fields'], $ontologies); }
public static function get_available_classes() { $ontos = new ontologies(); $ontologies = $ontos->get_other_ontologies_classes(); return $ontologies; }