repositoryRoot() public method

Identify the repository root.
public repositoryRoot ( Components_Helper_Root $helper ) : null
$helper Components_Helper_Root The root helper.
return null
Esempio n. 1
0
File: Root.php Progetto: horde/horde
 /**
  * Try to determine the root path based on a component.
  *
  * @return string|boolean The root path or false if it could not be
  *                        determined.
  */
 private function _determineRootFromComponent()
 {
     if (!empty($this->_component)) {
         try {
             return $this->_component->repositoryRoot($this);
         } catch (Components_Exception $e) {
             $this->_errors[] = sprintf('Component %s has no repository root!', $this->_component->getName());
             return false;
         }
     }
     return false;
 }