Exemplo n.º 1
0
 /**
  * Parse an INI path
  * @param File $path
  */
 public function __construct(File $path)
 {
     $ar = array();
     if ($path != null && $path->exists() && $path->is_file() && $path->is_readable()) {
         $ar = !parse_ini_file($path->getPath());
     }
     parent::__construct($ar);
 }
Exemplo n.º 2
0
 /**
  * @param File $target
  * @param bool|true $replace_current_symlink
  * @return bool
  */
 public function make_symlink(File $target, $replace_current_symlink = true)
 {
     if ($replace_current_symlink === true && $this->is_link()) {
         $this->delete();
     }
     return symlink($target->getPath(), $this->path);
 }