Exemple #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);
 }
Exemple #2
0
 /**
  * @dataProvider dataProviderFor_testPostfix
  *
  * @param string $string
  * @param string $postfix
  * @param string $expected
  */
 public function testPostfix($string, $postfix, $expected)
 {
     $this->assertEquals($expected, Html::postfix($string, $postfix));
 }
Exemple #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);
 }