本文整理汇总了PHP中CApp::getMbClasses方法的典型用法代码示例。如果您正苦于以下问题:PHP CApp::getMbClasses方法的具体用法?PHP CApp::getMbClasses怎么用?PHP CApp::getMbClasses使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CApp
的用法示例。
在下文中一共展示了CApp::getMbClasses方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CCSVFile
<?php
/**
* $Id$
*
* @package Mediboard
* @subpackage developpement
* @author SARL OpenXtrem <dev@openxtrem.com>
* @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");
示例2: array
/**
* $Id$
*
* @package Mediboard
* @subpackage developpement
* @author SARL OpenXtrem <dev@openxtrem.com>
* @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);
示例3: array
$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");