end() public method

Renders the closing tag of the field container.
public end ( ) : string
return string the rendering result.
コード例 #1
0
 public function testEnd()
 {
     $expectedValue = '</div>';
     $actualValue = $this->activeField->end();
     $this->assertEquals($expectedValue, $actualValue);
     // other tag
     $expectedValue = "</article>";
     $this->activeField->options['tag'] = 'article';
     $actualValue = $this->activeField->end();
     $this->assertTrue($actualValue === $expectedValue);
 }
コード例 #2
0
 /**
  * @inheritdoc
  */
 public function end()
 {
     $result = parent::end();
     return str_replace('</div', '</dl', $result);
 }
コード例 #3
0
 public function end()
 {
     return "</span>" . parent::end();
 }