Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| BaseController | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 8 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace BuyerKiosk\FiveStars\Controllers; |
| 4 | |
| 5 | class BaseController extends \BuyerKiosk\Core\Controllers\BaseController { |
| 6 | protected $store; |
| 7 | protected $db; |
| 8 | protected $storeDB; |
| 9 | protected $log; |
| 10 | protected $apiURL; |
| 11 | protected $endpointBase; |
| 12 | |
| 13 | public function __construct($app, \Store $store) { |
| 14 | parent::__construct($app); |
| 15 | $this->store = $store; |
| 16 | global $db_name; |
| 17 | $this->db = dbConnectByName($db_name); |
| 18 | $this->storeDB = dbConnectByName($store->getDbName()); |
| 19 | $this->log = new \KLogger($_ENV['LOG_DIR']."/fiveStars.log", \KLogger::DEBUG); |
| 20 | $this->apiURL = $_ENV['FS_API_URL']; |
| 21 | $this->endpointBase = "/businesses/".$store->getFiveStarsSoftwareID(); |
| 22 | } |
| 23 | } |