public function findTaskById($id) { $xml = $this->getURL("/tasks/{$id}.xml"); $this->checkForErrors("Task"); $task_xml = simplexml_load_string($xml); $task = new HighriseTask($this); $task->loadFromXMLObject($task_xml); return $task; }