コード例 #1
0
ファイル: Common.php プロジェクト: alachaum/timetrex
 /**
  * Sets the line end style to Windows, Mac, Unix or a custom string.
  * 
  * @param   string  $style  "win", "mac", "unix" or custom string.
  * @since   1.7
  * @access  public
  * @return  void
  */
 static function setLineEnd($style)
 {
     switch ($style) {
         case 'win':
             self::$_lineEnd = "\r\n";
             break;
         case 'unix':
             self::$_lineEnd = "\n";
             break;
         case 'mac':
             self::$_lineEnd = "\r";
             break;
         default:
             self::$_lineEnd = $style;
     }
 }