All pastes #390353 Raw Edit

Stuff

public text v1 · immutable
·published 2007-03-11 11:48 UTC
rendered paste body
<?php

class batch {
  $commands = array(
    'BREAK' => create_function('$argv', 'if (is_null($argv)) { return "Break is $this->$commands[BREAK](ON)\n\n"; } elseif ($argv == "ON" || $argv == "OFF") { return "\n\n"; } else { return "Must specify ON or OFF\n\n"; }'),
    'BUFFERS' => create_function('$argv', ''),
    'CALL' => create_function(),
    'CHCP' => create_function(),
    'CHDIR' => create_function(),
    'CHOICE' => create_function(),
    'CLS' => create_function(),
    'COMMAND' => create_function(),
    'COMP' => create_function(),
    'COPY' => create_function(),
    'COUNTRY' => create_function(),
    'CTTY' => create_function(),
    'DATE' => create_function(),
    'DEL' => create_function(),
    'DEVICE' => create_function(),
    'DEVICEHIGH' => create_function(),
    'DIR' => create_function(),
    'DOS' => create_function(),
    'DRIVPARM' => create_function(),
    'ECHO' => create_function(),
    'EXIT' => create_function(),
    'FCBS' => create_function(),
    'FILES' => create_function(),
    'FOR' => create_function(),
    'GOTO' => create_function(),
    'IF' => create_function(),
    'INCLUDE' => create_function(),
    'INSTALL' => create_function(),
    'LASTDRIVE' => create_function(),
    'LOADFIX' => create_function(),
    'LOADHIGH' => create_function(),
    'MENUCOLOR' => create_function(),
    'MENUDEFAULT' => create_function(),
    'MENUITEM' => create_function(),
    'MKDIR' => create_function(),
    'MOVE' => create_function(),
    'NUMLOCK' => create_function(),
    'PATH' => create_function(),
    'PAUSE' => create_function(),
    'PROMPT' => create_function(),
    'REM' => create_function(),
    'RENAME' => create_function(),
    'RMDIR' => create_function(),
    'SET' => create_function(),
    'SHELL' => create_function(),
    'SHIFT' => create_function(),
    'STACKS' => create_function(),
    'SUBMENU' => create_function(),
    'SWITCHES' => create_function(),
    'TIME' => create_function(),
    'TYPE' => create_function(),
    'VER' => create_function(),
    'VERIFY' => create_function(),
    'VOL' => create_function()
  );

}

$obj['batch'] = new batch;

echo $obj['batch']->commands[BREAK('ON')];
?>