本文整理汇总了PHP中CMbObject::loadEditView方法的典型用法代码示例。如果您正苦于以下问题:PHP CMbObject::loadEditView方法的具体用法?PHP CMbObject::loadEditView怎么用?PHP CMbObject::loadEditView使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CMbObject
的用法示例。
在下文中一共展示了CMbObject::loadEditView方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadEditView
/**
* @see parent::loadEditView()
*/
function loadEditView()
{
parent::loadEditView();
CExObject::initLocales();
CExObject::$_locales_cache_enabled = false;
if ($this->pixel_positionning) {
$grid = null;
$out_of_grid = null;
$this->getPixelGrid();
foreach ($this->_ref_groups as $_ex_group) {
$_ex_group->loadRefsSubgroups(true);
$_ex_group->loadRefsPictures(true);
$_subgroups = $_ex_group->loadRefsSubgroups(true);
foreach ($_subgroups as $_subgroup) {
$_subgroup->countBackRefs("children_groups");
$_subgroup->countBackRefs("children_fields");
$_subgroup->countBackRefs("children_messages");
}
}
} else {
list($grid, $out_of_grid) = $this->getGrid(4, 40, false);
}
$events = $this->loadRefsEvents();
foreach ($events as $_event) {
$_event->countBackRefs("constraints");
}
$this->_groups = CGroups::loadGroups();
$this->_ex_object = $this->getExObjectInstance();
$this->_grid = $grid;
$this->_out_of_grid = $out_of_grid;
if (!$this->_id) {
$this->group_id = CGroups::loadCurrent()->_id;
}
$classes = CExClassEvent::getReportableClasses();
$instances = array();
foreach ($classes as $_class) {
$instances[$_class] = new $_class();
}
$this->_host_objects = $instances;
$category = new CExClassCategory();
$this->_categories = $category->loadList(null, "title");
}