Example #1
0
 static public function separator($type = self :: DIR_SEPARATOR_LOCAL)
 {
   switch ($type)
   {
     case self :: DIR_SEPARATOR_LOCAL:
       return Sys :: fileSeparator();
     case self :: DIR_SEPARATOR_UNIX:
       return '/';
     case self :: DIR_SEPARATOR_DOS:
       return "\\";
   }
   return null;
 }
Example #2
0
 function separator($type = FS_SEPARATOR_LOCAL)
 {
   switch ($type)
   {
     case FS_SEPARATOR_LOCAL:
       return Sys :: fileSeparator();
     case FS_SEPARATOR_UNIX:
       return '/';
     case FS_SEPARATOR_DOS:
       return "\\";
   }
   return null;
 }