예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 /**
  * @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));
 }
예제 #3
0
 /**
  * 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);
 }