30 const SIGNATURE =
"S";
34 const COPYRIGHT =
"C";
40 const KEYWORDOTHERS =
"KW";
41 const UNDEFINED =
"any";
85 function __construct($start, $end, $type, $refStart=-1, $refEnd=-1, $infoText =
"", $htmlElement = null)
87 $this->
start = $start;
90 $this->refStart = $refStart;
91 $this->refEnd = $refEnd;
92 $this->infoText = $infoText;
93 $this->htmlElement = $htmlElement;
95 $this->licenseId = null;
128 $this->licenseId = $licenseId;
136 return $this->licenseId;
144 return $this->licenseId != null;
152 return $this->licenseId == null;
161 return $this->refStart;
164 private function hasRef()
174 return $this->refEnd;
182 return max(0, $this->refEnd - $this->refStart);
190 $this->infoText = $infoText;
198 return $this->infoText;
206 return $this->htmlElement;
210 public function __toString()
213 . $this->
start .
"-" . $this->end
214 .
", type=" . $this->type
215 .
", id=" . $this->licenseId .
216 ($this->hasRef() ?
":". $this->refStart .
"-" . $this->refEnd :
"")
__construct($start, $end, $type, $refStart=-1, $refEnd=-1, $infoText="", $htmlElement=null)
start($application)
start the application Assumes application is restartable via /etc/init.d/<script>. The application passed in should match the script name in /etc/init.d
FUNCTION int max(int permGroup, int permPublic)
Get the maximum group privilege.