allow_edit = $allow_edit; $this->xml_file = $xml_file; } public function getSnippets() { $this->xml = simplexml_load_file($this->xml_file); $this->snippets = $this->xml->snippet; $this->total_snippets = count($this->snippets); } public function render() { $html = ''; if (empty($this->total_snippets)) { $html .= '
' . NO_SNIPPET_TO_DISPLAY . '
' . " \n"; $html .= '