/** * @see EPSInterface::listCommonObjects() */ public function listCommonObjects($sessionId, $name, $siteId, $language) { try { $listCommonObjectsStdObject = new stdClass(); $listCommonObjectsStdObject->sessionId = $sessionId; $listCommonObjectsStdObject->name = $name; $listCommonObjectsStdObject->siteId = $siteId; $listCommonObjectsStdObject->language = $language; $response = parent::listCommonObjects($listCommonObjectsStdObject); $arrListCommonObjects = array(); if (isset($response->return)) { $arrStdListCommonObjects = $response->return; if (is_array($arrStdListCommonObjects)) { for ($i = 0; $i < count($arrStdListCommonObjects); $i++) { $arrListCommonObjects[$i] = new ResultCommonObject($arrStdListCommonObjects[$i]); } } else { $arrListCommonObjects[0] = new ResultCommonObject($arrStdListCommonObjects); } } return $arrListCommonObjects; } catch (SoapFault $sf) { throw new ServerException($sf); } }