public function getSlicePath($offset, $length = null)
    {
        $array = explode('/', $this->getPath());

        if (empty($array[0])) {
            array_shift($array);
        }

        return array_slice($array, $offset, $length);
    }
public function getSlicePath($offset, $length = null)
    {
        $array = explode('/', $this->getPath());

        if (empty($array[0])) {
            array_shift($array);
        }

        return array_slice($array, $offset, $length);
    }
public function getSlicePath ( $ offset , $ length = null ) { $ array = explode ( '/' , $ this -> getPath ( ) ) ; if ( empty ( $ array [ 0 ] ) ) { array_shift ( $ array ) ; } return array_slice ( $ array , $ offset , $ length ) ; }
Slice path.

@param int      $offset
@param int|null $length

@return array
Slice path .