Login   Register  
PHP Classes
elePHPant
Icontem

Comparator Tools

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Fabian Schmengler
Name: Fabian Schmengler is available for providing paid consulting. Contact Fabian Schmengler .
Packages: 5 Browse all classes by Fabian Schmengler Browse all classes by
Country: Germany Germany - PHP jobs in Germany
Age: 30
All time rank: 116478 in Germany Germany
Week rank: 1063 Up52 in Germany Germany Up
Innovation award
Innovation award
Nominee: 4x


  Detailed description   Download .zip .tar.gz  
This package can be used to Sort and compare objects of many types.

It defines the comparable interface that is implemented by several different objects meant to compare common types of values like as files by any of their attributes such as name, size, creation or modification time.

Additionally it provides classes that take advantage of objects that implement the Comparable interface to sort arrays of objects.

  Classes of Fabian Schmengler  >  Comparator Tools  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Comparator Tools
Base name: comparator-tools
Description: Compare and sort objects of many types
Version: 0.9
PHP version: 5.1
License: BSD License
All time users: 369 users
All time rank: 5687
Week users: 0 users
Week rank: 1296 Equal
 
  Groups   Freshmeat project   Rate classes User ratings  
  Applications   Related links   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Data types Modeling and manipulating data types View top rated classes
Group folder image Language Constructs to assist in the language control View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
October 2010
Number 2

Prize: One subscription to the PDF edition of the PHP Architect magazine
Most sorting algorithms determine the order by which a set of elements is stored by comparing pairs of elements.

This package implements a comparable interface that can be implemented by any objects of any classes that you may need to be sorted.

Manuel Lemos

  Freshmeat project  
Project record: comparator-tools
Popularity score: 21.82
Vitality score: 1.48

  User ratings  
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
github.com Latest version at github

  Files folder image Files  
File Role Description
Files folder imageIterators (1 file)
Files folder imageComparators (10 files)
Files folder imageexample (6 files)
Plain text file license.txt Lic. BSD License
Accessible without login Plain text file readme.txt Doc. Documentation
Plain text file comparatortools.lib.php Aux. library loader, include this file to use the package
Plain text file ComparatorTool.php Class abstract tool class
Plain text file ObjectArrayModifier.php Class tool class for other array modifications (diff, intersect, unique)
Plain text file ObjectSorter.php Class tool class for sorting
Plain text file Comparable.php Class comparable interface
Plain text file Comparator.php Class comparator interface
Plain text file ComparatorException.php Class comparator exception
Plain text file functions.inc Aux. procedural interface (osort, orsort etc.)

  Files  /  Files folder image Iterators  
File Role Description
  Plain text file ObjectSortingIterator.php Class ObjectSorter functionality for iterators

  Files  /  Files folder image Comparators  
File Role Description
  Plain text file ComparableComparator.php Class comparator for Comparable interface
  Plain text file ObjectComparator.php Class comparator for object identity
  Plain text file ReverseComparator.php Class decorator class to revert comparator outcome
  Plain text file SplFileInfoComparator.php Class abstract comparator for SplFileInfo objects
  Plain text file SplFileInfoComparatorATime.php Class compare SplFileInfo objects by access time
  Plain text file SplFileInfoComparatorCTime.php Class compare SplFileInfo objects by creation time
  Plain text file SplFileInfoComparatorMTime.php Class compare SplFileInfo objects by modification time
  Plain text file SplFileInfoComparatorName.php Class compare SplFileInfo objects by file name
  Plain text file SplFileInfoComparatorSize.php Class compare SplFileInfo objects by file size
  Plain text file SplFileInfoComparatorType.php Class compare SplFileInfo objects by file type

  Files  /  Files folder image example  
File Role Description
  Plain text file ExampleComparator.php Example an implementation of the Comparator interface, used by the examples
  Plain text file ExampleData.php Example an implementation of the Comparable interface, used by the examples
  Plain text file randomdata.inc Example generation of a randomized object array
  Plain text file sort.php Example some sorting
  Plain text file sort_procedural.php Example same example but with the procedural interface
  Plain text file advanced.php Example more examples

Download all files: comparator-tools.tar.gz comparator-tools.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.