Horde_Vcs_File_Base::getSourcerootPath PHP Méthode

getSourcerootPath() public méthode

Return the filename relative to its sourceroot.
public getSourcerootPath ( ) : string
Résultat string Pathname relative to the sourceroot.
    public function getSourcerootPath()
    {
        return ltrim($this->_dir . '/' . $this->_name, '/');
    }

Usage Example

Exemple #1
0
 /**
  * Return the name of this file relative to its sourceroot.
  *
  * @return string  Pathname relative to the sourceroot.
  */
 public function getSourcerootPath()
 {
     return substr(parent::getSourcerootPath(), 0, -2);
 }
All Usage Examples Of Horde_Vcs_File_Base::getSourcerootPath