Sitellite Application Framework
Class Tree         Index         All Elements

Class: SQL

Source Location: Program_Root/Database/SQL.php

Class Overview

I18n
   |
   --SQL

SQL extends I18n to become an SQL abstraction layer for Sitellite.


Author(s)

Version

  • 1.2, 2002-04-30, $Id: SQL.php,v 1.3 2005/07/06 15:30:56 lux Exp $

Copyright

  • Copyright (C) 2001-2003, Simian Systems Inc.

Methods


Inherited Variables

Inherited Methods

Class: I18n

I18n::I18n()
Constructor Method. Includes the appropriate language file
I18n::build_keylist()
Generates an associative array of all the occurrences of ->get ('...'), ->getf ('...'), and [I18n: ...] in all files in the directory specified (recursively). This essentially creates a serializeable keylist that can be used as a point of reference for building language files.
I18n::get()
Takes a string, serializes it to generate a key, and performs
I18n::getf()
Takes a string, serializes it to generate a key, and performs
I18n::getIndex()
I18n::getLanguage()
Returns a single language node as an object, taken from the specified languages.php file.
I18n::getLanguages()
Returns a 2-D array from the specified language file, which is an INI file. Each section name in the file corresponds to a different available language. Keys in each section include 'name', 'code', 'locale', 'charset', 'fallback', and 'default'.
I18n::negotiate()
Returns the preferred language of the current visitor.
I18n::serialize()
Generates a key for use in a key/value lookup on the $lang_hash array. Uses the metaphone () of the first few words in the string, as well as the length of the string to generate the key.
I18n::setLocale()
I18n::writeIndex()
I18n::writeLanguage()

Class Details

[line 48]
SQL extends I18n to become an SQL abstraction layer for Sitellite.

New in 1.2:

  • Created an abstract() method as an alias for I18n's get().

1 <?php
2
3 For information and examples, please see the I18n class docs.
4
5 ? >




Tags:

access:  public
version:  1.2, 2002-04-30, $Id: SQL.php,v 1.3 2005/07/06 15:30:56 lux Exp $
license:  http://www.sitellite.org/index/license
copyright:  Copyright (C) 2001-2003, Simian Systems Inc.
author:  John Luxford <mailto:lux@simian.ca>


[ Top ]


Class Methods


constructor SQL [line 58]

SQL SQL( string $driver, [string $path = 'inc/sql'], [string $page = ''])

Constructor Method.



Tags:

access:  public


Parameters:

string   $driver  
string   $path  
string   $page  

[ Top ]

method abstractSql [line 70]

string abstractSql( string $sql)

An alias for the I18n get() method.



Tags:

access:  public


Parameters:

string   $sql  

[ Top ]


Copyright © 2007, SIMIAN systems Inc.
All rights reserved. Privacy policy
Documentation generated on Tue, 13 Feb 2007 17:19:35 -0600 by Sitellite AppDoc and phpDocumentor 1.2.2