Changeset 8588 for lang/php/Diggin_Service_Munoh
- Timestamp:
- 04/01/08 01:10:56 (8 months ago)
- Files:
-
- 1 modified
-
lang/php/Diggin_Service_Munoh/Munoh.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/php/Diggin_Service_Munoh/Munoh.php
r8577 r8588 5 5 * $munoh = new Diggin_Service_Munoh(); 6 6 * var_dump($munoh->puchipuchi(array("action"=>"arai"))); 7 * 8 * $munoh = new Diggin_Service_Munoh(); 9 * echo ($munoh->getVoice()); 10 * 7 11 */ 8 12 … … 46 50 * puchipuchi! 47 51 * 48 * @param $parms52 * @param array 49 53 * @return SimpleXMLIterator 50 54 */ 51 public function puchipuchi( $parms) {55 public function puchipuchi(array $parms = null) { 52 56 $response = $this->makeRequest($parms); 53 57 return $this->_xmlResponseToSimpleXMLIterator($response); … … 60 64 * @return mixed decoded response from web service 61 65 */ 62 public function makeRequest(array $parms = array())66 public function makeRequest(array $parms = null) 63 67 { 64 68 // if previous request was made less then 1 sec ago … … 87 91 88 92 $responseBody = $response->getBody(); 89 93 90 94 $dom = new DOMDocument() ; 91 95 … … 99 103 100 104 return $dom; 105 } 106 107 public function getVoice(array $parms = null){ 108 $xml = $this->puchipuchi($parms); 109 110 return (string) $xml->voice; 101 111 } 102 112
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)