getBaseDirFile() public static method

public static getBaseDirFile ( )
示例#1
0
 /**
  * returns the symlink
  *
  * @return string
  */
 public function getSymlink()
 {
     $sBaseDir = getcwd();
     $sBaseDirFile = Modman_Command_Init::getBaseDirFile();
     if (file_exists($sBaseDirFile)) {
         $sBaseDir = file_get_contents($sBaseDirFile);
     }
     return $sBaseDir . DIRECTORY_SEPARATOR . $this->rtrimDS($this->sSymlink);
 }
示例#2
0
 /**
  * returns the symlink
  *
  * @return string
  */
 public function getSymlink()
 {
     $sBaseDir = getcwd();
     $sBaseDirFile = Modman_Command_Init::getBaseDirFile();
     if (file_exists($sBaseDirFile)) {
         $sBaseDir = rtrim(array_shift(file($sBaseDirFile, FILE_IGNORE_NEW_LINES)));
     }
     return $sBaseDir . DIRECTORY_SEPARATOR . $this->rtrimDS($this->sSymlink);
 }