/** * Constructor.... */ public function __construct() { parent::__construct(); //save current instance in static var self::$instance = $this; }