Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function getValues()
 {
     if (!$this->choiceList) {
         $this->load();
     }
     return $this->choiceList->getValues();
 }
Esempio n. 2
0
 private function initialize()
 {
     $this->choices = array();
     $this->values = array();
     $this->structuredValues = $this->adaptedList->getValues();
     $innerChoices = $this->adaptedList->getChoices();
     foreach ($innerChoices as $index => $choice) {
         $value = $this->structuredValues[$index];
         $this->values[] = $value;
         $this->choices[$value] = $choice;
     }
 }
 public function testGetValues()
 {
     $this->assertSame($this->values, $this->list->getValues());
 }