本文整理汇总了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));
}