コード例 #1
0
ファイル: notepad.php プロジェクト: DavidGarciaCat/eyeos
 public static function __run(AppExecutionContext $context, MMapResponse $response)
 {
     //DEBUG
     $context->setIncludeBody(true);
     $response->appendToBody(file_get_contents('./extern/js/eyeos/ui/widgets/TextArea.js'));
 }
コード例 #2
0
ファイル: init.php プロジェクト: DavidGarciaCat/eyeos
 private static function startLogin(MMapResponse $response)
 {
     // start Process
     $loginProcess = new Process('login');
     ProcManager::getInstance()->execute($loginProcess);
     // prepare context and execute application
     $loginAppDesc = new EyeosApplicationDescriptor('login');
     $appContext = new AppExecutionContext();
     $appContext->setApplicationDescriptor($loginAppDesc);
     $appContext->setIncludeBody(true);
     $appContext->setProcess($loginProcess);
     MMapGetApp::getInstance()->processRequest(MMapManager::getCurrentRequest(), $response, $appContext);
 }