/** * * @param string $name * @static * @access public * @throws AttException */ public static function delAttach($name) { $ret = bbs_upload_del_file($name); if ($ret != 0) { throw new AttException(ECode::kbs2code($ret)); } }
public function delAttach($num) { $ret = bbs_attachment_del($this->_board->NAME, $this->ID, $num); if (!is_array($ret)) { throw new ArchiveAttException(ECode::kbs2code($ret)); } return $ret; }