1 | <?php |
||
32 | class Asterisk extends AriClientAware |
||
33 | { |
||
34 | const INFO_BUILD = 'build'; |
||
35 | const INFO_SYSTEM = 'system'; |
||
36 | const INFO_CONFIG = 'config'; |
||
37 | const INFO_STATUS = 'status'; |
||
38 | |||
39 | /** |
||
40 | * Gets Asterisk system information. |
||
41 | * |
||
42 | * @param string $only Filter information returned. Allows comma separated values. Allowed values: build, system, config, status. |
||
43 | * @return AsteriskInfo |
||
44 | */ |
||
45 | 2 | public function getInfo($only = null) |
|
56 | |||
57 | /** |
||
58 | * Get the value of a global variable. |
||
59 | * |
||
60 | * @param string $variable (required) The variable to get |
||
61 | * @return Variable |
||
62 | * @throws InvalidParameterException |
||
63 | */ |
||
64 | 1 | public function getVariable($variable) |
|
76 | |||
77 | /** |
||
78 | * Set the value of a global variable. |
||
79 | * |
||
80 | * @param string $variable (required) The variable to set |
||
81 | * @param string $value The value to set the variable to |
||
82 | * @throws InvalidParameterException |
||
83 | */ |
||
84 | 2 | public function setVariable($variable, $value = null) |
|
97 | |||
98 | } |
||
99 |