/** * return class $instance */ public static function get_instance() { if (self::$instance == null) { self::$instance = new AE_Posts(); } return self::$instance; }
/** * contruct init post type */ function __construct() { self::$objects = array('post' => AE_Posts::get_instance()); }