Components_Component::repositoryRoot PHP Method

repositoryRoot() public method

Identify the repository root.
public repositoryRoot ( Components_Helper_Root $helper ) : null
$helper Components_Helper_Root The root helper.
return null
    public function repositoryRoot(Components_Helper_Root $helper);

Usage Example

Ejemplo n.º 1
0
Archivo: Root.php Proyecto: 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;
 }