/** * 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); }
/** * 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); }