- Description
-
Class trees
Index of elements
Todo List
Interfaces
Phpfox_Cache_Interface
Phpfox_Database_Interface
Phpfox_Gateway_Interface
Phpfox_Image_Interface
Phpfox_Mail_Interface
Classes
Database_Driver_Mssql
Database_Driver_Oracle
Database_Driver_Postgres
Database_Driver_Sqlite
Phpfox
Phpfox_Ajax
Phpfox_Api
Phpfox_Archive
Phpfox_Archive_Export
Phpfox_Archive_Extension_Tar
Phpfox_Archive_Extension_Xml
Phpfox_Archive_Extension_Zip
Phpfox_Archive_Import
Phpfox_Archive_Support
Phpfox_Cache
Phpfox_Cache_Abstract
Phpfox_Cache_Storage_File
Phpfox_Cache_Storage_Memcache
Phpfox_Cdn
Phpfox_Cdn_Abstract
Phpfox_Cdn_Module_S3
Phpfox_Component
Phpfox_Cron
Phpfox_Database
Phpfox_Database_Dba
Phpfox_Database_Driver_Mysql
Phpfox_Database_Driver_Mysqli
Phpfox_Database_Export
Phpfox_Database_Support
Phpfox_Date
Phpfox_Debug
Phpfox_Diff_Md5
Phpfox_Editor
Phpfox_Error
Phpfox_File
Phpfox_File_Minimize
Phpfox_Ftp
Phpfox_Gateway
Phpfox_Gateway_Api_2checkout
Phpfox_Gateway_Api_Paypal
Phpfox_Hash
Phpfox_Image
Phpfox_Image_Abstract
Phpfox_Image_Helper
Phpfox_Image_Library_Gd
Phpfox_Locale
Phpfox_Mail
Phpfox_Mail_Driver_Phpmailer_Mail
Phpfox_Mail_Driver_Phpmailer_Smtp
Phpfox_Module
Phpfox_Pager
Phpfox_Parse_Bbcode
Phpfox_Parse_Css
Phpfox_Parse_Format
Phpfox_Parse_Input
Phpfox_Parse_Output
Phpfox_Parse_Wiki
Phpfox_Plugin
Phpfox_Process
Phpfox_Request
Phpfox_Search
Phpfox_Search_Inline
Phpfox_Server
Phpfox_Service
Phpfox_Session
Phpfox_Session_Handler
Phpfox_Session_Handler_Default
Phpfox_Session_Handler_File
Phpfox_Session_Handler_Memcache
Phpfox_Session_Storage_Cookie
Phpfox_Session_Storage_Session
Phpfox_Setting
Phpfox_Spam
Phpfox_Spam_Hash
Phpfox_Template
Phpfox_Url
Phpfox_Validator
Phpfox_Xml_Builder
Phpfox_Xml_Parser
Functions
d
e
p
Files
2checkout.class.php
abstract.class.php
abstract.class.php
abstract.class.php
ajax.class.php
api.class.php
archive.class.php
bbcode.class.php
builder.class.php
cache.class.php
cdn.class.php
component.class.php
cookie.class.php
cron.class.php
css.class.php
database.class.php
date.class.php
dba.class.php
debug.class.php
default.class.php
editor.class.php
error.class.php
export.class.php
export.class.php
file.class.php
file.class.php
file.class.php
format.class.php
ftp.class.php
gateway.class.php
gd.class.php
handler.class.php
hash.class.php
hash.class.php
helper.class.php
image.class.php
import.class.php
inline.class.php
input.class.php
interface.class.php
interface.class.php
interface.class.php
interface.class.php
interface.class.php
locale.class.php
mail.class.php
mail.class.php
md5.class.php
memcache.class.php
memcache.class.php
minimize.class.php
module.class.php
mssql.class.php
mysql.class.php
mysqli.class.php
oracle.class.php
output.class.php
pager.class.php
parser.class.php
paypal.class.php
phpfox.class.php
plugin.class.php
postgres.class.php
process.class.php
request.class.php
s3.class.php
search.class.php
server.class.php
service.class.php
session.class.php
session.class.php
setting.class.php
smtp.class.php
spam.class.php
sqlite.class.php
support.class.php
support.class.php
tar.class.php
template.class.php
url.class.php
validator.class.php
wiki.class.php
xml.class.php
zip.class.php
Template-
Classes
Phpfox_Template_Cache
Files
cache.class.php
Phpfox_Locale
Language Localization Class is used to display all the phrases on the site allowing phpFox to support multiple languages
Located in /include/library/phpfox/locale/locale.class.php (line 17)
string
getPhrase
(string $sParam, [array $aParams = array()], [bool $bNoDebug = false], [string $sDefault = null], [string $sLang = ''])
array
$_aAscii
= array(// Svenska
'246' => 'o',
'228' => 'a',
'229' => 'a',
'214' => 'O',
'196' => 'A',
'197' => 'A'
) (line 45)
ASCII conversion for URL strings (non-latin character support)
array
$_aCache
= array() (line 60)
ARRAY of phrases to be cached on a specific page
array
$_aLanguage
= array() (line 31)
ARRAY of the current language package being used
array
$_aLanguages
= array() (line 38)
ARRAY of all the language packages
array
$_aPhrases
= array() (line 24)
ARRAY of all the phrases
array
$_aRules
= array() (line 89)
Regex rules to manipulate phrases
bool
$_bIsCached
= false (line 82)
Check to see if we already cached this page
object
$_oCache
= null (line 75)
Cache object
string
$_sCacheId
(line 67)
Cache ID associated with the caching of phrases for a specific page
unknown_type
$_sOverride
= '' (line 96)
Use this variable to override the default language ID
Constructor __construct (line 105)
Class constructor used to load the default language package and all the phrases that are part of that language package. Also loads languag rules for that specific language package. All this information is cached and database queries are only executed the first time the site is loaded after a hard re-cache.
cache (line 450)
Caches all the phrases being used on a specific page.
convert (line 506)
Converts HTML template code in phrases into actual phrases.
- string $sPhrase: Phrase to convert.
getLang (line 196)
Get all the information provided on the current language package being used.
getLangBy (line 207)
Get all the information for a specific language package
- string $sVar: Language ID to look for
getLangId (line 219)
Return the language ID for the current language package in use. This value is based on several variables as specific users can select a language package they want to browse the site in and admins can also select the default language package for the site.
getPhrase (line 299)
Gets a phrase from a language.
Example Usage (PHP)
Example Usage (HTML)
- {phrase var='for.bar'}
- string $sParam: Phrase param that is unique for that specific phrase.
- array $aParams: (Optional) ARRAY of data we need to replace in the phrase
- bool $bNoDebug: (Optional) FALSE allows debug mode to be executed, while TRUE forces that there is no debug output.
- string $sDefault: (Optional) If the phrase is not found you can pass a default string in its place and we will return that instead.
- string $sLang: (Optional) By default we use the default language ID, however you can specifiy to load a phrase for a specific language package here.
isPhrase (line 259)
Checks if a phrase exists in the language package or not
- string $sParam: Phrase to check if it exists
parse (line 492)
Parses a phrase to convert ASCII rules.
- string $sTxt: Phrase to parse.
setCache (line 436)
Sets the cache ID when caching phrases for a specific page.
translate (line 467)
Translates a phrase from one language to another, if the translation exists; otherwise we return the default phrase.
- string $sStr: Full string of the phrase.
- mixed $sPrefix: (Optional) Unique ID of a group of phrases.
_convert (line 606)
Converts HTML template code in phrases into actual phrases.
- string $sPhrase: Phrase to convert.
- $aMatches
_getModuleLanguage (line 539)
Loads and caches phrases for a specific module.
- string $sModule: Module ID
- bool $bForce: TRUE to force loading phrases or FALSE to not.
_getPhrases (line 581)
Get all the phrases for a specific language package.
- string $sId: Language ID.
_parse (line 527)
Parses a phrase to convert ASCII rules.
- string $sTxt: Phrase to parse.
- $mParam
Documentation generated on Tue, 28 Sep 2010 10:36:40 +0200 by phpDocumentor 1.4.0a2