1 | <?php |
||
9 | class Toolbox extends \smtech\StMarksReflexiveCanvasLTI\Toolbox |
||
10 | { |
||
11 | /** |
||
12 | * Custom Preferences database |
||
13 | * @var mysqli |
||
14 | */ |
||
15 | protected $customPrefs; |
||
16 | |||
17 | /** |
||
18 | * Configure account navigation placement |
||
19 | * |
||
20 | * @return Generator |
||
21 | */ |
||
22 | public function getGenerator() |
||
34 | |||
35 | /** |
||
36 | * Update a Toolbox instance from a configuration file |
||
37 | * |
||
38 | * @see Toolbox::fromConfiguration() Use `Toolbox::fromConfiguration()` |
||
39 | * |
||
40 | * @param string $configFilePath |
||
41 | * @param boolean $forceRecache |
||
42 | * @return void |
||
43 | */ |
||
44 | protected function loadConfiguration($configFilePath, $forceRecache = false) |
||
53 | |||
54 | /** |
||
55 | * Set MySQL connection object |
||
56 | * |
||
57 | * @param mysqli $mysql |
||
58 | */ |
||
59 | public function setCustomPrefs(mysqli $mysql) |
||
63 | |||
64 | /** |
||
65 | * Get MySQL connection object |
||
66 | * |
||
67 | * @return mysqli |
||
68 | */ |
||
69 | public function getCustomPrefs() |
||
73 | |||
74 | /** |
||
75 | * Make a MySQL query |
||
76 | * |
||
77 | * @link http://php.net/manual/en/mysqli.query.php Pass-through to `mysqli::query()` |
||
78 | * @param string $query |
||
79 | * @param int $resultMode (Optional, defaults to `MYSQLI_STORE_RESULT`) |
||
80 | * @return mixed |
||
81 | */ |
||
82 | public function customPrefs_query($query, $resultMode = MYSQLI_STORE_RESULT) |
||
86 | } |
||
87 |