/** * Converts the data so it's suitable for the editmode * * @return mixed */ public function getDataEditmode() { if ($this->snippet instanceof Document_Snippet) { return array("id" => $this->id, "path" => $this->snippet->getFullPath()); } return null; }