PHP Wrapper for XBMC JSON-RPC and HTTP-API
#16
Hey, I've cleaned your script up a little.

I've removed the redundant config checking code mostly. Both classes now wrap an Xbmc object, which serves as a universal class to build the configuration and check whether the XBMC instance can be reached.
I've refactored the config processing as well, and should be easier now.
I now also throws custom exceptions.

https://gist.github.com/761851

GitHub's GISTs don't show diffs by defaults, but there are userscripts to do this for you. Alternatively you can just use a decent diff program or get the GIST's git repository.

Oh... and I should note that this is completely untested, it may even have syntax errors Smile
Reply


Messages In This Thread
Update... - by kaigoh - 2010-12-23, 12:31
[No subject] - by alshain - 2010-12-23, 13:15
[No subject] - by kaigoh - 2010-12-23, 13:29
[No subject] - by alshain - 2010-12-23, 13:50
Update - by kaigoh - 2010-12-23, 18:10
[No subject] - by alshain - 2010-12-27, 01:31
Updated! - by kaigoh - 2010-12-31, 23:12
[No subject] - by robweber - 2010-12-31, 23:29
[No subject] - by kaigoh - 2011-01-01, 00:25
[No subject] - by robweber - 2011-01-01, 03:07
[No subject] - by alshain - 2011-01-01, 16:16
[No subject] - by kaigoh - 2011-01-01, 17:31
[No subject] - by alshain - 2011-01-01, 18:04
[No subject] - by robweber - 2011-01-01, 18:45
[No subject] - by alshain - 2011-01-01, 19:32
[No subject] - by kaigoh - 2011-01-02, 20:43
Update - by kaigoh - 2011-01-03, 02:51
Updated - by kaigoh - 2011-01-03, 22:10
[No subject] - by alshain - 2011-01-04, 01:15
[No subject] - by kaigoh - 2011-01-04, 01:21
[No subject] - by alshain - 2011-01-04, 14:09
[No subject] - by kaigoh - 2011-01-05, 13:55
[No subject] - by alshain - 2011-01-05, 14:05
[No subject] - by neus - 2011-05-14, 19:20
[No subject] - by kaigoh - 2011-05-15, 11:48
[No subject] - by rickrude - 2011-12-28, 02:11
[No subject] - by ivarmedi - 2011-12-30, 22:15
[No subject] - by rickrude - 2011-12-31, 05:09
Logout Mark Read Team Forum Stats Members Help
PHP Wrapper for XBMC JSON-RPC and HTTP-API2