Ejemplo n.º 1
0
 public function testBuilder()
 {
     $builder = new Builder();
     $builder->load_runfile($this->getFixture('Default.php'));
     $this->assertSame($builder, builder());
     // assert there's a single task "default"
 }
Ejemplo n.º 2
0
function hide()
{
    builder()->hide();
}
Ejemplo n.º 3
0
function invoke($task_name)
{
    $application = builder()->get_application();
    $application->invoke($task_name);
}
Ejemplo n.º 4
0
function desc($description)
{
    builder()->desc($description);
}
Ejemplo n.º 5
0
        builder("3");
    }
    if (strlen($_POST['num4']) > 0) {
        builder("4");
    }
    if (strlen($_POST['num5']) > 0) {
        builder("5");
    }
    if (strlen($_POST['num6']) > 0) {
        builder("6");
    }
    if (strlen($_POST['num7']) > 0) {
        builder("7");
    }
    if (strlen($_POST['num8']) > 0) {
        builder("8");
    }
    echo "</textarea>";
}
function opt($cmds, $sel)
{
    //adding all the different commands to the dropdown
    foreach ($cmds as $value) {
        $value = stripcslashes($value);
        $line = "<option value='{$value}'";
        if ($value == $sel) {
            $line = $line . " selected ";
        }
        $line = $line . ">" . $value . "</option>";
        echo $line;
    }