Example #1
0
 /**
  * cleanId
  *
  * @test
  */
 public function cleanId()
 {
     $htmlGenerated = tx_t3devapi_html::cleanId('tx_t3devapi_pi1[var]');
     $html = 'tx_t3devapi_pi1_var';
     $this->debug($htmlGenerated);
     $this->assertEquals(trim($htmlGenerated), $html);
 }
 /**
  * get js for calendar
  *
  * @return string
  */
 protected function getAddjs()
 {
     if (!empty($this->addJs)) {
         $content = '$(document).ready(function() {' . "\r\n" . $this->addJs . "\r\n" . '});';
         return tx_t3devapi_html::renderScriptJs($content);
     } else {
         return '';
     }
 }