Note:
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
Méthode | Description | |
---|---|---|
__construct ( ) | ||
osfPull ( ) | Download resources from the OSF server onto the experiment server | |
processPOST ( ) | Process the HTTP POST request sent to this experiment server. |
Méthode | Description | |
---|---|---|
addResource ( {String} $name ) | Manually add a resource to the resource manager | |
cleanString ( {String} $string ) : {String} | Clean strings by removing all characters except A-Z, a-z, 0-9, dots, hyphens and spaces and replacing sequences of spaces with underscore | |
expUpload ( ) | Upload data to the project's resource directory on the local experiment server | |
getOsfDataDirectoryLink ( ) | Get project's data folder URL on OSF server | |
getOsfDownloadLinks ( ) | Get download links for all available resources in the project's OSF resource directory | |
getOsfResource ( {String} $name ) | Get resource from OSF server | |
getOsfResourceDirectoryLink ( ) | Get project's resource directory URL on OSF server | |
getOsfStorageProvider ( ) | Get storage provider and upload URL of project on OSF server | |
listLocalResources ( ) : {String} | List the resources available in the resource directory of the local experiment server | |
osfUpload ( ) | Upload data to the project's resource directory on the local experiment server and upload them to OSF | |
saveDataToLocalFile ( {String} $session, {Object} $data, {{('RESULT' | 'LOG')}} $dataType ) : {String} | Save data to a file on the local experiment server | |
sendEmail ( ) | Send an email to the experimenter. | |
showSynchronisationGUI ( ) | Show the experiment server synchronisation GUI | |
uploadLocalFileToOSF ( {String} $localFileName, {String} $OSFFileName ) : {String} | Upload a file from the local experiment server onto the OSF server |
Download all available resources from the resource directory of the project on the OSF server onto the experiment server's resource directory
public osfPull ( ) |
Get the 'command' variable passed to the experiment server via a HTTP POST method
public processPOST ( ) |