/** * rainfall Endpoint */ protected function rain() { if (empty($this->id)) { return $this->_response("Location id not set. Cannot run \"rainfall\" without a valid location id.", 404); } $rain = new Rain(); $rain->setupClass($this->args, $this->access, $this->extension); $rain->userid = $this->userid; $rain->locationid = $this->id; return $rain->process(); }