コード例 #1
0
 /**
  *  Get Instance creates a singleton class that's cached to stop duplicate instances
  */
 public static function get_instance()
 {
     if (!self::$instance) {
         self::$instance = new self();
         self::$instance->init();
     }
     return self::$instance;
 }
コード例 #2
0
function layers_register_customizer()
{
    $layers_customizer_reg = new Layers_Customizer_Regsitrar();
    $layers_customizer_reg->init();
}