/** * Creates or returns an instance of this class. * @since 0.1.0 * @return GA_Top_Content A single instance of this class. */ public static function get_instance() { if (null === self::$single_instance) { self::$single_instance = new self(); } return self::$single_instance; }
public function __construct() { $this->gatc = GA_Top_Content::get_instance(); parent::__construct('Dsgnwrks_Google_Top_Posts_Widgets', 'Google Analytics Top Content', array('classname' => 'google_top_posts', 'description' => 'Show top posts from Google Analytics')); }