/** * Get latest file information * * @return \IPS\membermap\Markers\Markers|NULL */ public function lastMarker() { if (!$this->last_marker_id) { return NULL; } try { $latestMarker = \IPS\membermap\Markers\Markers::load($this->last_marker_id); } catch (\OutOfRangeException $e) { $latestMarker = NULL; } return $latestMarker; }
/** * Attachment lookup * * @param int|null $id1 Primary ID * @param int|null $id2 Secondary ID * @param string|null $id3 Arbitrary data * @return \IPS\Http\Url|\IPS\Content|\IPS\Node\Model * @throws \LogicException */ public function attachmentLookup($id1, $id2, $id3) { return \IPS\membermap\Markers\Markers::load($id1)->url(); }