예제 #1
0
 public function setupQueryBuilder()
 {
     $language = $this->getInput('language', 1);
     $channel = $this->getInput('channel', 1);
     $this->objectGetter->setSelectQueryFields($this->getInput('fields', 1));
     $this->objectGetter->setMainQuery();
     $this->objectGetter->setChannelId($channel ? $channel : 1);
     $this->objectGetter->setId($this->getInput('id', 1));
     $this->objectGetter->setCategoryId($this->getInput('categoryId', 1));
     $this->objectGetter->setCategorySlug($this->getInput('categorySlug', 1));
     $this->objectGetter->setSlug($this->getInput('slug', 1));
     $this->objectGetter->setTitle($this->getInput('title', 1));
     $this->objectGetter->setType($this->getInput('type', 1));
     $this->objectGetter->setStatus($this->getInput('status', 1));
     $this->objectGetter->setModuleCode($this->getInput('moduleCode', 1));
     $this->objectGetter->setNoScaduti($this->getInput('noScaduti', 1));
     $this->objectGetter->setLanguageId($language ? $language : 1);
     $this->objectGetter->setLanguageAbbreviation($this->getInput('languageAbbr', 1));
     $this->objectGetter->setFreeSearch($this->getInput('freeSearch', 1));
     $this->objectGetter->setOrderBy($this->getInput('orderBy', 1));
     $this->objectGetter->setLimit($this->getInput('limit', 1));
     return null;
 }
예제 #2
0
 public function testSetLanguageAbbreviation()
 {
     $this->objectGetter->setLanguageAbbreviation('en');
     $this->assertNotEmpty($this->objectGetter->getQueryBuilder()->getParameter('languageAbbr'));
 }