本文整理汇总了PHP中Manager::getAction方法的典型用法代码示例。如果您正苦于以下问题:PHP Manager::getAction方法的具体用法?PHP Manager::getAction怎么用?PHP Manager::getAction使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Manager
的用法示例。
在下文中一共展示了Manager::getAction方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setItem
public function setItem($item)
{
$action = Manager::getAction($item);
$this->addControl(new MTextHeader('', '1', $action[0]));
foreach ($action[ACTION_ACTIONS] as $a) {
$this->addControl(new MLink('', $a[0], '>' . $a[1]));
}
}
示例2: setActions
public function setActions($action, $level = 1)
{
$actions = Manager::getAction($action);
if ($level == 1) {
$this->addActions($actions[ACTION_ACTIONS]);
} else {
foreach ($actions as $group) {
$this->addControl(new MSeparator($group[ACTION_CAPTION]));
$this->addActions($group[ACTION_ACTIONS]);
}
}
}
示例3: setActions
public function setActions($action, $level = 1)
{
$actions = Manager::getAction($action);
//mdump($action);
if ($level == 1) {
$this->addActions($actions[ACTION_ACTIONS]);
} else {
foreach ($actions as $group) {
$this->addActions($group[ACTION_ACTIONS]);
}
}
}