本文整理汇总了PHP中MyController::delegate方法的典型用法代码示例。如果您正苦于以下问题:PHP MyController::delegate方法的具体用法?PHP MyController::delegate怎么用?PHP MyController::delegate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MyController
的用法示例。
在下文中一共展示了MyController::delegate方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: delegate
/**
* delegates page rendering
*
* @param $path \b path stuff
*/
public static function delegate($path = null, $class = __CLASS__)
{
parent::delegate($path, $class);
}
示例2: array
require_once $GLOBALS['BASE_DIR'] . '/includes/MyController_channel.class.php';
require_once $GLOBALS['BASE_DIR'] . '/includes/MyController_admin.class.php';
require_once $GLOBALS['BASE_DIR'] . '/includes/MyPortal.class.php';
require_once 'PSUModels/Model.class.php';
require_once $GLOBALS['BASE_DIR'] . '/includes/MyValues.class.php';
require_once $GLOBALS['BASE_DIR'] . '/includes/ChannelForm.class.php';
require_once $GLOBALS['BASE_DIR'] . '/includes/TabForm.class.php';
require_once 'MyRelationships.class.php';
/*******************[End Common Includes]**********************/
/*******************[Authentication Stuff]*****************/
IDMObject::authN();
// get rid of cas cruft in url
if (isset($_GET['ticket'])) {
PSU::redirect($GLOBALS['BASE_URL'] . '/');
}
/*******************[End Authentication Stuff]*****************/
$GLOBALS['identifier'] = PSU::is_wpid($_SESSION['username']) ? $_SESSION['username'] : $_SESSION['wp_id'];
// session namespace for portal variables
if (!isset($_SESSION['portal'])) {
$_SESSION['portal'] = array();
}
//session alert if logged in as portalord
if ($_SESSION['generic_user_type'] == 'portalord') {
$_SESSION['messages'][] = 'You are currently logged in as PortaLord. <a href="' . $GLOBALS['BASE_URL'] . '/admin/unset-type">Resume your session</a>';
}
if (!$GLOBALS['identifier']) {
$_SESSION['errors'][] = 'You are logged in as the default user! ANYTHING you do will be done for EVERY DEFAULT LAYOUT!';
}
//end if
MyController::delegate();