apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: System_Socket_Observer

Source Location: /System_Socket-0.4.0/Socket/Observer.php

Class Overview


System_Socket_Observer


Author(s):

Version:

  • $Revision: 1.5 $

Variables

Methods


Child classes:

System_Socket_Debugger
System_Socket_Debugger

Inherited Variables

Inherited Methods


Class Details

[line 37]
System_Socket_Observer

Base class for observers which handles the unique hash code generation and defines a thight base API. A class implementing/extending System_Socket_Observer must provide an uniqe hash code retrievable by a getHashCode() method and must also provide a notify() method. Observer objects may be chained because System_Socket_Observer are also observable.

  • Author: Michael Wallner <mike@php.net>
  • Version: $Revision: 1.5 $
  • Access: public


[ Top ]


Class Variables

$hashCode =

[line 42]

  • Access: protected

Type:   mixed


[ Top ]

$observers = array()

[line 47]

  • Access: protected

Type:   mixed


[ Top ]



Method Detail

System_Socket_Observer (Constructor)   [line 55]

object System_Socket_Observer System_Socket_Observer( )

Constructor
  • Access: protected

[ Top ]

attach   [line 124]

bool attach( &$observer, object System_Socket_Observer $observer)

Attach observer
  • Access: public

Parameters:

object System_Socket_Observer   $observer   — 
   &$observer   — 

[ Top ]

attached   [line 152]

bool attached( &$observer, object System_Socket_Observer $observer)

Check if a specific observer is already attached
  • Access: public

Parameters:

object System_Socket_Observer   $observer   — 
   &$observer   — 

[ Top ]

detach   [line 140]

void detach( &$observer, object System_Socket_Observer $observer)

Detach observer
  • Access: public

Parameters:

object System_Socket_Observer   $observer   — 
   &$observer   — 

[ Top ]

generateHashCode   [line 75]

void generateHashCode( )

Generate hash code
  • Access: protected

[ Top ]

getHashCode   [line 112]

string getHashCode( )

Get hash code
  • Access: public

[ Top ]

notify   [line 98]

void notify( array $note)

Notify
  • Abstract:
  • Access: protected

Overridden in child classes as:

System_Socket_Debugger::notify()
Notify

Parameters:

array   $note   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 10:15:56 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.