本文整理汇总了PHP中unknown_type::getMyGame方法的典型用法代码示例。如果您正苦于以下问题:PHP unknown_type::getMyGame方法的具体用法?PHP unknown_type::getMyGame怎么用?PHP unknown_type::getMyGame使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类unknown_type
的用法示例。
在下文中一共展示了unknown_type::getMyGame方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _psdLinkEdit
private function _psdLinkEdit()
{
$this->_modelLyPsdLink = $this->_getGlobalData('Model_LyPsdLink', 'object');
$gameTypes = $this->_modelLyPsdLink->getMyGame();
$selected = $this->_modelLyPsdLink->findById($_GET['Id']);
if (!$selected) {
$this->_utilMsg->showMsg('已删除', -1, 2);
}
if ($this->_isPost()) {
$_POST['Id'] = intval($_POST['Id']);
if (!$this->_modelLyPsdLink->findById($_POST['Id'])) {
$this->_utilMsg->showMsg(Tools::getLang('LINK_DELETED', __CLASS__), -1, 2);
}
$_POST['game_type_id'] = intval($_POST['game_type_id']);
if (!$_POST['game_type_id'] || !array_key_exists($_POST['game_type_id'], $gameTypes)) {
$this->_utilMsg->showMsg(Tools::getLang('PLZ_SLT_GAME', 'Common'), -1, 2);
}
if (trim($_POST['title']) == '') {
$this->_utilMsg->showMsg('标题不能为空', -1, 2);
}
if (trim($_POST['href']) == '') {
$this->_utilMsg->showMsg('链接不能为空', -1, 2);
}
$this->_modelLyPsdLink->linkUpdate();
$this->_utilMsg->showMsg(Tools::getLang('OPERATION_SUCCESS', 'Common'), 1, $this->_url['PsdLink'], 1);
}
$this->_view->assign('selected', $selected);
$this->_view->assign('gameTypes', $gameTypes);
$this->_utilMsg->createPackageNavBar();
$this->_view->display();
}
示例2: _linkEdit
private function _linkEdit()
{
$this->_modelLyLink = $this->_getGlobalData('Model_LyLink', 'object');
$gameTypes = $this->_modelLyLink->getMyGame();
$operators = $this->_modelLyLink->getMyOperator();
$linkType = $this->_modelLyLink->getType();
$selected = $this->_modelLyLink->findById($_GET['Id']);
if (!$selected) {
$this->_utilMsg->showMsg(Tools::getLang('LINK_DELETED', __CLASS__), -1, 2);
}
if ($this->_isPost()) {
$_POST['Id'] = intval($_POST['Id']);
if (!$this->_modelLyLink->findById($_POST['Id'])) {
$this->_utilMsg->showMsg(Tools::getLang('LINK_DELETED', __CLASS__), -1, 2);
}
$_POST['game_type_id'] = intval($_POST['game_type_id']);
if (!$_POST['game_type_id'] || !array_key_exists($_POST['game_type_id'], $gameTypes)) {
$this->_utilMsg->showMsg(Tools::getLang('PLZ_SLT_GAME', 'Common'), -1, 2);
}
$_POST['operator_id'] = intval($_POST['operator_id']);
if (!$_POST['operator_id'] || !array_key_exists($_POST['operator_id'], $operators)) {
$this->_utilMsg->showMsg(Tools::getLang('PLZ_SLT_OPERATOR', 'Common'), -1, 2);
}
$_POST['link_type'] = intval($_POST['link_type']);
if (!$_POST['link_type'] || !array_key_exists($_POST['link_type'], $linkType)) {
$this->_utilMsg->showMsg(Tools::getLang('PLZ_SLT_LINK_TYPE', __CLASS__), -1, 2);
}
if (trim($_POST['title']) == '') {
$this->_utilMsg->showMsg(Tools::getLang('TITLE_NEED', __CLASS__), -1, 2);
}
if (trim($_POST['href']) == '') {
$this->_utilMsg->showMsg(Tools::getLang('LINK_NEED', __CLASS__), -1, 2);
}
$this->_modelLyLink->linkUpdate();
$this->_utilMsg->showMsg(Tools::getLang('OPERATION_SUCCESS', 'Common'), 1, $this->_url['Link'], 1);
}
$this->_view->assign('selected', $selected);
$this->_view->assign('gameTypes', $gameTypes);
$this->_view->assign('operators', $operators);
$this->_view->assign('linkType', $linkType);
$this->_view->display();
}