original_string: protected static function setPackageDir()
      {
          if ( ezcBase::$packageDir !== null )
          {
              return;
          }
  
          // Get the path to the components.
          $baseDir = dirname( __FILE__ );
  
          switch ( ezcBase::$libraryMode )
          {
              case "custom":
                  ezcBase::$packageDir = self::$currentWorkingDirectory . '/';
                  break;
              case "devel":
              case "tarball":
                  ezcBase::$packageDir = $baseDir. "/../../";
                  break;
              case "pear";
                  ezcBase::$packageDir = $baseDir. "/../";
                  break;
          }
      }
code: protected static function setPackageDir()
      {
          if ( ezcBase::$packageDir !== null )
          {
              return;
          }
  
          // Get the path to the components.
          $baseDir = dirname( __FILE__ );
  
          switch ( ezcBase::$libraryMode )
          {
              case "custom":
                  ezcBase::$packageDir = self::$currentWorkingDirectory . '/';
                  break;
              case "devel":
              case "tarball":
                  ezcBase::$packageDir = $baseDir. "/../../";
                  break;
              case "pear";
                  ezcBase::$packageDir = $baseDir. "/../";
                  break;
          }
      }
code_tokens: protected static function setPackageDir ( ) { if ( ezcBase :: $ packageDir !== null ) { return ; } // Get the path to the components. $ baseDir = dirname ( __FILE__ ) ; switch ( ezcBase :: $ libraryMode ) { case "custom" : ezcBase :: $ packageDir = self :: $ currentWorkingDirectory . '/' ; break ; case "devel" : case "tarball" : ezcBase :: $ packageDir = $ baseDir . "/../../" ; break ; case "pear" ; ezcBase :: $ packageDir = $ baseDir . "/../" ; break ; } }
docstring: Figures out the base path of the eZ Components installation.
  
  It stores the path that it finds in a static member variable. The path
  depends on the installation method of the eZ Components. The SVN version
  has a different path than the PEAR installed version.
docstring_tokens: Figures out the base path of the eZ Components installation .