本文整理匯總了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]);
}
}
}