CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Reporting Security Issues
    • Privacy Policy
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Get Involved
    • Issues (Github)
    • Bakery
    • Featured Resources
    • Training
    • Meetups
    • My CakePHP
    • CakeFest
    • Newsletter
    • Linkedin
    • YouTube
    • Facebook
    • Twitter
    • Mastodon
    • Help & Support
    • Forum
    • Stack Overflow
    • IRC
    • Slack
    • Paid Support
CakePHP

C CakePHP 6.0 API

  • Project:
    • CakePHP
      • CakePHP
      • Authentication
      • Authorization
      • Chronos
      • Elastic Search
      • Queue
  • Version:
    • 6.0
      • 6.0
      • 5.4
      • 5.3
      • 5.2
      • 5.1
      • 5.0
      • 4.6
      • 4.5
      • 4.4
      • 4.3
      • 4.2
      • 4.1
      • 4.0
      • 3.10
      • 3.9
      • 3.8
      • 3.7
      • 3.6
      • 3.5
      • 3.4
      • 3.3
      • 3.2
      • 3.1
      • 3.0
      • 2.10
      • 2.9
      • 2.8
      • 2.7
      • 2.6
      • 2.5
      • 2.4
      • 2.3
      • 2.2
      • 2.1
      • 2.0
      • 1.3
      • 1.2

Namespaces

  • Global
  • Cake
    • AttributeResolver
    • Cache
    • Collection
    • Command
    • Console
    • Container
    • Controller
    • Core
    • Database
    • Datasource
    • Error
    • Event
    • Form
    • Http
    • I18n
    • Lock
    • Log
    • Mailer
    • Network
    • ORM
    • Routing
    • TestSuite
    • Utility
    • Validation
    • View

Namespace Iterator

Classes

  • CallbackFilterIterator

    Filters files using a custom callback function.

  • ContainsPathFilterIterator

    Filters files based on whether their path contains or matches specific patterns.

    Supports two types of patterns:

    • String patterns: Uses substring matching (str_contains) for simple strings
    • Regex patterns: Uses preg_match for patterns starting with /, #, or ~

    Uses OR logic: accepts if any pattern matches. Always allows directories to enable recursive traversal.

    Can be used to include or exclude files based on the $negate parameter:

    • When $negate is false (default): includes files matching patterns
    • When $negate is true: excludes files matching patterns
  • DepthFilterIterator

    Filters files by directory depth.

    Uses DepthOperator enum for comparison:

    • EQUAL: Depth must equal value
    • NOT_EQUAL: Depth must not equal value
    • LESS_THAN: Depth must be less than value
    • LESS_THAN_OR_EQUAL: Depth must be <= value
    • GREATER_THAN: Depth must be greater than value
    • GREATER_THAN_OR_EQUAL: Depth must be >= value
  • ExcludeDirectoryFilterIterator

    Filters out directories by name during recursive traversal.

    This filter prevents traversal into excluded directories entirely, making it more efficient than filtering after traversal.

  • FileTypeFilterIterator

    Filters files by type (files only, directories only, or all).

  • FilenameFilterIterator

    Filters files by filename using glob patterns.

    Supports glob patterns like:

    • *.php - All PHP files
    • Test*.php - Files starting with Test
    • {foo,bar}.php - foo.php or bar.php

    Can be used to include or exclude files based on the $negate parameter:

    • When $negate is false (default): includes files matching patterns
    • When $negate is true: excludes files matching patterns
  • GlobFilterIterator

    Filters files by matching glob patterns against relative paths.

    Supports patterns like:

    • src/**\/*.php - Recursive matching
    • tests/**\/*Test.php - Files ending with Test.php
    • *.md - Files in root directory
  • HiddenFileFilterIterator

    Filters out hidden files and directories (those starting with a dot).

  • SymlinkLoopFilterIterator

    Prevents descending into symbolic links that would cause an infinite loop.

    When symbolic links are followed, a link pointing to one of the directories currently being traversed (for example, a link to its own parent) would be descended into forever. This iterator keeps track of the directories from the root down to the current one and refuses to descend into a link whose target is already part of that chain.

    The link itself is still returned as an entry.

OpenHub
Pingping
Linode
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Reporting Security Issues
  • Privacy Policy
  • Logos & Trademarks
  • Community
  • Get Involved
  • Issues (Github)
  • Bakery
  • Featured Resources
  • Training
  • Meetups
  • My CakePHP
  • CakeFest
  • Newsletter
  • Linkedin
  • YouTube
  • Facebook
  • Twitter
  • Mastodon
  • Help & Support
  • Forum
  • Stack Overflow
  • IRC
  • Slack
  • Paid Support

Generated using CakePHP API Docs