45,11 → 45,6 |
protected /*bool*/ $slangDetectionDone = false; |
|
/** |
* @var OIDplusSqlSlangPlugin |
*/ |
private $slangCache = null; |
|
/** |
* @param string $sql |
* @param array|null $prepared_args |
* @return OIDplusQueryResult |
406,13 → 401,15 |
* @throws OIDplusException |
*/ |
public final function getSlang(bool $mustExist=true)/*: ?OIDplusSqlSlangPlugin*/ { |
static /*?OIDplusSqlSlangPlugin*/ $slangCache = null; |
|
if ($this->slangDetectionDone) { |
return $this->slangCache; |
return $slangCache; |
} |
|
$this->slangCache = $this->doGetSlang(); |
$slangCache = $this->doGetSlang(); |
$this->slangDetectionDone = true; |
return $this->slangCache; |
return $slangCache; |
} |
|
/** |