-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup and minor changes/improvements
Added individual addon exception. Added support for signature properties in batch processes. Removed $id$ placeholder in DocBlock comments. Typos.
- Loading branch information
Showing
11 changed files
with
134 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?php | ||
/** | ||
* This file is part of the demo pacakge of the SetaPDF-Signer Component | ||
* | ||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com) | ||
* @category SetaPDF | ||
* @package SetaPDF_Signer | ||
* @license http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
|
||
/** | ||
* Exception class for Swisscom AIS webservice. | ||
* | ||
* @copyright Copyright (c) 2015 Setasign - Jan Slabon (http://www.setasign.com) | ||
* @category SetaPDF | ||
* @package SetaPDF_Signer | ||
* @license http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
class SetaPDF_Signer_SwisscomAIS_Exception extends SetaPDF_Signer_Exception | ||
{ | ||
/** | ||
* @var stdClass|array | ||
*/ | ||
protected $_request; | ||
|
||
/** | ||
* @var stdClass | ||
*/ | ||
protected $_result; | ||
|
||
/** | ||
* Set the request data. | ||
* | ||
* @param $request | ||
*/ | ||
public function setRequest($request) | ||
{ | ||
$this->_request = $request; | ||
} | ||
|
||
/** | ||
* Get the request data. | ||
* | ||
* @return array|stdClass | ||
*/ | ||
public function getRequest() | ||
{ | ||
return $this->_request; | ||
} | ||
|
||
/** | ||
* Set the result of the webservice call. | ||
* | ||
* @param stdClass $result | ||
*/ | ||
public function setResult($result) | ||
{ | ||
$this->_result = $result; | ||
} | ||
|
||
/** | ||
* Get the result of the webservice call. | ||
* @return stdClass | ||
*/ | ||
public function getResult() | ||
{ | ||
require $this->_result; | ||
} | ||
|
||
/** | ||
* Get the Mobile ID User Assistance URL (if available). | ||
* | ||
* @return null|string | ||
*/ | ||
public function getMobileIdUserAssistanceUrl() | ||
{ | ||
$lastResult = $this->getResult(); | ||
if (isset($lastResult->SignResponse->OptionalOutputs->MobileIDFault->Detail->UserAssistance->PortalUrl)) { | ||
return $lastResult->SignResponse->OptionalOutputs->MobileIDFault->Detail->UserAssistance->PortalUrl; | ||
} | ||
|
||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters