/** * Render class with or without prefix and/or postfix. * * @param string $prefix * @param string $postfix * * @return string */ public function renderClass($prefix = null, $postfix = null) { return Html::postfix(Html::prefix($this->class, $prefix), $postfix); }
/** * @dataProvider dataProviderFor_testPrefix * * @param string $string * @param string $prefix * @param string $expected */ public function testPrefix($string, $prefix, $expected) { $this->assertEquals($expected, Html::prefix($string, $prefix)); }
/** * Render Title with or without prefix and postfix. * * @param string $prefix * @param string $postfix * @return string */ public function renderBody($prefix = null, $postfix = null) { return Html::postfix(Html::prefix($this->body, $prefix), $postfix); }