本文整理汇总了PHP中__Config::getAllAsArray方法的典型用法代码示例。如果您正苦于以下问题:PHP __Config::getAllAsArray方法的具体用法?PHP __Config::getAllAsArray怎么用?PHP __Config::getAllAsArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类__Config
的用法示例。
在下文中一共展示了__Config::getAllAsArray方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: collect
/**
* {@inheritdoc}
*/
public function collect()
{
$application = org_glizy_ObjectValues::get('org.glizy', 'application');
$result = array();
$result['pageId'] = $application->getPageId();
$result['routing'] = __Request::get('__routingName__') . ' > ' . __Request::get('__routingPattern__');
$result['controllers'] = implode(', ', $this->calledControllers);
$user = $application->getCurrentUser();
$userData = array('id' => $user->id, 'firstName' => $user->firstName, 'lastName' => $user->lastName, 'email' => $user->email, 'groupId' => $user->groupId, 'backEndAccess' => $user->backEndAccess);
$result['user'] = $this->getDataFormatter()->formatVar($userData);
$menu = $application->getCurrentMenu();
$menuData = array('id' => $menu->id, 'title' => $menu->title, 'parentId' => $menu->parentId, 'pageType' => $menu->pageType, 'type' => $menu->type, 'depth' => $menu->depth);
$result['menu'] = $this->getDataFormatter()->formatVar($menuData);
// request
$data = __Request::getAllAsArray();
$tempData = array();
foreach ($data as $k => $v) {
if (strpos($k, '__') !== 0) {
$tempData[$k] = $v;
}
}
$result['__Request'] = $this->getDataFormatter()->formatVar($tempData);
$result['__Config'] = $this->getDataFormatter()->formatVar(__Config::getAllAsArray());
$result['__Routing'] = $this->getDataFormatter()->formatVar(__Routing::getAllAsArray());
$result['__Session'] = $this->getDataFormatter()->formatVar(__Session::getAllAsArray());
return $result;
}