コード例 #1
0
 /** Get a Caller instance.
  *
  * @return	Caller	A Caller instance.
  * @static
  * @access	public
  */
 public static function getInstance()
 {
     if (!is_object(self::$instance)) {
         self::$instance = new SocketCaller();
     }
     return self::$instance;
 }
コード例 #2
0
 /** Get a {@link SocketCaller} instance.
  *
  * @return	SocketCaller	A {@link SocketCaller} instance.
  * @static
  * @access	public
  */
 public static function getSocketCaller()
 {
     return SocketCaller::getInstance();
 }