public function getDynamicStructure()
 {
     $dynamicStructure = SearchUtil::getDynamicSearchStructureFromGetArray(get_class($this->model));
     if ($dynamicStructure != null) {
         return $dynamicStructure;
     }
     return $this->model->dynamicStructure;
 }
 public function getDynamicStructure()
 {
     return SearchUtil::getDynamicSearchStructureFromGetArray(get_class($this->model));
 }
Esempio n. 3
0
 public function testGetDynamicSearchStructureFromGetArray()
 {
     $_GET['testing'] = array('a' => '');
     $newString = SearchUtil::getDynamicSearchStructureFromGetArray('testing');
     $this->assertNull($newString);
     $_GET['testing'] = array('a' => null, 'dynamicStructure' => '1 and 2');
     $newString = SearchUtil::getDynamicSearchStructureFromGetArray('testing');
     $this->assertEquals('1 and 2', $newString);
 }