rename options method name
This commit is contained in:
parent
94b0ff3656
commit
42493d9f1e
@ -83,7 +83,7 @@ class Configuration
|
||||
|
||||
$option = $optionInstance->get();
|
||||
|
||||
if ($optionInstance->mustQuote()) {
|
||||
if ($optionInstance->isQuoted()) {
|
||||
$option = (oxNew(Utils::class))->quote($option);
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ abstract class AbstractOption implements OptionInterface
|
||||
|
||||
abstract public function get(): string;
|
||||
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ class BaseUrl extends AbstractOption
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ class CacheSuffix extends AbstractOption
|
||||
return '?v='.date('Ymd');
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ class ContentCss extends AbstractOption
|
||||
);
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ class ContextMenu extends AbstractOption
|
||||
return 'link linkchecker image table';
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ class DocumentBaseUrl extends AbstractOption
|
||||
return Registry::getConfig()->getActiveView()->getViewConfig()->getBaseDir();
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ class EntityEncoding extends AbstractOption
|
||||
return 'raw';
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ class FilemanagerUrl extends AbstractOption
|
||||
);
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ class Language extends AbstractOption
|
||||
return $aLang[ $oLang->getLanguageAbbr((int) $oLang->getTplLanguage()) ] ?? "en";
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ class MaxHeight extends AbstractOption
|
||||
return '90%';
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ class MaxWidth extends AbstractOption
|
||||
return '90%';
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ class Menubar extends AbstractOption
|
||||
return 'file edit view insert format tools table help';
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ interface OptionInterface
|
||||
|
||||
public function get(): string;
|
||||
|
||||
public function mustQuote(): bool;
|
||||
public function isQuoted(): bool;
|
||||
|
||||
public function requireRegistration(): bool;
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ class Plugins extends AbstractOption
|
||||
));
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ class QuickbarsInsertToolbar extends AbstractOption
|
||||
*/
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return $this->get() !== 'false';
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ class Resize extends AbstractOption
|
||||
return 'both';
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ class Skin extends AbstractOption
|
||||
return $this->darkMode ? 'oxide-dark' : 'oxide';
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ class Toolbar extends AbstractOption
|
||||
return '["'.implode('", "', $list).'"]';
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ class ToolbarMode extends AbstractOption
|
||||
return 'sliding';
|
||||
}
|
||||
|
||||
public function mustQuote(): bool
|
||||
public function isQuoted(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user