src/fdisotto/CACApi.php
private function _make_power_operation($sid, $action) {
		$data = $this->_data;

		$data['sid'] = $sid;
		$data['action'] = $action;

		try {
			return $this->_make_request(self::POWER_OP_URL, $data, 'POST');
		} catch (\Exception $e) {
			throw new \Exception('Something gone wrong', 0, $e);
		}

		return true;
	}
private function _make_power_operation($sid, $action) {
		$data = $this->_data;

		$data['sid'] = $sid;
		$data['action'] = $action;

		try {
			return $this->_make_request(self::POWER_OP_URL, $data, 'POST');
		} catch (\Exception $e) {
			throw new \Exception('Something gone wrong', 0, $e);
		}

		return true;
	}
private function _make_power_operation ( $ sid , $ action ) { $ data = $ this -> _data ; $ data [ 'sid' ] = $ sid ; $ data [ 'action' ] = $ action ; try { return $ this -> _make_request ( self :: POWER_OP_URL , $ data , 'POST' ) ; } catch ( \ Exception $ e ) { throw new \ Exception ( 'Something gone wrong' , 0 , $ e ) ; } return true ; }
Perform the power operation on the server

@param int $sid Server ID
@param string $action poweron, poweroff, reset request
@return bool
Perform the power operation on the server