本文整理汇总了PHP中BASE_CLASS_Widget::setPlaceData方法的典型用法代码示例。如果您正苦于以下问题:PHP BASE_CLASS_Widget::setPlaceData方法的具体用法?PHP BASE_CLASS_Widget::setPlaceData怎么用?PHP BASE_CLASS_Widget::setPlaceData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BASE_CLASS_Widget
的用法示例。
在下文中一共展示了BASE_CLASS_Widget::setPlaceData方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: processQueue
public function processQueue()
{
$requestQueue = json_decode(urldecode($_POST['request']), true);
$responseQueue = array();
$exception = false;
foreach ($requestQueue as $request) {
if (!isset($this->actions[$request['command']])) {
continue;
}
$command = $request['command'];
$commandId = $request['commandId'];
$data = empty($request['data']) ? array() : $request['data'];
BASE_CLASS_Widget::setPlaceData($request['data']);
$result = call_user_func($this->actions[$request['command']], $request['data']);
$responseQueue[$commandId] = $result;
}
$response = array('responseQueue' => $responseQueue, 'debug' => $this->debug);
echo json_encode($response);
exit;
}
示例2: onBeforeRender
public function onBeforeRender()
{
BASE_CLASS_Widget::setPlaceData($this->sharedData);
$this->settingList = $this->makeSettingList($this->settingList);
$this->positionList = $this->makePositionList($this->positionList);
$this->componentList = $this->makeComponentList($this->componentList);
$componentList = $this->makeTplComponentList();
$currentShceme = $this->getCurrentScheme($this->scheme);
if (!empty($currentShceme)) {
$this->assign('activeScheme', $currentShceme);
}
$this->assign('componentList', $componentList);
$this->assign('schemeList', $this->schemeList);
}