Package:
Summary:
Split listings of entries in multiple pages
Groups:
Author:
Description:
This class can be used to split listings of entries in multiple pages.
It takes as parameters the total number of entries in a listing, the number of the current page and the number of entries to show per page.
The class returns an array with details of a list of links to browse the listing pages that include the link URL, label and the number of the page.
Package:
Summary:
Manipulate multidimensional arrays in MySQL tables
Groups:
Author:
Description:
Have you ever wished you could deal with tables instead of multidimensional arrays, but didn't want the overhead associated with creating tables, populating them etc? This class is meant to be a simple alternative to using large associative data arrays. Elements are just as easy to add into temporary tables as they are to put into arrays, they are just as easy to get back out again... and MUCH easier to unset, filter and sort.
This class works by using an "array like" syntax (so it's easy to remember) and creates MySQL tables in memory. Basic functionality that you would expect to have when dealing with arrays is provided (in fact, you'll notice a striking similarity to what the methods "md_push" and "md_asort" do and their cousins do), but it leverages MySQL's ability to sort filter and delete etc. to simplify dealing with complex arrays. It also provides a wrapper method that allows the user to run their own SQL queries on the table (without having to worry about database connections or what the temporary table's name is).
Package:
Summary:
Tic-Tac-Toe game using alpha beta search algorithm
Groups:
Author:
Description:
This package implements an interactive Tic-Tac-Toe game
It can present a Tic-Tac-Toe board that is updated using AJAX requests upon each user move.
The package implements the alpha beta search algorithm (Minimax search optimized by performing alpha beta pruning) for determining the next move, which are common algorithms for zero-sum two player games (e.g. Tic Tac Toe and Chess).
Package:
Summary:
Authenticate Twitter users using oAuth
Groups:
Author:
Description:
This package can be used to authenticate Twitter users using oAuth.
It can sent HTTP requests to Twitter API in order to perform authentication of Twitter user using o Auth.
This package code is based on Jaisen Mathai oAuth classes.