/** * 批量更新附件信息 * * @param array $aids * @param PwThreadAttachDm $dm * @return bool */ public function batchUpdateAttach($aids, PwThreadAttachDm $dm) { if (!$aids || !is_array($aids)) { return false; } if (($result = $dm->beforeUpdate()) !== true) { return $result; } if (($result = $this->_getAttach()->batchUpdateAttach($aids, $dm)) instanceof PwError) { return $result; } return $this->_getDao()->batchUpdateAttach($aids, $dm->getData(), $dm->getIncreaseData()); }