* Runs a command requested from an action of the command line
*
* @return
* @access public
*/
staticpublicfunctionRunCommand(){
echo"\n";
switch(self::$command){
caseself::COMMAND_SIMULATE:
self::$syncher->Simulate();
break;
caseself::COMMAND_SYNC:
self::$syncher->Sync();
break;
caseself::COMMAND_SYNC_ONE:
self::$syncher->SyncOne(self::$uniqueId);
break;
caseself::COMMAND_CLEARALL:
echo"Are you sure you want to remove all chunks and data from the public folder. ALL GAB data will be removed from ALL Outlook instances [y/N]: ";
$confirm=strtolower(trim(fgets(STDIN)));
if($confirm==='y'||$confirm==='yes')
self::$syncher->ClearAll();
else
echo"Aborted!\n";
break;
caseself::COMMAND_DELETEALL:
echo"Are you sure you want to remove all chunks and data from the public folder and delete it? ALL GAB data will be removed from ALL Outlook instances [y/N]: ";