That is awesomely code. I have yet to go through it all, but the only issue I could find so far is that changing ids.php like so:
73c73,78
< $this->request = $request;
---
> $this->request = $request;
> if ($tags !== false && !is_array($tags)) {
> throw new Exception(
> 'Tags parameter incorrect.'
> );
> }
88,92c93,94
< public function run() {
< foreach ($this->request as $key => $value) {
< $this->iterate($key, $value);
< }
<
---
> public function run() {
> array_walk($this->request, array($this,'iterate'));
105c107
< private function iterate($key, $value) {
---
> private function iterate($value, $key) {
Edit: updated diff to include error checking $tags, of course that may just be something silly, up to you.
Don't forget our IRC: irc://irc.irchighway.net/#slackers
-
WhiteAcid - your friendly, very lazy, web developer
Edited 1 time(s). Last edit at 05/02/2007 03:40AM by WhiteAcid.