forked from aces/Loris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ffbc5db
commit 5833aca
Showing
7 changed files
with
3 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,7 @@ use LORIS\server_processes_manager as SP; | |
/** | ||
* Upload instrument data | ||
* | ||
* PHP Version 8 | ||
* | ||
* @category Main | ||
* @package LORIS | ||
* @author Loris Team <[email protected]> | ||
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 | ||
* @link https://www.github.com/aces/Loris/ | ||
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 | ||
*/ | ||
class Instrument_Data extends \NDB_Page | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,24 +3,14 @@ | |
/** | ||
* This file contains code to perform a complete MRI upload on the server. | ||
* | ||
* PHP Version 5 | ||
* | ||
* @category ServerProcessLauncher | ||
* @package Loris | ||
* @author Nicolas Brossard <[email protected]> | ||
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 | ||
* @link https://github.com/aces/Loris | ||
*/ | ||
namespace LORIS\server_processes_manager; | ||
|
||
/** | ||
* A class for holding a set of functions to parse large instrument data uploads | ||
* | ||
* @category ServerProcessLauncher | ||
* @package Loris | ||
* @author Nicolas Brossard <[email protected]> | ||
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 | ||
* @link https://github.com/aces/Loris | ||
*/ | ||
|
||
class ParseInstrumentDataServerProcess extends AbstractServerProcess | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,7 @@ | |
/** | ||
* This file contains a class used to parse csv files | ||
* | ||
* PHP Version 8 | ||
* | ||
* @category Main | ||
* @package LORIS | ||
* @author Jefferson Casimir <[email protected]> | ||
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 | ||
* @link https://www.github.com/aces/Loris/ | ||
*/ | ||
|
||
namespace LORIS; | ||
|
@@ -20,13 +14,7 @@ use SplFileObject; | |
/** | ||
* This class is used as a helper for parsing csv files | ||
* | ||
* PHP Version 8 | ||
* | ||
* @category Main | ||
* @package LORIS | ||
* @author Jefferson Casimir <[email protected]> | ||
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 | ||
* @link https://www.github.com/aces/Loris/ | ||
*/ | ||
class CSVParser | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,7 @@ | |
/** | ||
* This file contains a class used to parse Instrument Data csv files | ||
* | ||
* PHP Version 8 | ||
* | ||
* @category Main | ||
* @package LORIS | ||
* @author Jefferson Casimir <[email protected]> | ||
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 | ||
* @link https://www.github.com/aces/Loris/ | ||
*/ | ||
|
||
namespace LORIS; | ||
|
@@ -27,13 +21,7 @@ use \LORIS\Data\Dictionary\DictionaryItem as DictionaryItem; | |
/** | ||
* This class is used to parse instrument data | ||
* | ||
* PHP Version 8 | ||
* | ||
* @category Main | ||
* @package LORIS | ||
* @author Jefferson Casimir <[email protected]> | ||
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 | ||
* @link https://www.github.com/aces/Loris/ | ||
*/ | ||
class InstrumentDataParser extends CSVParser | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,25 +3,15 @@ | |
/** | ||
* Unit test for CSV Parser class | ||
* | ||
* PHP Version 8 | ||
* | ||
* @category Tests | ||
* @package Main | ||
* @author Jefferson Casimir <[email protected]> | ||
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 | ||
* @link https://www.github.com/aces/Loris | ||
*/ | ||
require_once __DIR__ . '/../../vendor/autoload.php'; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
/** | ||
* Unit test for CSV Parser class | ||
* | ||
* @category Tests | ||
* @package Main | ||
* @author Jefferson Casimir <[email protected]> | ||
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 | ||
* @link https://www.github.com/aces/Loris | ||
*/ | ||
class CSVParserTest extends TestCase | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,7 @@ | |
* Checks and update status of running processes | ||
* Intended to be periodically run from cron | ||
* | ||
* PHP Version 8 | ||
* | ||
* @category Main | ||
* @package LORIS | ||
* @author Loris Team <[email protected]> | ||
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 | ||
* @link https://www.github.com/aces/Loris/ | ||
*/ | ||
|
||
namespace LORIS\server_processes_manager; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,14 +6,9 @@ | |
* "Usage: php parse_instrument_data.php instrument fileLocation userID examinerID" | ||
* "Ex: php parse_instrument_data.php bmi /data/uploads/bmi_data.csv admin admin"; | ||
* | ||
* PHP Version 8 | ||
* | ||
* @category Main | ||
* @package Loris | ||
* @author Loris Team <[email protected]> | ||
* @license Loris license | ||
* @link https://www.github.com/aces/Loris/ | ||
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 | ||
*/ | ||
|
||
require_once __DIR__ . "/generic_includes.php"; | ||
use LORIS\InstrumentDataParser; | ||
|
||
|