summaryrefslogtreecommitdiff
path: root/demos/soap/protected/webservices/SimpleService.php
blob: 9aecbfadc8633e1457ef486aeab59df90624c5d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
class SimpleService
{
	private $errors = array();
	
	/**
	 * Highlights a string as php code
	 * @param string $input The php code to highlight
	 * @return string The highlighted text.
	 * @soapmethod
	 */
	public function highlight($input)
	{
		return highlight_string($input, true);
	}
	
	/**
	 * Simply add two operands
	 * @param int $a
	 * @param int $b
	 * @return int The result
	 * @soapmethod
	 */
	public function add($a, $b) {
	  return $a + $b;
	}
}
?>