Esempio n. 1
0
 /**
  * Returns a path created by placing DIRECTORY_SEPARATOR between each argument
  *
  * Example:
  * <code>
  * $path = Path::join('/my', 'path', 'to/file.txt');
  * </code>
  * Result:
  * <code>
  * /my/path/to/file.txt
  * </code>
  *
  * @param string ...
  * @return mixed
  */
 public static function join()
 {
     $args = Arrays::filterNotBlank(func_get_args());
     return preg_replace('~[/\\\\]+~', DIRECTORY_SEPARATOR, implode(DIRECTORY_SEPARATOR, $args));
 }
Esempio n. 2
0
 public function filterNotBlank()
 {
     $this->_array = Arrays::filterNotBlank($this->_array);
     return $this;
 }