Blame view

application/block_base.class.php 432 Bytes
8d65d0ce   andryeyev   init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  <?php
  
  Abstract Class baseBlock {
  
  /*
   * @registry object
   */
  protected $tpl;
  
  
  function __construct($tpl,&$error,$lang,$url,$getParam,$postParam) {
          $this->tpl = $tpl;
          $this->error = &$error;
          $this->lang = $lang;
          $this->url = $url;
          $this->getParam = $getParam;
          $this->postParam = $postParam;
  }
  
  
  
  /**
   * @all controllers must contain an index method
   */
  abstract function run();
  }
  
  ?>