Lines Matching refs:id

85             $this->updateSpatialIndex($page ['id']);
92 $this->indexImage($medium['id']);
101 * @param string $id
105 final public function updateSpatialIndex(string $id): bool
107 $geotags = p_get_metadata($id, 'geo');
114 Logger::debug("Geo metadata found for page $id", $geotags);
118 return $this->addToIndex($geohash, $id);
122 * Store the hash/id entry in the index.
125 * @param string $id
126 * page or media id
129 private function addToIndex(string $geohash, string $id): bool
134 Logger::debug("Geohash $geohash not in index, just add $id.");
135 $pageIds [] = $id;
139 $knownHashes = $this->findHashesForId($id, $this->spatial_idx);
141 Logger::debug("No index record found for document $id, adding it to the index.");
143 $pageIds [] = $id;
149 Logger::debug("Document $id was found in index and has the same geohash, nothing to do.");
154 Logger::debug("Document/media $id was found in index but has different geohash (it moved).");
156 Logger::debug("Known id's for this hash:", $knownIds);
158 $i = array_search($id, $knownIds);
164 $pageIds [] = $id;
175 * @param String $id
180 final public function findHashesForId(string $id, array $index): array
184 if (in_array($id, $docIds)) {
188 Logger::debug("Found the following hashes for $id (should only be 1)", $hashes);
204 * a Dokuwiki image id
236 * @param string $id
240 final public function getCoordsFromExif(string $id): Point|false
242 $exif = exif_read_data(mediaFN($id), 0, true);
301 * @param string $id document ID
303 final public function deleteFromIndex(string $id): void
306 $knownHashes = $this->findHashesForId($id, $this->spatial_idx);
314 $i = array_search($id, $knownIds);