GetAttributeValue('Options'); if(is_string($options)) $options = json_decode($options); if($options == false || !isset($options->Id)) return null; switch ($options->Id) { case 'field_summary': return (new FieldSummaryTemplate($this->FormBuilder, $this->Parent, $this->Data))->ParseContent(); case 'price_breakdown': return (new PriceBreakdownTemplate($this->FormBuilder, $this->Parent, $this->Data))->ParseContent(); } return null; } public function Render() { return 'a'; } protected function GetTemplateName() { // TODO: Implement GetTemplateName() method. } }