44 lines
805 B
PHP
44 lines
805 B
PHP
<?php
|
|
|
|
/**
|
|
*
|
|
* Modul testowy soap
|
|
*
|
|
*/
|
|
class SoapController extends MainController implements ControllerInterface {
|
|
|
|
/**
|
|
* Strona glowna
|
|
*
|
|
*/
|
|
public function IndexAction($param) {
|
|
//$result = SoapCommunication::getTest();
|
|
//$result = SoapCommunication::getLogin();
|
|
$soapComm = new SoapCommunication();
|
|
$result = SoapCommunication::getProductList();
|
|
Utils::ArrayDisplay('jeah!');
|
|
Utils::ArrayDisplay($result);
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Czesc wspolna wszystkich podstron
|
|
*
|
|
*/
|
|
public function PreDispatch($param) {
|
|
|
|
//$this->AddScript('swfobject.js');
|
|
$this->smarty->assign('lang', $param['lang']);
|
|
$this->Run($param);
|
|
|
|
}
|
|
|
|
public function PostDispatch($param) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|