Checks if a civilization is included in the Age of Kings base game.

@param int  $id  Civilization ID.
@return bool True if the given civilization exists in AoK, false
otherwise.
342472
public static function isAoKCiv($id)
    {
        return in_array($id, [
            self::BRITONS,
            self::FRANKS,
            self::GOTHS,
            self::TEUTONS,
            self::JAPANESE,
            self::CHINESE,
            self::BYZANTINES,
            self::PERSIANS,
            self::SARACENS,
            self::TURKS,
            self::VIKINGS,
            self::MONGOLS,
            self::CELTS,
        ]);
    }
560182
public function has( $id )
	{
		return \DB::select( $this->table )
			->where( 'id', $id )
			->column( 'id', $this->database ) == $id;
	}
721532
public function has($id)
    {
        $id = strtolower($id);

        return isset($this->definitions[$id]) || isset($this->aliasDefinitions[$id]) || parent::has($id);
    }
387627
public static function isStandardMap($id)
    {
        return in_array($id, [
              self::ARABIA, self::ARCHIPELAGO, self::BALTIC, self::BLACKFOREST,
              self::COASTAL, self::CONTINENTAL, self::CRATERLAKE,
              self::FORTRESS, self::GOLDRUSH, self::HIGHLAND, self::ISLANDS,
              self::MEDITERRANEAN, self::MIGRATION, self::RIVERS,
              self::TEAMISLANDS, self::SCANDINAVIA, self::MONGOLIA,
              self::YUCATAN, self::SALTMARSH, self::ARENA, self::KINGOFTHEHILL,
              self::OASIS, self::GHOSTLAKE, self::NOMAD,
              self::RANDOM,
        ]);
    }
1272573
private function exists($id)
    {
        $query = 'SELECT ' . self::DIAGNOSTIC_ID . ' FROM ' . self::DIAGNOSTIC_TABLE . ' WHERE ' . self::DIAGNOSTIC_ID . ' = ?';
        $statement = $this->persistence->query($query, array($id));
        return (boolean)$statement->rowCount();
    }
496817
public function has($id) {
		$path = $this->preparePath($id);
		$file = $this->openFile($path);
		
		if ($file === false) { // File is absent or is expired
			return false;
		}
		
		fclose($file);
		
		return true;
	}
431734
public function hasGroupId(int $id) : bool
    {
        $usergroups = $this->usergroups;

        foreach ($usergroups as $index => $usergroup) {
            if ($usergroup->group_id === $id) {
                return true;
            }
        }

        return false;
    }
869307
public function IdExists($id)
    {
        $property = $this->getUserIdProperty();
        $user = User::where($property, "=", $id)->count();
        return $user === 0 ? false : true;
    }
1358537
public function has($id)
    {
        $res = isset($this->_classes[$id]);

        if ($res == false && isset($this->_lazy_classes[$id])) {
            if (is_callable($this->_lazy_classes[$id])) {
                $this->_classes[$id] = $this->_lazy_classes[$id]($this);
            } else {
                $this->_classes[$id] = $this->_lazy_classes[$id];
            }

            $res = true;
        }

        if ($res == false && $this->isSystemClass($id)) {
            $res = $this->_loadSystemClass($id);
        }

        return $res;
    }
396759
public function isCached($id) {
        if ($id != null) {
            $id = $this->getIDfromOjb($id);
        }

        if ($id == null)
            return false;

        $cachefile = $this->getConfig('cacheDir') . '/' . utf8_decode($id);
        $cachetime = $this->getConfig('cacheTime');

        if (file_exists($cachefile) && time() - $cachetime < fileatime($cachefile)) {
            return true;
        }

        return false;
    }
156422
public function has($id)
    {
        if (is_string($id)) {
            return $this->getResolver()->hasService(
                $this->idWithoutScope($id)
            );
        }
        return false;
    }
296142
public function has($id)
    {
        if (array_key_exists($id, $this->prototype)) {
            return false !== $this->prototype[$id];
        }

        $this->prototype[$id] = $this->buildDoctrineObjectHydratorPrototype($id);

        return false !== $this->prototype[$id];
    }
1055398
public function hasRole($id)
    {
        if ($id instanceof Role) $id = $id->getKey();

        return $this->active_roles->contains('id', $id);
    }
60680
public function isAdmin($id=0)
	{
		if($id != 0){
			$admin = Member::find($id)->admin;
			return $admin === 0 ? true : false;
		}else{
			return $this->self->admin === 0 ? true : false;
		}
		
	}
626956
public function isDefined($id)
    {
        return isset($this->typemap[$id]) ? $this->typemap[$id] : false;
    }
271381
public function contains( $id ) {

		if ( isset ( $this->inMemoryCache[ $id ] ) || array_key_exists( $id, $this->inMemoryCache ) ) {
			return true;
		}

		$this->inMemoryCache[ $id ] = $this->cache->get( $id );

		return !$this->inMemoryCache[ $id ] ? false : true;
	}
261012
public function hasInstance($id) {
        $id = $this->normalizeID($id);

        return isset($this->instances[$id]);
    }