Пример #1
0
 private function mapView()
 {
     $form = Form::load('sys.views.rsml_test.RsmlMapForm');
     if ($form->validate()) {
         $view = new RsmlView(Application::param('path'));
         $this->map = $view->documentObject();
     }
 }
Пример #2
0
 function display($disp)
 {
     foreach ($this->meta_widgets as $widg) {
         $widg->registerJavascript($disp);
     }
     $disp->displayPage(Application::CACHE . RsmlView::cachePath($this->initPath()) . '.t');
 }
Пример #3
0
 /**
  * Add a view to the display
  *
  * When adding a view, use the RocketSled pathing standard:
  * <code>package.sub_package.ViewName</code>
  * which would correspond to /packages/package/sub_packageview_name.rsml.php
  * @param name - the name of the view. this will be used as the 'name' attribute
  *               of the <view> node in your RSML document
  * @see RsmlView
  */
 public function addView($name, $value)
 {
     $view = RsmlView::load($value);
     $this->views[$name] = $view;
     $this->getWidgets($view);
 }
 function importPatternNode($util)
 {
     if (!count($this->pattern_name_stack) && !$this->stackContains('RsmlConditional')) {
         $name = $util->attributeValue('name', XmlUtility::OPTIONAL);
         $data = $util->attributeValue('data');
         $parent = $util->attributeValue('parent', XmlUtility::OPTIONAL);
         if (!$name) {
             $name = $data;
         }
         if ($this->current_pattern_name && $parent != 'none' && !$parent) {
             $parent_name = $this->current_pattern_name;
         } else {
             $parent_name = '';
         }
         $this->start(new RemotePattern($util->attributes(), $parent_name));
         $this->pattern_name_stack[] = $name;
         $this->current_pattern_name = $name;
     } else {
         RsmlView::importPatternNode($util);
     }
 }