Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
xSpy v0.4 Review

Please note that this is pretty much a negative criticism post, rather than a balanced review as mentioned in this thread. Also be aware that stuff posted here may be highly subjective.
Please feel free to criticise this post, however.

Plugin Reviewed: xSpy Plugin!
Plugin Version: 0.4 (last updated 20th June 2010)
Plugin Author: flash.tato
Author Message
flash.tato Offline
Junior Member
**
Posts: 11
Joined: Jun 2010
Post: #6
RE: xSpy v0.4 Review
Zinga i'm rewriting from scratch the plugin.

What do you think about this approach?

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class xSpyServer
{

	
	static $instance;

	function __construct()
	{
		self::$instance =& $this;
	}
}

function &xspy_server_get_instance()
{
	if(xSpyServer::$instance instanceof xSpyServer)
		return xSpyServer::$instance;
	else
		return new xSpyServer();
}


The concept is that there is a class who offers methods for inserting new events, cleaning table, fetching most recent events.
My idea was to allow 3rd party plugin to add its own handler so it can add new things to be spyed but i want to be sure that the class is istantiated one time only, what do you think?

(This post was last modified: 07-03-2010 08:17 AM by flash.tato.)
07-03-2010 08:02 AM
Find all posts by this user Quote this message in a reply


Messages In This Thread
xSpy v0.4 Review - ZiNgA BuRgA - 06-25-2010, 04:04 PM
RE: xSpy v0.4 Review - flash.tato - 06-25-2010, 08:47 PM
RE: xSpy v0.4 Review - ZiNgA BuRgA - 06-25-2010, 09:13 PM
RE: xSpy v0.4 Review - flash.tato - 06-25-2010, 09:23 PM
RE: xSpy v0.4 Review - ZiNgA BuRgA - 06-26-2010, 09:16 AM
RE: xSpy v0.4 Review - flash.tato - 07-03-2010 08:02 AM
RE: xSpy v0.4 Review - ZiNgA BuRgA - 07-03-2010, 10:14 AM
RE: xSpy v0.4 Review - flash.tato - 07-03-2010, 06:47 PM
RE: xSpy v0.4 Review - ZiNgA BuRgA - 07-03-2010, 07:04 PM
RE: xSpy v0.4 Review - flash.tato - 07-03-2010, 08:56 PM
RE: xSpy v0.4 Review - ZiNgA BuRgA - 07-03-2010, 10:10 PM

Forum Jump: