コード例 #1
0
ファイル: plugin.php プロジェクト: neoandrew1000/crao_journal
 function execute()
 {
     if (JRequest::getVar('json', '', 'POST', 'STRING', 2) || JRequest::getCmd('action') == 'upload') {
         $this->processXHR();
     } else {
         $this->display();
         $document =& WFDocument::getInstance();
         $document->pack();
         // create plugin view
         $view = new WFView(array('base_path' => $this->get('base_path'), 'template_path' => $this->get('template_path'), 'name' => 'link', 'layout' => $this->get('layout')));
         $view->assign('plugin', $this);
         // set body output
         $document->setBody($view->loadTemplate());
         $document->render();
     }
 }