本文整理汇总了PHP中Registry::start方法的典型用法代码示例。如果您正苦于以下问题:PHP Registry::start方法的具体用法?PHP Registry::start怎么用?PHP Registry::start使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Registry
的用法示例。
在下文中一共展示了Registry::start方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: base_Controller
/**
* Constructor.
* @param boolean $check Control de aplicación configurada. Por defecto, se controla (true).
*/
function base_Controller($bol_check = true)
{
if ($bol_check) {
//Preparamos la sesión
$obj_session =& Session::start();
//Obtenemos el registro de miguel
$this->registry =& Registry::start();
}
if (MIGUELBASE_CACHEABLE) {
$this->bol_isCacheable = true;
} else {
$this->bol_isCacheable = false;
}
}
示例2: _getBarrElements
/**
* Obtiene los elementos a incluir en la barra
* @internal
*/
function _getBarrElements()
{
$registry =& Registry::start();
$services = $registry->listServices();
return $services;
}
示例3: base_LayoutPage
/**
* Constructor.
* @param string $str_title Título de la página
* @param array $arr_commarea Variables necesarias para la visualización de la vista
*
*/
function base_LayoutPage($str_title, $arr_commarea)
{
$this->arr_commarea = $arr_commarea;
//Obtenemos el registro de miguel
$this->registry =& Registry::start();
//Superclass initialization
$this->PageWidget(agt($str_title), $this->str_renderType);
}
示例4: _getServicesBar
function _getServicesBar()
{
$registry = Registry::start();
$table = html_table(Session::getContextValue("mainInterfaceWidth"), 0, 1);
//$table->set_tag_attribute('bgcolor', '#CECECE');
//$table->set_class("mainInterfaceWidth");
//$table->set_id("header");
$row = html_tr();
$arr_elem = $registry->listServices();
//$arr_elem = $this->_getBarrElementsbyFile();
$profile = Session::getValue("userinfo_profile_id");
//Debug::oneVar($profile, __FILE__, __LINE__);
foreach ($arr_elem as $app => $params) {
if ($registry->checkServiceAccess($params[0], $profile)) {
if (strncmp($params[1], 'http://', 7) != 0) {
$row->add($this->_getBarElement(Util::format_URLPath($params[1], $params[2]), $params[4]));
} else {
$row->add($this->_getBarElement($params[1], $params[4]));
}
}
}
$table->add_row($row);
return $table;
}