Arabic
[ class tree: Arabic ] [ index: Arabic ] [ all elements ]

Class: ArKeySwap

Source Location: /sub/ArKeySwap.class.php

Class Overview


This PHP class convert keyboard language programmatically (English - Arabic)


Author(s):

Copyright:

  • 2009 Khaled Al-Shamaa

Variables

Methods



Class Details

[line 97]
This PHP class convert keyboard language programmatically (English - Arabic)



Tags:

author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
copyright:  2009 Khaled Al-Shamaa
link:  http://www.ar-php.org
license:  LGPL


[ Top ]


Class Variables

static $_swap_ar =  '<>][/:"~}{,.ذضصثقفغعهخحجدشسيبلاتنمكطئءؤرىةوزظًٌَُّإ÷×؛ٍِأـ،ْآ’؟'

[line 101]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $_swap_ar_azerty =  '>ضصثقفغعهخحجدشسيبلاتنمكطذ\\ئءؤرىةوزظ>&é"\'(-è_çà)=ضصثقغهخحجدشسيباتنمكطذ\\ئءؤرىةوزظ'

[line 104]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $_swap_en =  '{}DFL:"ZCV<>`qwertyuiop[]asdfghjkl;\'zxcvnm,./~QWERYIOPASHJKXNM?'

[line 100]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $_swap_fr =  '²azertyuiop^$qsdfghjklmù*<wxcvn,;:!²1234567890°+AZERYIOP¨£QSDFHJKLM%µ<WXCVN?./§'

[line 103]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


static method swap_ae [line 119]

static string swap_ae( string $text, [string $inputCharset = null], [object $main = null])

Make conversion to swap that odd Arabic text by original English sentence you meant when you type on your keyboard (if keyboard language was incorrect)



Tags:

return:  Normal English string
author:  Khaled Al-Shamaa
access:  public


Parameters:

string   $text   Odd Arabic string
string   $inputCharset   (optional) Input charset [utf-8|windows-1256|iso-8859-6] default value is NULL (use set input charset)
object   $main   Main Ar-PHP object to access charset converter options

[ Top ]

static method swap_ea [line 178]

static string swap_ea( string $text, [string $outputCharset = null], [object $main = null])

Make conversion to swap that odd English text by original Arabic sentence you meant when you type on your keyboard (if keyboard language was incorrect)



Tags:

return:  Normal Arabic string
author:  Khaled Al-Shamaa
access:  public


Parameters:

string   $text   Odd English string
string   $outputCharset   (optional) Output charset [utf-8|windows-1256|iso-8859-6] default value is NULL (use set output charset)
object   $main   Main Ar-PHP object to access charset converter options

[ Top ]


Documentation generated on Fri, 12 Mar 2010 01:01:43 +0300 by phpDocumentor 1.4.0