cfmgrv4 init...10

This commit is contained in:
최준흠 2025-03-13 15:05:43 +09:00
parent 0b839b97dc
commit 97c4dc825b
10 changed files with 13 additions and 14 deletions

View File

@ -98,6 +98,6 @@ class AccountModel extends CommonModel
//List 검색용
public function setList_WordFilter(string $word): void
{
$this->orLike(self::TABLE . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . "." . self::TITLE, $word, 'both');
}
}

View File

@ -88,7 +88,7 @@ class AuditLogModel extends CommonModel
//List 검색용
public function setList_WordFilter(string $word): void
{
$this->orLike(self::TABLE . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . "." . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . '.zone_name', $word, 'both');
$this->orLike(self::TABLE . '.meta', $word, 'both');
$this->orLike(self::TABLE . '.resource', $word, 'both');

View File

@ -88,7 +88,7 @@ class AuthModel extends CommonModel
}
public function setList_WordFilter(string $word): void
{
$this->orLike(self::TABLE . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . "." . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . '.authkey', $word, 'both');
$this->orLike(self::TABLE . '.oldkey', $word, 'both');
}

View File

@ -107,7 +107,7 @@ class FirewallModel extends CommonModel
//List 검색용
public function setList_WordFilter(string $word): void
{
$this->orLike(self::TABLE . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . "." . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . '.expression', $word, 'both');
}
}

View File

@ -111,19 +111,18 @@ class RecordModel extends CommonModel
{
return $this->modify_process($entity, $formDatas);
}
//도메인이 이미 존재하는지 체크
//host가 이미 존재하는지 체크
public function isUniqueHost($zone_uid, string $host, string $content): bool
{
$this->where(self::PARENT, $zone_uid);
$this->where('host', $host);
$this->where('content', $content);
$this->where(self::TABLE . '.host', $host);
return is_null($this->first()) ? true : false;
}
//CDN값 수정 못하는 고정 Record 처리
public function setImmobilized(array $hosts)
{
if (count($hosts)) {
$this->whereIn('host', $hosts)->set(['fixed' => 'on'])->update();
$this->whereIn(self::TABLE . '.host', $hosts)->set(['fixed' => 'on'])->update();
log_message("notice", "-----set fixed Records " . implode(",", $hosts) . "처리 완료-----");
}
}
@ -133,7 +132,7 @@ class RecordModel extends CommonModel
if ($this->isIPAddress($word, 'ipv4')) {
$this->where(self::TABLE . '.content', $word);
} else {
$this->orLike(self::TABLE . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . "." . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . '.content', $word, 'both');
}
}

View File

@ -151,7 +151,7 @@ class ZoneModel extends CommonModel
$zone_uids = array_column($recorde_entitys, RecordModel::PARENT);
$this->orWhereIn(self::TABLE . '.' . self::PK, array_values($zone_uids));
} else {
$this->orLike(self::TABLE . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . "." . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . '.name_servers', $word, 'both');
$this->orLike(self::TABLE . '.original_name_servers', $word, 'both');
}

View File

@ -76,7 +76,7 @@ class MapurlModel extends CommonModel
//List 검색용
public function setList_WordFilter(string $word): void
{
$this->orLike(self::TABLE . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . "." . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . '.new_url', $word, 'both');
}
}

View File

@ -69,7 +69,7 @@ class MyLogModel extends CommonModel
//List 검색용
public function setList_WordFilter(string $word): void
{
$this->orLike(self::TABLE . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . "." . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . '.content', $word, 'both');
}
}

View File

@ -120,7 +120,7 @@ class UserModel extends CommonModel
public function setList_WordFilter(string $word): void
{
$this->orLike(self::TABLE . '.id', $word, 'both');
$this->orLike(self::TABLE . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . "." . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . '.email', $word, 'both');
}
}

View File

@ -104,7 +104,7 @@ class UserSNSModel extends CommonModel
public function setList_WordFilter(string $word): void
{
$this->orLike(self::TABLE . '.id', $word, 'both');
$this->orLike(self::TABLE . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . "." . self::TITLE, $word, 'both');
$this->orLike(self::TABLE . '.email', $word, 'both');
}
}