Class ReferralBatchFetcher fetches Referral Data from an app MySQL database.
It has been superceded by MySQLBatchFetcher and this class will be removed soon. It is a job for a consumer, not this library itself.
deprecated | |
---|---|
package |
PhpDruidIngest\Fetcher |
fetch() : array|mixed
throws | |
---|---|
array|mixed
getMysqli( $host, $user, $pass, $db) : \mysqli
\mysqli
getOutput() : \Psr\Log\LoggerInterface
\Psr\Log\LoggerInterface
prepareQuery(String $query, String $start, String $end) : String
String
Query with {STARTDATE} and {ENDDATE} for value substituion
String
ISO Date Time string
String
ISO Date Time string
String
Prepared query string
processRow( $row) : mixed
mixed
setIntervals(string $intervalStart = "1970-01-01 01:30:00", string $intervalEnd = "3030-01-01 01:30:00")
string
string
setMySqlCredentials( $host, $user, $pass, $db)
setOutput(\Psr\Log\LoggerInterface $output)
\Psr\Log\LoggerInterface
setTimeWindow(string $start, string $end) : string
string
ISO DateTime for start of ingestion window
string
ISO DateTime for end of ingestion window
string
host :
user :
pass :
db :
output : \Psr\Log\LoggerInterface
var |
---|
\Psr\Log\LoggerInterface
contactsQuery :
physicianQuery :