[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/backup/util/xml/parser/processors/ -> grouped_parser_processor.class.php (summary)

(no description)

Copyright: 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 326 lines (12 kb)
Included or required:0 times
Referenced: 6 times
Includes or requires: 0 files

Defines 11 functions

  __construct()
  add_path()
  before_path()
  after_path()
  postprocess_chunk()
  path_is_grouped()
  grouped_parent_exists()
  get_parent_path()
  grouped_child_exists()
  build_currentdata()
  add_missing_sub()

Functions
Functions that are not part of a class:

__construct(array $paths = array()   X-Ref
Remaining space for parent directory paths.


add_path($path, $grouped = false)   X-Ref
No description

before_path($path)   X-Ref
The parser fires this each time one path is going to be parsed

param: string $path xml path which parsing has started

after_path($path)   X-Ref
The parser fires this each time one path has been parsed

param: string $path xml path which parsing has ended

postprocess_chunk($data)   X-Ref
Override this method so grouping will be happening here
also deciding between accumulating/dispatching


path_is_grouped($path)   X-Ref
No description

grouped_parent_exists($path)   X-Ref
Function that will look for any grouped
parent for the given path, returning it if found,
false if not


get_parent_path($path)   X-Ref
Get the parent path using a local cache for performance.

param: $path string The pathname you wish to obtain the parent name for.
return: string The parent pathname.

grouped_child_exists($path)   X-Ref
Function that will look for any grouped
child for the given path, returning it if found,
false if not


build_currentdata($grouped, $data)   X-Ref
This function will accumulate the chunk into the specified
grouped element for later dispatching once it is complete


add_missing_sub($grouped, $path, $tags)   X-Ref
Add non-existing subarray elements




Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1