Skip to content

Commit cd19b6d

Browse files
committed
set many QueryHandler functions from public to private
1 parent 9eaa441 commit cd19b6d

File tree

4 files changed

+92
-90
lines changed

4 files changed

+92
-90
lines changed

src/Store/QueryHandler/AskQueryHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function runQuery($infos)
2424
return parent::runQuery($this->infos);
2525
}
2626

27-
public function buildResultVars()
27+
private function buildResultVars()
2828
{
2929
$this->infos['query']['result_vars'][] = [
3030
'var' => '1',
@@ -33,7 +33,7 @@ public function buildResultVars()
3333
];
3434
}
3535

36-
public function getFinalQueryResult($q_sql, $tmp_tbl)
36+
protected function getFinalQueryResult($q_sql, $tmp_tbl)
3737
{
3838
$row = $this->store->getDBObject()->fetchRow('SELECT success FROM '.$tmp_tbl);
3939
$r = isset($row['success']) ? $row['success'] : 0;

src/Store/QueryHandler/ConstructQueryHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function runQuery($infos)
2929
return $this->getResultIndex($sub_r);
3030
}
3131

32-
public function buildResultVars()
32+
private function buildResultVars()
3333
{
3434
$r = [];
3535
foreach ($this->infos['query']['construct_triples'] as $t) {
@@ -44,7 +44,7 @@ public function buildResultVars()
4444
$this->infos['query']['result_vars'] = $r;
4545
}
4646

47-
public function getResultIndex($qr)
47+
private function getResultIndex($qr)
4848
{
4949
$r = [];
5050
$added = [];

src/Store/QueryHandler/DescribeQueryHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function runQuery($infos)
5555
return $this->r;
5656
}
5757

58-
public function mergeSubResults($index, $is_sub_describe = 1)
58+
private function mergeSubResults($index, $is_sub_describe = 1)
5959
{
6060
foreach ($index as $s => $ps) {
6161
if (!isset($this->r[$s])) {

0 commit comments

Comments
 (0)