本文整理匯總了PHP中Sintattica\Atk\Core\Tools::atkActionStatus方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tools::atkActionStatus方法的具體用法?PHP Tools::atkActionStatus怎麽用?PHP Tools::atkActionStatus使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Sintattica\Atk\Core\Tools
的用法示例。
在下文中一共展示了Tools::atkActionStatus方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: feedbackPage
/**
* The method returns a complete html page containing the feedback info.
*
* @param string $action The action for which feedback is provided
* @param int $actionstatus The status of the action for which feedback is
* provided
* @param string $message An optional message to display in addition to the
* default feedback information message.
*
* @return string The feedback page as an html String.
*/
public function feedbackPage($action, $actionstatus, $message = '')
{
$node = $this->m_node;
$ui = $this->getUi();
$params['content'] = '<br>' . Tools::atktext('feedback_' . $action . '_' . Tools::atkActionStatus($actionstatus), $node->m_module, $node->m_type);
if ($message) {
$params['content'] .= ' <br>' . $message;
}
$sm = SessionManager::getInstance();
if ($sm->atkLevel() > 0) {
$params['formstart'] = '<form method="get">' . $sm->formState(SessionManager::SESSION_BACK);
$params['buttons'][] = '<input type="submit" class="btn btn-default btn_cancel" value="<< ' . Tools::atktext('back') . '">';
$params['formend'] = '</form>';
}
$output = $ui->renderAction($action, $params);
return $ui->renderBox(array('title' => $node->actionTitle($action), 'content' => $output));
}