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