mirror of
https://github.com/Karaka-Management/oms-Surveys.git
synced 2026-02-15 14:58:40 +00:00
continue with getter/setter removal
This commit is contained in:
parent
884d6289cf
commit
3ea02ac4ef
|
|
@ -71,8 +71,8 @@ final class BackendController extends Controller
|
||||||
|
|
||||||
$path = \str_replace('+', ' ', (string) ($request->getData('path') ?? '/'));
|
$path = \str_replace('+', ' ', (string) ($request->getData('path') ?? '/'));
|
||||||
$surveys = SurveyTemplateMapper::getByVirtualPath($path)
|
$surveys = SurveyTemplateMapper::getByVirtualPath($path)
|
||||||
->where('tags/title/language', $response->getLanguage())
|
->where('tags/title/language', $response->header->l11n->language)
|
||||||
->where('l11n/language', $response->getLanguage())
|
->where('l11n/language', $response->header->l11n->language)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
list($collection, $parent) = CollectionMapper::getCollectionsByPath($path);
|
list($collection, $parent) = CollectionMapper::getCollectionsByPath($path);
|
||||||
|
|
@ -136,10 +136,10 @@ final class BackendController extends Controller
|
||||||
->with('tags')
|
->with('tags')
|
||||||
->with('tags/title')
|
->with('tags/title')
|
||||||
->where('id', $request->getData('id'))
|
->where('id', $request->getData('id'))
|
||||||
->where('tags/title/language', $response->getLanguage())
|
->where('tags/title/language', $response->header->l11n->language)
|
||||||
->where('l11n/language', $response->getLanguage())
|
->where('l11n/language', $response->header->l11n->language)
|
||||||
->where('elements/l11n/language', $response->getLanguage())
|
->where('elements/l11n/language', $response->header->l11n->language)
|
||||||
->where('elements/labels/language', $response->getLanguage())
|
->where('elements/labels/language', $response->header->l11n->language)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
$view->addData('survey', $survey);
|
$view->addData('survey', $survey);
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ final class SurveyTemplateElementL11nTest extends \PHPUnit\Framework\TestCase
|
||||||
self::assertEquals('', $this->l11n->text);
|
self::assertEquals('', $this->l11n->text);
|
||||||
self::assertEquals('', $this->l11n->description);
|
self::assertEquals('', $this->l11n->description);
|
||||||
self::assertEquals('', $this->l11n->descriptionPlain);
|
self::assertEquals('', $this->l11n->descriptionPlain);
|
||||||
self::assertEquals(ISO639x1Enum::_EN, $this->l11n->getLanguage());
|
self::assertEquals(ISO639x1Enum::_EN, $this->l11n->language);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -72,7 +72,7 @@ final class SurveyTemplateElementL11nTest extends \PHPUnit\Framework\TestCase
|
||||||
public function testLanguageInputOutput() : void
|
public function testLanguageInputOutput() : void
|
||||||
{
|
{
|
||||||
$this->l11n->setLanguage(ISO639x1Enum::_DE);
|
$this->l11n->setLanguage(ISO639x1Enum::_DE);
|
||||||
self::assertEquals(ISO639x1Enum::_DE, $this->l11n->getLanguage());
|
self::assertEquals(ISO639x1Enum::_DE, $this->l11n->language);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ final class SurveyTemplateL11nTest extends \PHPUnit\Framework\TestCase
|
||||||
self::assertEquals('', $this->l11n->title);
|
self::assertEquals('', $this->l11n->title);
|
||||||
self::assertEquals('', $this->l11n->description);
|
self::assertEquals('', $this->l11n->description);
|
||||||
self::assertEquals('', $this->l11n->descriptionPlain);
|
self::assertEquals('', $this->l11n->descriptionPlain);
|
||||||
self::assertEquals(ISO639x1Enum::_EN, $this->l11n->getLanguage());
|
self::assertEquals(ISO639x1Enum::_EN, $this->l11n->language);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -72,7 +72,7 @@ final class SurveyTemplateL11nTest extends \PHPUnit\Framework\TestCase
|
||||||
public function testLanguageInputOutput() : void
|
public function testLanguageInputOutput() : void
|
||||||
{
|
{
|
||||||
$this->l11n->setLanguage(ISO639x1Enum::_DE);
|
$this->l11n->setLanguage(ISO639x1Enum::_DE);
|
||||||
self::assertEquals(ISO639x1Enum::_DE, $this->l11n->getLanguage());
|
self::assertEquals(ISO639x1Enum::_DE, $this->l11n->language);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ final class SurveyTemplateLabelL11nTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
self::assertEquals(0, $this->l11n->id);
|
self::assertEquals(0, $this->l11n->id);
|
||||||
self::assertEquals('', $this->l11n->title);
|
self::assertEquals('', $this->l11n->title);
|
||||||
self::assertEquals(ISO639x1Enum::_EN, $this->l11n->getLanguage());
|
self::assertEquals(ISO639x1Enum::_EN, $this->l11n->language);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -60,7 +60,7 @@ final class SurveyTemplateLabelL11nTest extends \PHPUnit\Framework\TestCase
|
||||||
public function testLanguageInputOutput() : void
|
public function testLanguageInputOutput() : void
|
||||||
{
|
{
|
||||||
$this->l11n->setLanguage(ISO639x1Enum::_DE);
|
$this->l11n->setLanguage(ISO639x1Enum::_DE);
|
||||||
self::assertEquals(ISO639x1Enum::_DE, $this->l11n->getLanguage());
|
self::assertEquals(ISO639x1Enum::_DE, $this->l11n->language);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user