Example #1
0
 /**
  * Get or create an instance of MslsTaxonomy
  * @todo Until PHP 5.2 is not longer the minimum for WordPress ...
  * @return MslsTaxonomy
  */
 public static function instance()
 {
     if (!($obj = MslsRegistry::get_object('MslsTaxonomy'))) {
         $obj = new self();
         MslsRegistry::set_object('MslsTaxonomy', $obj);
     }
     return $obj;
 }
Example #2
0
 /**
  * Get or create an instance of MslsPostType
  * @todo Until PHP 5.2 is not longer the minimum for WordPress ...
  * @return MslsBlogPostType
  */
 public static function instance()
 {
     if (!($obj = MslsRegistry::get_object('MslsBlogPostType'))) {
         $obj = new self();
         MslsRegistry::set_object('MslsBlogPostType', $obj);
     }
     return $obj;
 }