end() 공개 메소드

Renders the closing tag of the field container.
public end ( ) : string
리턴 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();
 }