Archive | June, 2003

PHPseagull: HOWTO Build a Simple Module

Posted on 30 June 2003 by Demian Turner

Intro
The purpose of this tutorial is to guide new PHPseagull users through the process of building a simple module. After completing the tutorial user will be familiar with the following concepts:

  • using the framework’s validate, process and display workflow model
  • accessing and setting session variables
  • basic error handling
  • dynamic text translation
  • identifying session type: public or member/admin
  • data access and working with DB_DataObject
  • using html transform methods from the Output object
  • using the Emailer class which is a simple wrapper for PEAR::Mail
  • modifying the tabbed navigation by creating a new tab
  • using framework variables
  • working with the basic OOP input/output model

In this tutorial we will be creating a Contact Us module, the end result will a downloadable sets of scripts you can plug into your current PHPseagull installation and use.

Requirements
You will need the latest version of PHPseagull which at the time of writing is 0.2.0.p1 and can be downloaded here.

Comments (0)

Let PHP Tell You If You Stayed In School Long Enough

Posted on 26 June 2003 by Demian Turner

That’s absolutely right, if you had any doubts as to whether you have enough degrees, accolades or general academic achievements, a simple class from the PEAR library is now all you need to reveal the plain truth.

Comments (1)

PHPseagull What’s What

Posted on 26 June 2003 by Demian Turner

I couldn’t really think of a better title but here’s a quick diagram explaining PHPseagull’s directory structure.  Hopefully this will be helpfull for developers looking at the package for the first time.  Basically all the important stuff is in /app/modules/Core 🙂

Comments (0)

PHPseagull 0.2.0-beta Released

Posted on 25 June 2003 by Demian Turner

I was thinking of titling this, “PHPseagull teams up with Naughty Bunny” to spark readers’ interests …

Quite a few changes have gone into this release, hence the 0.2.  Users of previous versions are encouraged to upgrade for new features:

BUGFIXES
20-06-03    Fixed incorrect instant message reply redirect
20-06-03    Fixed some errors for Linux client users: case sensitivity for script names, mime type variants

IMPROVEMENTS
25-06-03    Added ability for registered users to contribute articles which then prompt the admin user to edit/approve/publish
24-06-03    Added Util class where regex, datatype transforms will go
24-06-03    Big api cleanup, all manager classes now inherit from Manager (which used to be Page) and override standard add, insert, edit, update, delete, view methods
24-06-03    Added ability to view author profiles and save authors to ‘My Contacts’
24-06-03    Moved common vars into Base class for global access, including currentUid, currentUserType, LOCALEd nowDateTime, webRoot
24-06-03    Added optional Flesch readability score for articles
24-06-03    Added Instant Messenger to admin
24-06-03    Clicking on login name shows profile
20-06-03    Optional email confirmation sent out after registration
20-06-03    Login auditing with IP added for security
20-06-03    Added ‘My Account’ functionality
20-06-03    Made crlf OS dependent
20-06-03    Added config param to allow US date formatting, ie, MM.DD.YYYY
20-06-03    Updated PEAR classes Validate, Text
18-06-03    Created shell script to automate framework setup
16-06-03    App headers unified and cleaned up (in Process)
16-06-03    Output buffering added for performance improvement, easier header management

Comments (0)

MVC with TemplateTamer

Posted on 21 June 2003 by Demian Turner

I have posted a new mini-tutorial describing how to use Model-View-Controler pattern and TemplateTamer together.

Link to TT wiki page

Comments (0)

Naughty Bunny

Posted on 18 June 2003 by Demian Turner

Read more to find out what the naughty bunny did …

Comments (1)

Bridging J2ME and PHP

Posted on 18 June 2003 by Demian Turner

Quite a fine article over at Devarticles with a good overview of how you might bridge your existing PHP applications with mobile clients using technologies such as J2ME.

The tutorial includes extensive Java source code – it’s impressive how much more code is required to take care of basic operations in Java 😉

Comments (0)

PHPseagull 0.1.5-beta Released

Posted on 14 June 2003 by Demian Turner

BUGFIXES
14-06-03    Fixed bug in retrieve password method
12-06-03    Improved error handling and validation in Newsletter
11-06-03    Disabled logging to Apache’s error_log when DEBUG was set to 0
10-06-03    Fixed bug in schema where articles used incorrect attribute mapping
10-06-03    Removed PHP short tags for XML compliance
06-06-03    Fixed bug in Documentor where anchor tags were incorrectly formed

IMPROVEMENTS
14-06-03    Cleaned up the Login class
13-06-03    Overview docs significantly updated
12-06-03    Replaced most popup system alerts with in-browser equivalents, except for in Publisher due to js/frames issues
12-06-03    Removed Notice class made redundant by item above
11-06-03    Cleaned up GroupMgr
10-06-03    Added profanity filter for majority of user input
10-06-03    Updated PEAR classes: HTTP, HTTP_Header, HTTP_Request, Net_URL, Net_Socket

get it here.

Comments (0)

PHPseagull: Basic Workflow

Posted on 14 June 2003 by Demian Turner

This article from the PHPseagull documentation will get you started with the main concepts of the framework. Later in the series will be a practical, step-by-step guide to building your own modules.

Basic workflow in PHPseagull is simple: you create entities and you manage them.

For a discussion on working with entities please see here. Once you have all your entities created you manage them with manager classes. Each module in PHPseagull has at least one manager class, in some cases more complex modules, like Publisher, have more than one manager class because they have to manage a number of entities.

Each manager class must inherit from the Page class which has the following abstract methods defined:

  • validate()
  • process()
  • display()

The manager classes override the workflow methods according to the particular requirements of the module.

Comments (0)

Working with Entities: An Intro to DB_Dataobject

Posted on 13 June 2003 by Demian Turner

taken from the documentation on Seagull.

Entities are simply the basic content objects of your application, the data structures you’re going to be working with.  If you already know about entities, please skip down to the DB_Dataobjects section.

What are Entities?If you’re building a basic web app, let’s say a blog, then you’re likely dealing with some of the following entities:

  • article
  • comment
  • user

What about article date, or user name you ask?  These are attributes.  Note that entities are always referred to in the singular. For more detail on the difference between entities and attributes see this article.  Another concept that goes hand-in-hand with entities is collections, which as you might have guessed are lists or collections of entities.  Examples of collections: all the articles on your homepage, all the comments assoicated with an article, all the results from a particular search query.

Comments (1)

Categories

Books

Demian Turner's currently-reading book recommendations, reviews, favorite quotes, book clubs, book trivia, book lists

Facebook