Affichage des services
This commit is contained in:
parent
75699f9752
commit
4164fe61e6
@ -1,5 +1,31 @@
|
||||
<?php
|
||||
class Admin_ServiceController extends Zend_Controller_Action
|
||||
{
|
||||
public function indexAction(){}
|
||||
public function indexAction()
|
||||
{
|
||||
$ws = new Scores_Ws_Client('gestion', '0.4');
|
||||
$responses = $ws->getServiceList();
|
||||
$this->view->List = $responses->item;
|
||||
}
|
||||
|
||||
public function detailAction()
|
||||
{
|
||||
$request = $this->getRequest();
|
||||
$id = $request->getParam('id');
|
||||
|
||||
$ws = new Scores_Ws_Client('gestion', '0.4');
|
||||
$params = new stdClass();
|
||||
$params->id = $id;
|
||||
$responses = $ws->getService($params);
|
||||
$this->view->Info = $responses;
|
||||
|
||||
$responses = $ws->getCategory();
|
||||
$this->view->Categories = $responses->item;
|
||||
|
||||
$responses = $ws->getAccess();
|
||||
$this->view->Access = array();
|
||||
foreach ($responses->item as $item) {
|
||||
$this->view->Access[$item->Code] = $item->Label;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user