本文整理汇总了PHP中UserClient::isAlive方法的典型用法代码示例。如果您正苦于以下问题:PHP UserClient::isAlive方法的具体用法?PHP UserClient::isAlive怎么用?PHP UserClient::isAlive使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserClient
的用法示例。
在下文中一共展示了UserClient::isAlive方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
// echo "ta aqui.".UserClient::getTypeId();exit();
if (!UserClient::isAlive() || UserClient::getTypeId() != Config::ADMIN_USER_TYPE_ID && UserClient::getTypeId() != Config::DEVELOPER_USER_TYPE_ID) {
$urlTo = Navigation::getURI(Config::$URL_ROOT_APPLICATION);
Navigation::redirect("backend/login/to/" . implode("/", $urlTo));
}
}
示例2: __construct
public function __construct($arrayRestFolder = NULL)
{
//verifica se o sujeito está logado e se é admin
if (!UserClient::isAlive()) {
Navigation::redirect("admin/login");
} else {
if (UserClient::getTypeId() != Config::ADMIN_USER_TYPE_ID && UserClient::getTypeId() != Config::DEVELOPER_USER_TYPE_ID) {
//o sujeito ou não está logado ou ele não é admin
Navigation::redirect("admin/login");
}
}
if ($arrayRestFolder != NULL) {
$this->arrayVariable = Navigation::getVariableArraySlug($arrayRestFolder);
$this->arrayRestFolder = $arrayRestFolder;
}
}
示例3: __construct
public function __construct($arrayRestFolder = NULL)
{
if (!UserClient::isAlive()) {
Navigation::redirect("client/login");
exit;
}
$id_user = UserClient::getId();
$PartnerDAO = PartnerDAO::getInstance();
$ReturnPartnerDAO = $PartnerDAO->selectById($id_user);
if ($ReturnPartnerDAO->success && count($ReturnPartnerDAO->result) > 0) {
$_SESSION["is_partner"] = 1;
}
if ($arrayRestFolder != NULL) {
$this->arrayRestFolder = $arrayRestFolder;
$this->arrayVariable = Navigation::getVariableArraySlug($this->arrayRestFolder);
}
$this->DAO = PurchaseOrderDAO::getInstance();
}