_text(); break; case 'image': $this->_image(); break; case 'voice': $this->_voice(); break; case 'video': $this->_video(); break; case 'music': $this->_music(); break; case 'news': $this->_news(); break; default: $this->_text(); } } private function _text(){ $this->tpl=" %s "; } private function _image(){ $this->tpl=" %s "; } private function _voice(){ $this->tpl=" %s "; } private function _video(){ $this->tpl=" %s "; } private function _music(){ $this->tpl=" %s <![CDATA[%s]]> "; } private function _news(){ $this->tpl=" %s 1 <![CDATA[%s]]> "; } public function getTpl(){ return $this->tpl; } }