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

Class: ArNumbers

Source Location: /sub/ArNumbers.class.php

Class Overview


This PHP class spell numbers in the Arabic idiom


Author(s):

Copyright:

  • 2009 Khaled Al-Shamaa

Methods



Class Details

[line 114]
This PHP class spell numbers in the Arabic idiom



Tags:

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


[ Top ]


Class Methods


constructor __construct [line 123]

ArNumbers __construct( )

Loads initialize values



Tags:

access:  public


[ Top ]

method getFeminine [line 269]

integer getFeminine( )

Get the feminine flag of counted object



Tags:

return:  return current setting of counted object feminine flag
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


[ Top ]

method getFormat [line 281]

integer getFormat( )

Get the grammer position flag of counted object



Tags:

return:  return current setting of counted object grammer position flag
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


[ Top ]

method int2str [line 297]

string int2str( integer $number, [string $outputCharset = null], [object $main = null])

Spell integer number in Arabic idiom



Tags:

return:  The Arabic idiom that spells inserted number
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

integer   $number   The number you want to spell in Arabic idiom
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 ]

method setFeminine [line 226]

boolean setFeminine( integer $value)

Set feminine flag of the counted object



Tags:

return:  TRUE if success, or FALSE if fail
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

integer   $value   Counted object feminine (1 for masculine & 2 for feminine)

[ Top ]

method setFormat [line 249]

boolean setFormat( integer $value)

Set the grammar position flag of the counted object



Tags:

return:  TRUE if success, or FALSE if fail
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

integer   $value   Grammar position of counted object (1 if Marfoua & 2 if Mansoub or Majrour)

[ Top ]


Documentation generated on Tue, 18 Aug 2009 00:12:50 +0300 by phpDocumentor 1.4.0