Beispiel #1
0
 /**
  * @see FWS_Module::init()
  *
  * @param FWS_Document $doc
  */
 public function init($doc)
 {
     parent::init($doc);
     $renderer = $doc->use_default_renderer();
     $renderer->add_breadcrumb('Vars', PC_URL::build_mod_url());
     if (FWS_Props::get()->project() === null) {
         $this->report_error(FWS_Document_Messages::ERROR, 'Please create and select a project first!');
     }
 }
 /**
  * @see FWS_Module::init($doc)
  *
  * @param FWS_Document $doc
  */
 public function init($doc)
 {
     parent::init($doc);
     $renderer = $doc->use_default_renderer();
     $classname = get_class($this->sub);
     $lastus = strrpos($classname, '_');
     $prevlastus = strrpos(FWS_String::substr($classname, 0, $lastus), '_');
     $renderer->set_template(FWS_String::strtolower(FWS_String::substr($classname, $prevlastus + 1)) . '.htm');
 }
Beispiel #3
0
 /**
  * @see FWS_Module::init()
  *
  * @param FWS_Document $doc
  */
 public function init($doc)
 {
     parent::init($doc);
     $renderer = $doc->use_default_renderer();
     $input = FWS_Props::get()->input();
     $line = $input->get_var('line', 'get', FWS_Input::INTEGER);
     $url = PC_URL::get_mod_url();
     if (isset($_GET['path'])) {
         $url->set('path', $_GET['path']);
     }
     $url->set('line', $line);
     $renderer->add_breadcrumb('View file', $url->to_url());
 }
Beispiel #4
0
 /**
  * @see FWS_Module::init($doc)
  * 
  * @param PC_Document $doc
  */
 public function init($doc)
 {
     parent::init($doc);
     $input = FWS_Props::get()->input();
     $renderer = $doc->use_default_renderer();
     $renderer->add_action(PC_ACTION_EDIT_PROJECT, 'save');
     $renderer->add_action(PC_ACTION_DELETE_REQ, 'delete_req');
     $id = $input->get_var('id', 'get', FWS_Input::INTEGER);
     $editurl = PC_URL::get_mod_url('edit_project');
     $editurl->set('id', $id);
     $renderer->add_breadcrumb('Projects', PC_URL::build_mod_url('projects'));
     $renderer->add_breadcrumb('Edit', $editurl->to_url());
 }
Beispiel #5
0
 /**
  * @see FWS_Module::init()
  *
  * @param FWS_Document $doc
  */
 public function init($doc)
 {
     parent::init($doc);
     $doc->use_raw_renderer();
 }
Beispiel #6
0
 /**
  * @see FWS_Module::init()
  *
  * @param FWS_Document $doc
  */
 public function init($doc)
 {
     parent::init($doc);
     $doc->use_default_renderer();
 }