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

Class: ArNumbers

Source Location: /sub/ArNumbers.class.php

Class Overview


PHP class to spell numbers in the Arabic idiom. This function is very useful for financial applications in Arabic for example.


Author(s):

Copyright:

  • Khaled Al-Shamaa 2008

Methods



Class Details

[line 38]
PHP class to spell numbers in the Arabic idiom. This function is very useful for financial applications in Arabic for example.



Tags:

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


[ Top ]


Class Methods


constructor __construct [line 44]

ArNumbers __construct( )



Tags:

access:  public


[ Top ]

method getFeminine [line 180]

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 190]

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 200]

String int2str( Integer $number)

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

[ Top ]

method setFeminine [line 144]

TRUE setFeminine( Integer $value)

Set feminine flag of the counted object



Tags:

return:  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 163]

TRUE setFormat( Integer $value)

Set the grammar position flag of the counted object



Tags:

return:  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 Thu, 21 Feb 2008 13:58:55 +0200 by phpDocumentor 1.4.0