Esempio n. 1
0
 function getResources(Ajde_View &$view)
 {
     /* @var $view Ajde_Template_Parser_Phtml_Helper */
     // Library files
     $view->requireJsPublic('_core/crud/editor/jwysiwyg/jwysiwyg.js');
     $view->requireCssPublic('_core/crud/editor/jwysiwyg/jwysiwyg.css');
     // Controller
     $view->requireJs('crud/field/text/jwysiwyg', 'html', MODULE_DIR . '_core/', Ajde_Document_Format_Html::RESOURCE_POSITION_LAST);
 }
Esempio n. 2
0
 function getResources(Ajde_View &$view)
 {
     /* @var $view Ajde_Template_Parser_Phtml_Helper */
     // Controller
     $view->requireJs('crud/field/text/aloha', 'html', MODULE_DIR . '_core/', Html::RESOURCE_POSITION_LAST);
     // Library files
     $plugins = array('common/format', 'common/highlighteditables', 'common/contenthandler', 'common/list', 'common/link', 'common/table', 'common/undo', 'common/paste');
     $view->requireJsPublic('core/aloha/ajde.js', Html::RESOURCE_POSITION_LAST);
     $view->requireJsPublic('core/aloha/lib/aloha.js', Html::RESOURCE_POSITION_LAST, 'data-aloha-plugins="' . implode(',', $plugins) . '"');
     $view->requireCssPublic('core/aloha/aloha.css');
 }
 function check()
 {
     // Register models
     Ajde_Model::register($this);
     // Ensure right view when coming from other action
     $this->setView(Ajde_View::fromRoute('browser/check'));
     // Get browsers
     $browsers = new BrowserCollection();
     $browsers->orderBy("sort");
     $browsers->load();
     // Set vars and return
     $this->getView()->assign("browsers", $browsers);
     return $this->render();
 }
Esempio n. 4
0
 public function loadTemplate()
 {
     throw new Ajde_Core_Exception_Deprecated();
     $view = Ajde_View::fromController($this);
     return $view->getContents();
 }
Esempio n. 5
0
 public function getOverviewHtml()
 {
     if ($this->hasLoaded()) {
         $view = new Ajde_View(MODULE_DIR . 'shop/', 'transaction/view');
         $view->assign('source', 'id');
         $view->assign('transaction', $this);
         return $view->render();
     } else {
         return 'Order not found';
     }
 }