Example #1
0
<?php

/**
* @package  jelix
* @subpackage testapp
* @author   Laurent Jouanneau
* @contributor
* @copyright 2006-2008 Laurent Jouanneau
* @link        http://www.jelix.org
* @licence  http://www.gnu.org/licenses/gpl.html GNU General Public Licence, see LICENCE file
*/
require '../../../lib/jelix/init.php';
require '../../../testapp/application.init.php';
require JELIX_LIB_CORE_PATH . 'request/jClassicRequest.class.php';
$config_file = 'index/config.ini.php';
$jelix = new jCoordinator($config_file);
$jelix->process(new jClassicRequest());
Example #2
0
 /**
  * get the controller corresponding to the selector
  * @param jSelectorAct $selector
  */
 protected function getController($selector)
 {
     jLog::log("getController for " . $selector->toString());
     $ctrl = parent::getController($selector);
     jLog::log("getController: " . get_class($ctrl));
     return $ctrl;
 }
 /**
  * main method : launch the execution of the action.
  *
  * This method should be called in a Command line entry point.
  * @param  jRequestCmdline  $request the command line request object
  */
 public function process($request)
 {
     parent::process($request);
     exit($this->response->getExitCode());
 }
Example #4
0
<?php

/**
* @package  testapp
* @subpackage scripts
* @author       Laurent Jouanneau
* @contributor
* @copyright
*/
require_once '../../lib/jelix/init.php';
require_once '../application-cli.init.php';
require_once JELIX_LIB_CORE_PATH . 'request/jCmdLineRequest.class.php';
$config_file = 'cmdline/configtests.ini.php';
$jelix = new jCoordinator($config_file);
$jelix->process(new jCmdLineRequest());
 public function process($request)
 {
     $this->allErrorMessages = jBasicErrorHandler::$initErrorMessages;
     parent::process($request);
     exit($this->response->getExitCode());
 }