getLabel() public method

Get form element object label.
public getLabel ( ) : string
return string
Esempio n. 1
0
 public function testSetAndGetLabel()
 {
     $e = new Element('text', 'email');
     $e->setLabel('Email:');
     $e->setLabel(array('Email:' => array('class' => 'label-class')));
     $this->assertEquals('Email:', $e->getLabel());
 }