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

Class: Salat

Source Location: /sub/Salat.class.php

Class Overview


Using this PHP Class you can calculate the time of Muslim prayer according to the geographic location.


Author(s):

Copyright:

  • Khaled Al-Shamaa 2008

Methods



Class Details

[line 44]
Using this PHP Class you can calculate the time of Muslim prayer according to the geographic location.



Tags:

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


[ Top ]


Class Methods


method getPrayTime [line 175]

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

TRUE setConf( [String $sch = 'Shafi'], [Decimal $sunriseArc = -0.833333], [Decimal $ishaArc = -18], [Decimal $fajrArc = -18])

Setting rest of Salat calculation configuration



Tags:

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

TRUE setDate( [Integer $d = 2], [Integer $m = 8], [Integer $y = 1975])

Setting date of day for Salat calculation



Tags:

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

TRUE setLocation( [Decimal $l1 = 37.15861], [Decimal $l2 = 36.20278], [Integer $z = 2])

Setting location information for Salat calculation



Tags:

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