source: Dev/trunk/src/client/util/docscripts/lib/parser/DojoBlock.php

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 766 bytes
Line 
1<?php
2
3abstract class DojoBlock
4{
5  protected $package;
6  protected $destroyed = false;
7  public $start;
8  public $end;
9
10  public function __construct($package, $line_number = false, $position = false){
11    $this->package = $package;
12    if($line_number !== false && $position !== false){
13      $this->setStart($line_number, $position);
14    }
15  }
16 
17  public function destroy() {
18  }
19 
20  public function __destruct() {
21    unset($this->package);
22    unset($this->start);
23    unset($this->end);
24  }
25 
26  public function setStart($line_number, $position){
27    $this->start = array($line_number, $position);
28  }
29 
30  protected function setEnd($line_number, $position){
31      $this->end = array($line_number, $position);
32  }
33 
34  public abstract function build();
35}
36
37?>
Note: See TracBrowser for help on using the repository browser.