public function updataBlockAndData() { $intCellId = intval($this->input['intCellId']); $arBlockInfo = $this->input['arBlockInfo']; if (!$intCellId && empty($arBlockInfo)) { $this->errorOutput('参数不完整,编辑失败'); } $intDataNum = count($arBlockInfo['content']); //更改单元的数据源参数 if (!class_exists('cell')) { include CUR_CONF_PATH . 'lib/cell.class.php'; } $objCell = new cell(); $arCellInfo = $objCell->detail(' AND id = ' . $intCellId); $arParamAsso = $arCellInfo['param_asso']; $arParamAsso['input_param']['count'] = $intDataNum; $objCell->update(array('param_asso' => serialize($arParamAsso)), $intCellId); //更改区块和数据 $arBlockInfo['block']['line_num'] = $intDataNum; if (!class_exists('block')) { include ROOT_PATH . 'lib/class/block.class.php'; } $objBlock = new block(); $objBlock->updateBlockAndData($arBlockInfo); //重新处理该单元信息 if (!class_exists('Magic')) { include CUR_CONF_PATH . 'lib/magic.class.php'; } $objMagic = new Magic(); $arCellInfo = $objMagic->cellProcess($arCellInfo); $this->addItem($arCellInfo); $this->output(); }