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:

  • 2006-2010 Khaled Al-Shamaa

Variables

Methods



Class Details

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



Tags:

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


[ Top ]


Class Variables

$feminine =  1

[line 121]



Tags:

access:  protected

Type:   mixed


[ Top ]

$format =  1

[line 122]



Tags:

access:  protected

Type:   mixed


[ Top ]

$individual = array()

[line 120]



Tags:

access:  protected

Type:   mixed


[ Top ]

$int2strOutput =  'utf-8'

[line 128]

"int2str" method output charset



Tags:

access:  public

Type:   String


[ Top ]



Class Methods


constructor __construct [line 133]

ArNumbers __construct( )

Loads initialize values



Tags:

access:  public


[ Top ]

method getFeminine [line 217]

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

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

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

object setFeminine( integer $value)

Set feminine flag of the counted object



Tags:

return:  to build a fluent interface
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 202]

object setFormat( integer $value)

Set the grammar position flag of the counted object



Tags:

return:  to build a fluent interface
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 ]

method subInt2str [line 271]

string subInt2str( 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:  protected


Parameters:

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

[ Top ]

method writtenBlock [line 321]

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-Shamaa <khaled.alshamaa@gmail.com>
access:  protected


Parameters:

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

[ Top ]


Documentation generated on Sat, 14 Aug 2010 13:23:56 -0700 by phpDocumentor 1.4.0