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

Class: I18N_Arabic_Salat

Source Location: /I18N_Arabic/I18N_Arabic_Salat.php

Class Overview


This PHP class calculate the time of Muslim prayer according to the geographic location.


Author(s):

Copyright:

  • 2009 Khaled Al-Shamaa

Methods



Class Details

[line 169]
This PHP class calculate the time of Muslim prayer according to the geographic location.



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


method coordinate2deg [line 492]

float coordinate2deg( string $value)

Convert coordinates presented in degrees, minutes and seconds (i.e. 12°34'56"S formula) into usual float number in degree unit scale (i.e. -12.5822 value)



Tags:

return:  Equivalent float number in degree unit scale (i.e. -12.5822 value)
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

string   $value   Coordinate presented in degrees, minutes and seconds (i.e. 12°34'56"S formula)

[ Top ]

method getPrayTime [line 328]

array getPrayTime( )

Calculate Salat times for the date set in setSalatDate methode, and location set in setSalatLocation.



Tags:

return:  of Salat times + sun rise in the following format hh:mm where hh is the hour in local format and 24 mode mm is minutes with leading zero to be 2 digits always array items is [Fajr, Sunrise, Zuhr, Asr, Maghrib, Isha]
author:  Mohamad Magdy <mohamad_magdy_egy@hotmail.com>
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
source:  http://qasweb.org/qasforum/index.php?showtopic=177&st=0
access:  public


[ Top ]

method getQibla [line 461]

float getQibla( )

Determine Qibla direction using basic spherical trigonometric formula



Tags:

return:  Qibla Direction (from the north direction) in degrees
author:  S. Kamal Abdali <k.abdali@acm.org>
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
source:  http://www.patriot.net/users/abdali/ftp/qibla.pdf
access:  public


[ Top ]

method setConf [line 283]

boolean setConf( [string $sch = 'Shafi'], [decimal $sunriseArc = -0.833333], [decimal $ishaArc = -18], [decimal $fajrArc = -18])

Setting rest of Salat calculation configuration



Tags:

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


Parameters:

string   $sch   [Shafi|Hanafi] to define Muslims Salat calculation method (affect Asr time)
decimal   $sunriseArc   Sun rise arc (default value is -0.833333)
decimal   $ishaArc   Isha arc (default value is -18)
decimal   $fajrArc   Fajr arc (default value is -18)

[ Top ]

method setDate [line 211]

boolean setDate( [integer $d = 2], [integer $m = 8], [integer $y = 1975])

Setting date of day for Salat calculation



Tags:

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


Parameters:

integer   $d   Day of date you want to calculate Salat in
integer   $m   Month of date you want to calculate Salat in
integer   $y   Year (four digits) of date you want to calculate Salat in

[ Top ]

method setLocation [line 246]

boolean setLocation( [decimal $l1 = 37.15861], [decimal $l2 = 36.20278], [integer $z = 2])

Setting location information for Salat calculation



Tags:

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


Parameters:

decimal   $l1   Longitude of location you want to calculate Salat time in
decimal   $l2   Latitude of location you want to calculate Salat time in
integer   $z   Time Zone, offset from UTC (see also Greenwich Mean Time)

[ Top ]


Documentation generated on Sat, 07 Nov 2009 19:53:00 +0200 by phpDocumentor 1.4.0