src/EMT/Tret/AbstractTret.php 1 location
|
@@ 413-419 (lines=7) @@
|
410 |
|
* |
411 |
|
* @param string $key |
412 |
|
*/ |
413 |
|
public function is_on($key) |
414 |
|
{ |
415 |
|
if (!isset($this->settings[$key])) return false; |
416 |
|
$kk = $this->settings[$key]; |
417 |
|
|
418 |
|
return ((strtolower($kk) == "on") || ($kk === "1") || ($kk === true) || ($kk === 1)); |
419 |
|
} |
420 |
|
|
421 |
|
/** |
422 |
|
* Получить строковое значение настройки |
src/EMT/AbstractTypograph.php 1 location
|
@@ 541-547 (lines=7) @@
|
538 |
|
* |
539 |
|
* @param string $key |
540 |
|
*/ |
541 |
|
public function is_on($key) |
542 |
|
{ |
543 |
|
if(!isset($this->settings[$key])) return false; |
544 |
|
$kk = $this->settings[$key]; |
545 |
|
|
546 |
|
return ((strtolower($kk)=="on") || ($kk === "1") || ($kk === true) || ($kk === 1)); |
547 |
|
} |
548 |
|
|
549 |
|
/** |
550 |
|
* Установить настройку |