init commitphpdocumentor phar, basic wrapper class, lib class

This commit is contained in:
Ulf Gebhardt 2016-02-27 10:58:21 +01:00
commit 3e9cbe234e
4 changed files with 20 additions and 0 deletions

3
autoload.inc Normal file
View File

@ -0,0 +1,3 @@
<?php
\SYSTEM\autoload::registerFolder(dirname(__FILE__),'LIB');
\LIB\lib_controll::register('\LIB\lib_phpdocumentor');

BIN
lib/phpDocumentor.phar Normal file

Binary file not shown.

6
lib/phpdocumentor.php Normal file
View File

@ -0,0 +1,6 @@
<?php
class phpdocumentor {
public static function run($inpath,$outpath){
shell_exec(dirname(__FILE__).'/phpDocumentor.phar run -d '.$inpath.' -t '.$outpath);
}
}

11
lib_phpdocumentor.php Normal file
View File

@ -0,0 +1,11 @@
<?php
namespace LIB;
class lib_phpdocumentor extends \LIB\lib_php{
public static function get_class(){
return self::class;}
public static function php_autoload(){
require_once dirname(__FILE__).'/lib/phpdocumentor.php';
return true;}
public static function version(){
return 'https://www.phpdoc.org/ phpdocumentor2';}
}