Login   Register  
PHP Classes
elePHPant
Icontem

Version Control: Managing revisions of content articles

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

  Author Author  
Picture of Cornelius Bolten
Name: Cornelius Bolten <e-mail contact>
Packages: 8 Browse all classes by Cornelius Bolten Browse all classes by
Country: Germany Germany - PHP jobs in Germany
Age: 30
All time rank: 23211 in Germany Germany
Week rank: 543 Down16 in Germany Germany Down
Innovation award
Innovation award
Nominee: 2x


  Detailed description   Download Download .zip .tar.gz  
This package is meant to manage archives of successive revisions of text content articles stored in a database. It enables version control of the articles in similar way to what the CVS program provides.

It is capable of storing in a separate database table all the versions of content articles that are stored in other tables.

This version control package makes it possible to retrieve any of the past versions of a content article, the date of each revision and the identification of the author that submitted each revision.

The base class archives content articles that may contain a variable number of fields of arbitrary length.

It also computes an MD5 hash of the content to verify whether the content has changed between revisions and avoids creating a new revision if nothing was changed.

The class can retrieve one or more revisions of a content article and output the differences between two articles using the diff utility program.

This package comes with an optional sub-class that is capable of storing and retrieving the content articles in a compressed format using the gzip library, so it can use less database table space.

This package version requires MySQLQueryContainer package to access to the database.

  Classes of Cornelius Bolten  >  Version Control  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Version Control
Base name: libversioncontrol
Description: Managing revisions of content articles
Version: -
PHP version: -
License: Free for non-commercial use
All time users: 2434 users
All time rank: 1455
Week users: 0 users
Week rank: 1722 Equal
 
  Groups   Rate classes User ratings   Dependencies  
  Applications   Related links   Files Files  

  Groups  
Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image Content management Components and tools to manage content View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
March 2004
Number 2

Prize: One downloadable copy of PHPEd by NuSphere
Content management is a very popular type of Web application. Many Web sites are generated automatically by content management systems that let the users publish rich text articles that are stored in the content management database.

More advanced content management systems let multiple the users colaborate in the edition of the same article, making it possible for different users correct or update the same article after the first revision. Some even let the users list the history of revisions and compare different versions to see what changes where made. This capability is known as version control.

This class can provide version control capabilities to content management systems that do not have such capabilities. It can successive revisions of articles in a separate table.

This class not only supports arbitrary type article revision archive but also provides the possibility to compress the data that is stored for each revision, which denotes a reasonable level of maturity of the component.

Manuel Lemos

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (87.5%) Good (84.4%) - Sufficient (75.0%) - - Not sure (59.7%) 902
Month: Not yet rated by the users

  Packages needed by this class  
Class Dependency Why it is needed
mysqlQueryContainer Required mysql-access-classes

  Applications that use this class  
Link Description
Back End CMS an open source content management system
more.content.cms commercial Content Management System
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
version control 2006 this is the latest version of this class

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.VersionControl.php Example example-script on how to use libVersionControl
Plain text file lib.gzVersionControl.php Class VersionControl with gz-compression
Plain text file lib.VersionControl.php Class main lib
Accessible without login Plain text file libVersionControl.sql Conf. needed Table-sql-script

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