/** * Gets the objects in this folder */ function getObjects() { if ($this->objects == null) { $objectMapper = new ObjectMapper(); $this->objects = $objectMapper->findByFolder($this->getId()); } return $this->objects; }