51 lines
1.1 KiB
PHP
51 lines
1.1 KiB
PHP
<?php
|
|
|
|
class IndexController extends Zend_Controller_Action
|
|
{
|
|
protected $appConfig;
|
|
|
|
public function init()
|
|
{
|
|
/* Initialize action controller here */
|
|
}
|
|
|
|
public function preDispatch()
|
|
{
|
|
$auth = Zend_Auth::getInstance();
|
|
if (!$auth->hasIdentity()){
|
|
$this->_redirect('/user/login');
|
|
} else {
|
|
$bootstrap = $this->getInvokeArg('bootstrap');
|
|
$this->appConfig = $bootstrap->getOptions();
|
|
}
|
|
}
|
|
|
|
public function indexAction()
|
|
{
|
|
require_once 'Web/WebClassDoc.php';
|
|
|
|
// Gestion des types
|
|
$typeConfig = $this->appConfig['classmap']['WsEntreprise']['Type'];
|
|
$classmap = array();
|
|
foreach ( $typeConfig as $type ){
|
|
$classmap[$type] = $type;
|
|
}
|
|
|
|
$doc = new WebClassDoc('WsEntreprise', $classmap);
|
|
$tabServiceMethods = $doc->getServiceMethods();
|
|
$tabServiceTypes = $doc->getServiceTypes();
|
|
$this->view->assign('serviceMethods', $tabServiceMethods);
|
|
$this->view->assign('serviceTypes', $tabServiceTypes);
|
|
}
|
|
|
|
|
|
public function codeAction()
|
|
{
|
|
$langage = $this->_getParam('langage','');
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|