本文整理汇总了PHP中js::closeColorbox方法的典型用法代码示例。如果您正苦于以下问题:PHP js::closeColorbox方法的具体用法?PHP js::closeColorbox怎么用?PHP js::closeColorbox使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类js
的用法示例。
在下文中一共展示了js::closeColorbox方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: close
/**
* Close a bug.
*
* @param int $bugID
* @access public
* @return void
*/
public function close($bugID)
{
if (!empty($_POST)) {
$this->bug->close($bugID);
if (dao::isError()) {
die(js::error(dao::getError()));
}
$actionID = $this->action->create('bug', $bugID, 'Closed', $this->post->comment);
$this->sendmail($bugID, $actionID);
if (isonlybody()) {
die(js::closeColorbox('parent.parent'));
}
die(js::locate($this->createLink('bug', 'view', "bugID={$bugID}"), 'parent'));
}
$bug = $this->bug->getById($bugID);
$productID = $bug->product;
$this->bug->setMenu($this->products, $productID);
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->bug->close;
$this->view->position[] = html::a($this->createLink('bug', 'browse', "productID={$productID}"), $this->products[$productID]);
$this->view->position[] = $this->lang->bug->close;
$this->view->bug = $bug;
$this->view->users = $this->user->getPairs('noletter');
$this->view->actions = $this->action->getList('bug', $bugID);
$this->display();
}
示例2: activate
/**
* Activate a task.
*
* @param int $taskID
* @access public
* @return void
*/
public function activate($taskID)
{
$this->commonAction($taskID);
if (!empty($_POST)) {
$this->loadModel('action');
$changes = $this->task->activate($taskID);
if (dao::isError()) {
die(js::error(dao::getError()));
}
if ($this->post->comment != '' or !empty($changes)) {
$actionID = $this->action->create('task', $taskID, 'Activated', $this->post->comment);
$this->action->logHistory($actionID, $changes);
$this->sendmail($taskID, $actionID);
}
if (isonlybody()) {
die(js::closeColorbox('parent.parent'));
}
die(js::locate($this->createLink('task', 'view', "taskID={$taskID}"), 'parent'));
}
if (!isset($this->view->members[$this->view->task->finishedBy])) {
$this->view->members[$this->view->task->finishedBy] = $this->view->task->finishedBy;
}
$this->view->title = $this->view->project->name . $this->lang->colon . $this->lang->task->activate;
$this->view->position[] = $this->lang->task->activate;
$this->display();
}