PHP Classes

Packages of Manel Zaera

Recommend this page to a friend!
  All class groups  >  All authors  >  Packages of Manel Zaera (3)  >  Mission progress status  >  Reputation  
Picture of Manel Zaera
Name: Manel Zaera <contact>
Classes: 3
Country: Spain Spain
Age: 52
All time rank: 216550 in Spain Spain
Week rank: 195 Up5 in Spain Spain Up
All time users: 1164
Week users: 0
Innovation award
Innovation award
Nominee: 1x
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image Calculadora Escons  
PHP Programming Innovation award nominee
June 2007
Number 10
Calculate elected seats using D'Hondt method
This class can be used to calculate the number of seats assigned to a party upon election results using the D'Hondt method.

It takes as parameters the number of available seats and an associative array that relates each party with the votes they received.

The class distributes the available seats using the D'Hondt method and returns an associative arrays that relates each party with the number of assigned seats that they got.

The code and the comments are in Catalan.

  Files folder image Feed Finder  
Check whether an URL has an RSS or Atom feed
This class can be used to check whether an URL is of an RSS or Atom feed.

It retrieves the contents of a Web resource given its URL.

The class tries to parse the retrieved content assuming it is a XML document.

It checks whether certain XML elements are present to determine whether it is a feed in RSS 1, RSS 2 or Atom formats.

The class can get feeds from an OPML file.

  Files folder image Sudoku Matrix  
Manipulate a Sudoku game matrix
This class can be used to manipulate a Sudoku game matrix.

It can generate a Sudoku game matrix with 4 levels of difficultu: easy, medium, hard and expert.

The class can also set and unset given cell positions and check if the game is complete.


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z