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