main | downloads | documentation | comunity | about lionframework

Class: __UIBindingManager


Class Overview

This class manages client-server UI component bindings

It contains all the __UIBinding instances created due to component rendering


See:  __UIBinding


				

Methods

[ Top ]

Method Summary

void   bind()   Binds a server end-point to a client end-point
void   bindFromClientToServer()   Binds a server end-point to a client end-point (internally, it creates a __UIBinding instance), allowing the synchronization from client to server but not the oposite way It also set the bound direction to __IEndPoing::BIND_DIRECTION_C2S to both end-points
void   bindFromServerToClient()   Binds a server end-point to a client end-point (internally, it creates a __UIBinding instance), allowing the synchronization from server to client but not the oposite way It also set the bound direction to __IEndPoing::BIND_DIRECTION_S2C to both end-points
__UIBindingManager   &getInstance()   Gets a __UIBindingManager singleton instance
__UIBinding   getUIBinding()   Gets a __UIBinding corresponding to a given identifier
bool   hasUIBinding()   Checks if a __UIBinding is already registered
void   registerUIBinding()   Register a __UIBinding instance

[ Top ]

Methods

bind


  void bind( __IServerEndPoint $sep, __IClientEndPoint $cep  )

Binds a server end-point to a client end-point


Parameters:
TypeNameDescription
__IServerEndPoint $sep The server end-point
__IClientEndPoint $cep The client end-point

Access:  public



bindFromClientToServer


  void bindFromClientToServer( __IServerEndPoint $sep, __IClientEndPoint $cep  )

Binds a server end-point to a client end-point (internally, it creates a __UIBinding instance), allowing the synchronization from client to server but not the oposite way It also set the bound direction to __IEndPoing::BIND_DIRECTION_C2S to both end-points


Parameters:
TypeNameDescription
__IServerEndPoint $sep
__IClientEndPoint $cep

Access:  public



bindFromServerToClient


  void bindFromServerToClient( __IServerEndPoint $sep, __IClientEndPoint $cep  )

Binds a server end-point to a client end-point (internally, it creates a __UIBinding instance), allowing the synchronization from server to client but not the oposite way It also set the bound direction to __IEndPoing::BIND_DIRECTION_S2C to both end-points


Parameters:
TypeNameDescription
__IServerEndPoint $sep
__IClientEndPoint $cep

Access:  public



getInstance


  __UIBindingManager &getInstance( )

Gets a __UIBindingManager singleton instance

Access:  public



getUIBinding


  __UIBinding getUIBinding( string $id  )

Gets a __UIBinding corresponding to a given identifier


Parameters:
TypeNameDescription
string $id The identifier

Access:  public



hasUIBinding


  bool hasUIBinding( string $id  )

Checks if a __UIBinding is already registered


Parameters:
TypeNameDescription
string $id The __UIBinding identifier

Access:  public



registerUIBinding


  void registerUIBinding( __UIBinding $ui_binding  )

Register a __UIBinding instance


Parameters:
TypeNameDescription
__UIBinding $ui_binding The __UIBinding to register to

Access:  public



Copyright (c) 2008, www.lionframework.org