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

Class: I18N_Arabic_Numbers

Source Location: /Arabic/Numbers.php

Class Overview


This PHP class spell numbers in the Arabic idiom


Author(s):

Copyright:

  • 2006-2012 Khaled Al-Sham'aa

Methods



Class Details

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



Tags:

author:  Khaled Al-Sham'aa <khaled@ar-php.org>
copyright:  2006-2012 Khaled Al-Sham'aa
link:  http://www.ar-php.org
license:  LGPL


[ Top ]


Class Methods


method getFeminine [line 229]

integer getFeminine( )

Get the feminine flag of counted object



Tags:

return:  return current setting of counted object feminine flag
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


[ Top ]

method getFormat [line 241]

integer getFormat( )

Get the grammer position flag of counted object



Tags:

return:  return current setting of counted object grammer position flag
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


[ Top ]

method int2indic [line 413]

string int2indic( integer $number)

Represent integer number in Arabic-Indic digits using HTML entities



Tags:

return:  The Arabic-Indic digits represent inserted integer number using HTML entities
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


Parameters:

integer   $number   The number you want to present in Arabic-Indic digits using HTML entities

[ Top ]

method int2str [line 254]

string int2str( integer $number)

Spell integer number in Arabic idiom



Tags:

return:  The Arabic idiom that spells inserted number
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


Parameters:

integer   $number   The number you want to spell in Arabic idiom

[ Top ]

method setFeminine [line 196]

object setFeminine( integer $value)

Set feminine flag of the counted object



Tags:

return:  to build a fluent interface
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


Parameters:

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

[ Top ]

method setFormat [line 214]

object setFormat( integer $value)

Set the grammar position flag of the counted object



Tags:

return:  to build a fluent interface
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


Parameters:

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

[ Top ]

method subInt2str [line 284]

string subInt2str( integer $number, [logical $zero = true])

Spell integer number in Arabic idiom



Tags:

return:  The Arabic idiom that spells inserted number
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  protected


Parameters:

integer   $number   The number you want to spell in Arabic idiom
logical   $zero   Present leading zero if true [default is true]

[ Top ]

method writtenBlock [line 356]

string writtenBlock( integer $number)

Spell sub block number of three digits max in Arabic idiom



Tags:

return:  The Arabic idiom that spells inserted sub block
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  protected


Parameters:

integer   $number   Sub block number of three digits max you want to spell in Arabic idiom

[ Top ]


Documentation generated on Tue, 17 Jan 2012 09:18:22 +0200 by phpDocumentor 1.4.0