* @package artifactrepo * @link https://www.zentao.net */ class artifactrepoZen extends artifactrepo { /** * 更新版本库状态。 * Update artifact repo status. * * @param int $artifactRepoID * @param string $status * @access protected * @return bool */ protected function updateStatus(int $artifactRepoID, string $status): bool { $this->dao->update(TABLE_ARTIFACTREPO)->set('status')->eq($status)->where('id')->eq($artifactRepoID)->exec(); return !dao::isError(); } }