Beispiel #1
0
 /**
  * Render this configuration directive into INI markup
  *
  * @return  string
  */
 public function render()
 {
     $str = '';
     if (!empty($this->commentsPre)) {
         $comments = array();
         foreach ($this->commentsPre as $comment) {
             $comments[] = $comment->render();
         }
         $str = implode(PHP_EOL, $comments) . PHP_EOL;
     }
     $str .= sprintf('%s = "%s"', $this->sanitizeKey($this->key), $this->sanitizeValue($this->value));
     if (isset($this->commentPost)) {
         $str .= ' ' . $this->commentPost->render();
     }
     return $str;
 }