summaryrefslogtreecommitdiff
path: root/demos/soap/protected/webservices/SimpleService.php
blob: ca0821527bd480c34f7baf36612ff0edd51a676c (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
29
<?php

class SimpleService
{
	/**
	 * 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;
	}
}

?>