当前位置: 首页>>代码示例>>PHP>>正文


PHP CApp::getMbClasses方法代码示例

本文整理汇总了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");
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:22,代码来源:csv_class_tables.php

示例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);
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:30,代码来源:mnt_backref_classes.php

示例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");
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:ajax_edit_ex_field_spec2.php


注:本文中的CApp::getMbClasses方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。