本文整理匯總了PHP中app::v方法的典型用法代碼示例。如果您正苦於以下問題:PHP app::v方法的具體用法?PHP app::v怎麽用?PHP app::v使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類app
的用法示例。
在下文中一共展示了app::v方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: handleUserInfoWithWeb
private function handleUserInfoWithWeb()
{
$user_cookies = parent::v('cookies', array('password'));
if ($user_cookies['password']) {
} else {
$this->loginIn();
}
}
示例2: editProject_Action
public function editProject_Action()
{
if (app::v('checkallow', 'submit')) {
$baseId = intval($this->getInput['baseId']);
$moneyInfo = array(control_baseMoney::TABLE_BASEMONEY => $this->getInput[control_baseMoney::TABLE_BASEMONEY], control_baseMoney::TABLE_RUNMONEY => $this->getInput[control_baseMoney::TABLE_RUNMONEY], control_baseMoney::TABLE_CLIENTMONEY => $this->getInput[control_baseMoney::TABLE_CLIENTMONEY]);
control_baseMoney::editBaseMoneyInfo($moneyInfo, $baseId);
showmsg(control_returnCode::FORM_SUBMIT_TRUE);
}
}
示例3: edit_Action
public function edit_Action()
{
$userId = $this->getInput['userId'];
if ($userId) {
$userInfo = control_user::getUserInfo($userId);
if (!$userInfo) {
showmsg(control_returnCode::FORM_INFO_EMPTY);
}
}
if (app::v('checkallow', 'submit')) {
if ($userInfo) {
$status = control_user::editUser($userId, array(control_user::TABLE_REALNAME => $this->getInput[control_user::TABLE_REALNAME], control_user::TABLE_EMAIL => $this->getInput[control_user::TABLE_EMAIL], control_user::TABLE_PASSWORD => $this->getInput[control_user::TABLE_PASSWORD]));
} else {
$status = control_user::regUser(array(control_user::TABLE_REALNAME => $this->getInput[control_user::TABLE_REALNAME], control_user::TABLE_EMAIL => $this->getInput[control_user::TABLE_EMAIL], control_user::TABLE_PASSWORD => $this->getInput[control_user::TABLE_PASSWORD]));
}
showmsg($status, array(), $this->privateUri['clientListUri']);
} else {
$this->modelDisplay(array('userInfo' => $userInfo, 'formTitle' => !$userInfo ? '新增客戶' : '編輯客戶', 'userId' => $userId));
}
}
示例4: getFileInput
public function getFileInput($fileList = array())
{
return app::v('file', $fileList, array('addslashes'));
}
示例5: showmsg
showmsg(control_returnCode::AJAX_GET_NOMODEL);
break;
}
}
public function systemUpdate_Action()
{
if (app::v('checkallow', 'submit')) {
foreach (control_systemBase::getMoneyArray() as $key => $val) {
$baseInfo[$key] = $this->getInput[$key];
}