/**
  * Returns and/or create the single instance of this class.  
  *
  * @return 	Charitable_Notices
  * @access  public
  * @since 	1.0.0
  */
 public static function get_instance()
 {
     if (is_null(self::$instance)) {
         self::$instance = new Charitable_Notices();
     }
     return self::$instance;
 }
/**
 * Returns the Charitable_Notices class instance.
 *
 * @return 	Charitable_Notices
 * @since 	1.0.0
 */
function charitable_get_notices()
{
    return Charitable_Notices::get_instance();
}
Esempio n. 3
0
 function test_get_instance()
 {
     $this->assertEquals($this->notices, Charitable_Notices::get_instance());
 }