예제 #1
0
<?php

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage developpement
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
$csv = new CCSVFile();
CApp::getMbClasses($instances);
foreach ($instances as $_class => $_instance) {
    if (!$_instance->_spec->table || !$_instance->_ref_module) {
        continue;
    }
    $_module = $_instance->_ref_module;
    $line = array($_class, CAppUI::tr($_class), $_instance->_spec->table, $_instance->_spec->key, $_module->mod_name, CAppUI::tr("module-{$_module->mod_name}-court"));
    $csv->writeLine($line);
}
$csv->stream("Class to table");
/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage developpement
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkRead();
CApp::setMemoryLimit("256M");
// Checking out the result
$class = CValue::get("class");
$show = CValue::get("show", "errors");
$classes = CApp::getMbClasses();
$classes[] = "CMbObject";
// Looking for what is actually coded
$present = array();
foreach ($classes as $_class) {
    /** @var CMbObject $object */
    $object = new $_class();
    $object->makeAllBackSpecs();
    foreach ($object->_backSpecs as $backName => $backSpec) {
        if (!$backSpec->isInherited()) {
            $parts = explode(" ", $object->_backProps[$backName]);
            $present[$_class]["{$parts['0']} {$parts['1']}"] = $backName;
        }
    }
}
ksort($present);
        $where = array("group_id" => "= '{$group_id}'", "conditional" => "= '1'", $triggerable->_spec->key => "!= '{$ex_class->_id}'");
        // TODO charger les ex_class qui ont un event avec la meme classe que ... quel evenement ???
        $triggerables_cond = $triggerable->loadList($where, "conditional DESC, name");
        $where["conditional"] = "= '0'";
        $triggerables_others = $triggerable->loadList($where, "conditional DESC, name");
    }
    if (!empty($context->concept_id)) {
        if (!empty($context->_ref_concept->_ref_ex_list)) {
            $items_all = array_keys($context->_ref_concept->_ref_ex_list->_ref_items);
        } else {
            $items_all = array_keys($context->_ref_concept->_ref_items);
        }
    }
}
$GLOBALS["items"] = $items_sub;
usort($items_all, "order_items");
$classes = $spec instanceof CRefSpec ? CApp::getMbClasses() : array();
$smarty = new CSmartyDP();
$smarty->assign("prop", $prop);
$smarty->assign("spec", $spec);
$smarty->assign("options", $options);
$smarty->assign("boolean", $boolean);
$smarty->assign("items_all", $items_all);
$smarty->assign("items_sub", $items_sub);
$smarty->assign("form_name", $form_name);
$smarty->assign("classes", $classes);
$smarty->assign("list_owner", $list_owner);
$smarty->assign("context", $context);
$smarty->assign("triggerables_cond", $triggerables_cond);
$smarty->assign("triggerables_others", $triggerables_others);
$smarty->display("inc_edit_ex_field_spec2.tpl");