Entry 3363

php class foclient

   

Submitted by anonymous on March 15, 2010 at 11 p.m.
Language: PHP. Code size: 376 bytes.

<?php 
class FooClient {

  const API_KEY = 345678490qw374082;
  public $m_oInstance;

  public static function getInstance() {
    if($this->m_oInstance == null) {
      $this->m_oInstance = new self();
    }
    return $this->m_oInstance();
  }

  public function toString() {
   return 'this is my test to highlight this source' . __FILE__ . ' end';
  }

}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).