Exemple #1
0
<?php

$what = '';
if (array_key_exists(2, $_SERVER['argv'])) {
    $what = $_SERVER['argv'][2];
    if (array_key_exists(3, $_SERVER['argv'])) {
        $classname = $_SERVER['argv'][3];
    }
}
$helper = new ClassHelper();
switch ($what) {
    case 'core':
        $helper->setBase(CORE_PATH);
        $helper->create('Core', $classname);
        break;
    case '':
        Core_Console::output(file_get_contents(HELPTEXT_PATH . '/class.txt'));
        break;
    default:
        $helper->create('App', $classname);
        break;
}
class ClassHelper
{
    public function create($type, $path)
    {
    }
}