getDisplayedData() публичный Метод

Returns the data of the field as it is displayed to the user.
См. также: FieldInterface
public getDisplayedData ( )
Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function getDisplayedData()
 {
     if ($this->mode === self::GROUP) {
         return parent::getDisplayedData();
     } else {
         return Field::getDisplayedData();
     }
 }
Пример #2
0
 public function testGetDisplayedDataForwardsCall()
 {
     $field = $this->createValidMockField('firstName');
     $field->expects($this->atLeastOnce())->method('getDisplayedData')->will($this->returnValue('Bernhard'));
     $group = new FieldGroup('author');
     $group->add($field);
     $this->assertEquals(array('firstName' => 'Bernhard'), $group->getDisplayedData());
 }