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

Class: Salat

Source Location: /sub/Salat.class.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 123]
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 getPrayTime [line 282]

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 setConf [line 237]

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

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

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 Tue, 18 Aug 2009 00:12:52 +0300 by phpDocumentor 1.4.0