2017 © Pedro Peláez
 

silverstripe-vendormodule sitetree-walk

Walk through the SiteTree, and hooks implementors of SiteTreeWalkListener interface letting them doing things over each page.

image

zirak/sitetree-walk

Walk through the SiteTree, and hooks implementors of SiteTreeWalkListener interface letting them doing things over each page.

  • Thursday, May 10, 2018
  • by g4b0
  • Repository
  • 1 Watchers
  • 2 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

SiteTree Walk

Implementation of the annoying task to walk through the entire SiteTree in order to do things over the pages., (*1)

Introduction

This module by itself does not do anything, it just iterate recursively through the SiteTree and hooks every implementor of SiteTreeWalkListener interface letting them doing things over each page., (*2)

Requirements

  • SilverStripe >= 4.1 < 5.0, (*3)

    For 3.x installations refer to the 1.x version, (*4)

Installation

Install the module through composer:, (*5)

composer require --no-update g4b0/sitetree-walk
composer update --no-dev g4b0/sitetree-walk

Running the task.

Before running the task you need to implement your logic extending SiteTreeWalkListener interface. An example is provided with SiteTreeWalkPrint, that simply prints out the page title. To enable it set its member variable SiteTreeWalkPrint::$enabled to true. SiteTreeWalkListener implementor's run() method should return true for the processed pages, false for the excluded ones. Following the output of the sample:, (*6)

#sake dev/tasks/SiteTreeWalk "flush=all"
Running Task SiteTreeWalk

Following SiteTreeWalkListener Implementors will be executed: 
    * SiteTreeWalkPrint

Continue? [y|n]y

Home 
Test 
    Test 2 
    Test 3 
Chi siamo 
Contattaci 
Pagina non trovata  *** Excluded from processing
Errore server  *** Excluded from processing
My Page 

################################################
Traversed Pages: 9

Processed Pages: 
    SiteTreeWalkPrint: 9
################################################

The Versions

10/05 2018

dev-master

9999999-dev

Walk through the SiteTree, and hooks implementors of SiteTreeWalkListener interface letting them doing things over each page.

  Sources   Download

GPL-2 GPL-2.0-only

The Requires

 

by Gabriele Brosulo
by Gabriele Brosulo - Zirak

task silverstripe sitetree

10/05 2018

2.0.0

2.0.0.0

Walk through the SiteTree, and hooks implementors of SiteTreeWalkListener interface letting them doing things over each page.

  Sources   Download

GPL-2.0-only

The Requires

 

by Gabriele Brosulo

task silverstripe sitetree

10/05 2018

2.0.4

2.0.4.0

Walk through the SiteTree, and hooks implementors of SiteTreeWalkListener interface letting them doing things over each page.

  Sources   Download

GPL-2.0-only

The Requires

 

by Gabriele Brosulo

task silverstripe sitetree

10/05 2018

2.0.3

2.0.3.0

Walk through the SiteTree, and hooks implementors of SiteTreeWalkListener interface letting them doing things over each page.

  Sources   Download

GPL-2.0-only

The Requires

 

by Gabriele Brosulo

task silverstripe sitetree

09/05 2018

2.0.1

2.0.1.0

Walk through the SiteTree, and hooks implementors of SiteTreeWalkListener interface letting them doing things over each page.

  Sources   Download

GPL-2.0-only

The Requires

 

by Gabriele Brosulo

task silverstripe sitetree

09/05 2018

2.0.2

2.0.2.0

Walk through the SiteTree, and hooks implementors of SiteTreeWalkListener interface letting them doing things over each page.

  Sources   Download

GPL-2.0-only

The Requires

 

by Gabriele Brosulo

task silverstripe sitetree

16/03 2018

1.0.3

1.0.3.0

Walk through the SiteTree, and hooks implementors of SiteTreeWalkListener interface letting them doing things over each page.

  Sources   Download

GPL-2.0-only

The Requires

 

by Gabriele Brosulo - Zirak

task silverstripe sitetree

06/11 2014

1.0.2

1.0.2.0

Walk through the SiteTree, and hooks implementors of SiteTreeWalkListener interface letting them doing things over each page.

  Sources   Download

GPL-2

The Requires

 

by Gabriele Brosulo - Zirak

task silverstripe sitetree

06/11 2014

1.0.1

1.0.1.0

Walk through the SiteTree, and hooks implementors of SiteTreeWalkListener interface letting them doing things over each page.

  Sources   Download

GPL-2

The Requires

 

by Gabriele Brosulo - Zirak

task silverstripe sitetree

06/11 2014

1.0.0

1.0.0.0

Walk through the SiteTree, and hooks implementors of SiteTreeWalkListener interface letting them doing things over each page.

  Sources   Download

GPL-2

The Requires

 

by Gabriele Brosulo - Zirak

task silverstripe sitetree