Kirki_Toolkit::get_instance PHP 메소드

get_instance() 공개 정적인 메소드

Access the single instance of this class.
public static get_instance ( ) : object
리턴 object Kirki_Toolkit.
        public static function get_instance()
        {
            if (null === self::$instance) {
                self::$instance = new self();
            }
            return self::$instance;
        }

Usage Example

예제 #1
0
 /**
  * Returns the Kirki object
  */
 function Kirki()
 {
     // Make sure the class is instanciated
     $kirki = Kirki_Toolkit::get_instance();
     // The path of the current Kirki instance
     Kirki::$path = dirname(__FILE__);
     return $kirki;
 }
All Usage Examples Of Kirki_Toolkit::get_instance
Kirki_Toolkit