ui = new AAL_Admin_Ui(); $this->hooks = new AAL_Hooks(); $this->settings = new AAL_Settings(); $this->api = new AAL_API(); $this->notifications = new AAL_Notifications(); $this->help = new AAL_Help(); $this->export = new AAL_Export(); $this->privacy = new AAL_Privacy(); // set up our DB name $wpdb->activity_log = $wpdb->prefix . 'aryo_activity_log'; add_action( 'plugins_loaded', array( &$this, 'load_textdomain' ) ); } /** * Throw error on object clone * * The whole idea of the singleton design pattern is that there is a single * object therefore, we don't want the object to be cloned. * * @since 2.0.7 * @return void */ public function __clone() { // Cloning instances of the class is forbidden _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'aryo-activity-log' ), '2.0.7' ); } /** * Disable unserializing of the class * * @since 2.0.7 * @return void */ public function __wakeup() { // Unserializing instances of the class is forbidden _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'aryo-activity-log' ), '2.0.7' ); } /** * @return AAL_Main */ public static function instance() { if ( is_null( self::$_instance ) ) self::$_instance = new AAL_Main(); return self::$_instance; } } AAL_Main::instance();