Offline Server  1.6
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
testHook Class Reference
+ Inheritance diagram for testHook:
+ Collaboration diagram for testHook:

Public Member Functions

 onBeforePushTransaction (_OfflineDomain &$domain)
 
 onAfterPushTransaction (_OfflineDomain &$domain)
 
 onAfterSaveTransaction (_OfflineDomain &$domain)
 
 onBeforePullUserDocuments (_OfflineDomain &$domain)
 
 onAfterPullSharedDocuments (_OfflineDomain &$domain)
 
 onBeforePullSharedDocuments (_OfflineDomain &$domain)
 
 onAfterPullUserDocuments (_OfflineDomain &$domain)
 
 onAfterSaveDocument (_OfflineDomain &$domain, Doc &$updatedDoc, $data=null)
 
 onPullDocument (_OfflineDomain &$domain, Doc &$doc)
 
 onBeforePushDocument (_OfflineDomain &$domain, Doc &$doc, $data=null)
 
 onAfterPushDocument (_OfflineDomain &$domain, Doc &$doc, $data=null)
 
 onBeforeSaveDocument (_OfflineDomain &$domain, Doc &$waitDoc, Doc &$refererDoc=null, $data=null)
 

Detailed Description

Definition at line 5 of file testHook.php.

Member Function Documentation

onAfterPullSharedDocuments ( _OfflineDomain &  $domain)

call after all shared documents are be transfered from server to client

Parameters
_OfflineDomain$domainthe current domain document
Returns
void

Implements DomainHook.

Definition at line 29 of file testHook.php.

onAfterPullUserDocuments ( _OfflineDomain &  $domain)

call after all user documents are be transfered from server to client

Parameters
_OfflineDomain$domainthe current domain document
Returns
void

Implements DomainHook.

Definition at line 42 of file testHook.php.

onAfterPushDocument ( _OfflineDomain &  $domain,
Doc &  $doc,
  $extraData = null 
)

call after push document from client to server the document waiting from the transation end to be recording in database

Parameters
_OfflineDomain$domainthe current domain document
Doc$docthe document to push
Object$extraDataextra data set by client
Returns
void

Implements DomainHook.

Definition at line 79 of file testHook.php.

onAfterPushTransaction ( _OfflineDomain &  $domain)

call after all documents are been transfered from client to server at the step documents waiting to be recorded

Parameters
_OfflineDomain$domainthe current domain document
Returns
void

Implements DomainHook.

Definition at line 13 of file testHook.php.

onAfterSaveDocument ( _OfflineDomain &  $domain,
Doc &  $updatedDoc,
  $extraData = null 
)

call after record document

Parameters
_OfflineDomain$domainthe current domain document
Doc$updatedDocthe updated document
Object$extraDataextra data set by client
Returns
void

Implements DomainHook.

Definition at line 47 of file testHook.php.

onAfterSaveTransaction ( _OfflineDomain &  $domain)

final call after all document records

Parameters
_OfflineDomain$domainthe current domain document
Returns
void

Implements DomainHook.

Definition at line 18 of file testHook.php.

onBeforePullSharedDocuments ( _OfflineDomain &  $domain)

call before synchronize all shared documents from server to client if return error the pull is aborted

Parameters
_OfflineDomain$domainthe current domain document
Returns
string error message

Implements DomainHook.

Definition at line 35 of file testHook.php.

onBeforePullUserDocuments ( _OfflineDomain &  $domain)

call before synchronize all user documents from server to client if return error the pull is aborted

Parameters
_OfflineDomain$domainthe current domain document
Returns
string error message

Implements DomainHook.

Definition at line 23 of file testHook.php.

onBeforePushDocument ( _OfflineDomain &  $domain,
Doc &  $doc,
  $extraData = null 
)

call before push document from client to server if return error the push is aborted

Parameters
_OfflineDomain$domainthe current domain document
Doc$docthe document to push
Object$extraDataextra data set by client
Returns
string error message

Implements DomainHook.

Definition at line 73 of file testHook.php.

onBeforePushTransaction ( _OfflineDomain &  $domain)

call before begin transaction to transfered modification from client to server if return error the transaction is aborted

Parameters
_OfflineDomain$domainthe current domain document
Returns
string error message

Implements DomainHook.

Definition at line 7 of file testHook.php.

onBeforeSaveDocument ( _OfflineDomain &  $domain,
Doc &  $waitDoc,
Doc &  $refererDoc = null,
  $extraData = null 
)

call before record document which waiting after a push request if return error the recording is aborted

Parameters
_OfflineDomain$domainthe current domain document
Doc$waitDocthe waiting document
Doc$refererDocthe referer document (can be null if it is a document creation)
Object$extraDataextra data set by client
Returns
string error message

Implements DomainHook.

Definition at line 84 of file testHook.php.

onPullDocument ( _OfflineDomain &  $domain,
Doc &  $doc 
)

call before synchronize a documents from server to client if return error the pull of the document is aborted

Parameters
_OfflineDomain$domainthe current domain document
Doc$docthe document to pull
Returns
string error message

Implements DomainHook.

Definition at line 53 of file testHook.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen - published under CC License - Dynacase