original_string: protected function build_breadcrumb($fullpath) {
          $breadcrumb = array(array(
              'name' => get_string('pluginname', 'repository_boxnet'),
              'path' => ''
          ));
          $breadcrumbpath = '';
          $crumbs = explode('/', $fullpath);
          foreach ($crumbs as $crumb) {
              if (empty($crumb)) {
                  // That is probably the root crumb, we've already added it.
                  continue;
              }
              list($unused, $tosplit) = explode(':', $crumb, 2);
              if (strpos($tosplit, '|') !== false) {
                  list($id, $crumbname) = explode('|', $tosplit, 2);
              } else {
                  $crumbname = $tosplit;
              }
              $breadcrumbpath .= '/' . $crumb;
              $breadcrumb[] = array(
                  'name' => urldecode($crumbname),
                  'path' => $breadcrumbpath
              );
          }
          return $breadcrumb;
      }
code: protected function build_breadcrumb($fullpath) {
          $breadcrumb = array(array(
              'name' => get_string('pluginname', 'repository_boxnet'),
              'path' => ''
          ));
          $breadcrumbpath = '';
          $crumbs = explode('/', $fullpath);
          foreach ($crumbs as $crumb) {
              if (empty($crumb)) {
                  // That is probably the root crumb, we've already added it.
                  continue;
              }
              list($unused, $tosplit) = explode(':', $crumb, 2);
              if (strpos($tosplit, '|') !== false) {
                  list($id, $crumbname) = explode('|', $tosplit, 2);
              } else {
                  $crumbname = $tosplit;
              }
              $breadcrumbpath .= '/' . $crumb;
              $breadcrumb[] = array(
                  'name' => urldecode($crumbname),
                  'path' => $breadcrumbpath
              );
          }
          return $breadcrumb;
      }
code_tokens: protected function build_breadcrumb ( $ fullpath ) { $ breadcrumb = array ( array ( 'name' => get_string ( 'pluginname' , 'repository_boxnet' ) , 'path' => '' ) ) ; $ breadcrumbpath = '' ; $ crumbs = explode ( '/' , $ fullpath ) ; foreach ( $ crumbs as $ crumb ) { if ( empty ( $ crumb ) ) { // That is probably the root crumb, we've already added it. continue ; } list ( $ unused , $ tosplit ) = explode ( ':' , $ crumb , 2 ) ; if ( strpos ( $ tosplit , '|' ) !== false ) { list ( $ id , $ crumbname ) = explode ( '|' , $ tosplit , 2 ) ; } else { $ crumbname = $ tosplit ; } $ breadcrumbpath .= '/' . $ crumb ; $ breadcrumb [ ] = array ( 'name' => urldecode ( $ crumbname ) , 'path' => $ breadcrumbpath ) ; } return $ breadcrumb ; }
docstring: Construct a breadcrumb from a path.
  
  @param string $fullpath Path containing multiple parts separated by slashes.
  @return array Array expected to be generated in {@link self::get_listing()}.
docstring_tokens: Construct a breadcrumb from a path .