[Debian-hebrew-package] r730 - /pkg/libhdate/trunk/bindings/php/hdate.php

kzamir-guest at users.alioth.debian.org kzamir-guest at users.alioth.debian.org
Thu Jan 31 20:10:55 UTC 2008


Author: kzamir-guest
Date: Thu Jan 31 20:10:55 2008
New Revision: 730

URL: http://svn.debian.org/wsvn/debian-hebrew/?sc=1&rev=730
Log:
FIXME: the svn-buildpackage want this file ?

Added:
    pkg/libhdate/trunk/bindings/php/hdate.php

Added: pkg/libhdate/trunk/bindings/php/hdate.php
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/libhdate/trunk/bindings/php/hdate.php?rev=730&op=file
==============================================================================
--- pkg/libhdate/trunk/bindings/php/hdate.php (added)
+++ pkg/libhdate/trunk/bindings/php/hdate.php Thu Jan 31 20:10:55 2008
@@ -1,0 +1,192 @@
+<?php
+
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 1.3.33
+ * 
+ * This file is not intended to be easily readable and contains a number of 
+ * coding conventions designed to improve portability and efficiency. Do not make
+ * changes to this file unless you know what you are doing--modify the SWIG 
+ * interface file instead. 
+ * ----------------------------------------------------------------------------- */
+
+// Try to load our extension if it's not already loaded.
+if (!extension_loaded("hdate")) {
+  if (strtolower(substr(PHP_OS, 0, 3)) === 'win') {
+    if (!dl('php_hdate.dll')) return;
+  } else {
+    // PHP_SHLIB_SUFFIX is available as of PHP 4.3.0, for older PHP assume 'so'.
+    // It gives 'dylib' on MacOS X which is for libraries, modules are 'so'.
+    if (PHP_SHLIB_SUFFIX === 'PHP_SHLIB_SUFFIX' || PHP_SHLIB_SUFFIX === 'dylib') {
+      if (!dl('hdate.so')) return;
+    } else {
+      if (!dl('hdate.'.PHP_SHLIB_SUFFIX)) return;
+    }
+  }
+}
+
+
+
+/* PHP Proxy Classes */
+class Hdate {
+	public $_cPtr=null;
+
+	function __construct() {
+		$this->_cPtr=new_Hdate();
+	}
+
+	function set_gdate($d,$m,$y) {
+		Hdate_set_gdate($this->_cPtr,$d,$m,$y);
+	}
+
+	function set_hdate($d,$m,$y) {
+		Hdate_set_hdate($this->_cPtr,$d,$m,$y);
+	}
+
+	function set_jd($jd) {
+		Hdate_set_jd($this->_cPtr,$jd);
+	}
+
+	function get_format_date($s) {
+		return Hdate_get_format_date($this->_cPtr,$s);
+	}
+
+	function get_day_of_week_string($s) {
+		return Hdate_get_day_of_week_string($this->_cPtr,$s);
+	}
+
+	function get_month_string($s) {
+		return Hdate_get_month_string($this->_cPtr,$s);
+	}
+
+	function get_hebrew_month_string($s) {
+		return Hdate_get_hebrew_month_string($this->_cPtr,$s);
+	}
+
+	function get_holyday_string($s) {
+		return Hdate_get_holyday_string($this->_cPtr,$s);
+	}
+
+	function get_holyday_type() {
+		return Hdate_get_holyday_type($this->_cPtr);
+	}
+
+	function get_parasha_string($s) {
+		return Hdate_get_parasha_string($this->_cPtr,$s);
+	}
+
+	function get_hebrew_year_string() {
+		return Hdate_get_hebrew_year_string($this->_cPtr);
+	}
+
+	function get_hebrew_day_string() {
+		return Hdate_get_hebrew_day_string($this->_cPtr);
+	}
+
+	function get_parasha() {
+		return Hdate_get_parasha($this->_cPtr);
+	}
+
+	function get_holyday() {
+		return Hdate_get_holyday($this->_cPtr);
+	}
+
+	function get_gday() {
+		return Hdate_get_gday($this->_cPtr);
+	}
+
+	function get_gmonth() {
+		return Hdate_get_gmonth($this->_cPtr);
+	}
+
+	function get_gyear() {
+		return Hdate_get_gyear($this->_cPtr);
+	}
+
+	function get_hday() {
+		return Hdate_get_hday($this->_cPtr);
+	}
+
+	function get_hmonth() {
+		return Hdate_get_hmonth($this->_cPtr);
+	}
+
+	function get_hyear() {
+		return Hdate_get_hyear($this->_cPtr);
+	}
+
+	function get_day_of_the_week() {
+		return Hdate_get_day_of_the_week($this->_cPtr);
+	}
+
+	function get_size_of_year() {
+		return Hdate_get_size_of_year($this->_cPtr);
+	}
+
+	function get_new_year_day_of_the_week() {
+		return Hdate_get_new_year_day_of_the_week($this->_cPtr);
+	}
+
+	function get_julian() {
+		return Hdate_get_julian($this->_cPtr);
+	}
+
+	function get_days() {
+		return Hdate_get_days($this->_cPtr);
+	}
+
+	function get_weeks() {
+		return Hdate_get_weeks($this->_cPtr);
+	}
+
+	function set_location($in_latitude,$in_longitude,$in_tz) {
+		Hdate_set_location($this->_cPtr,$in_latitude,$in_longitude,$in_tz);
+	}
+
+	function get_sunrise() {
+		return Hdate_get_sunrise($this->_cPtr);
+	}
+
+	function get_sunset() {
+		return Hdate_get_sunset($this->_cPtr);
+	}
+
+	function get_first_light() {
+		return Hdate_get_first_light($this->_cPtr);
+	}
+
+	function get_talit() {
+		return Hdate_get_talit($this->_cPtr);
+	}
+
+	function get_first_stars() {
+		return Hdate_get_first_stars($this->_cPtr);
+	}
+
+	function get_three_stars() {
+		return Hdate_get_three_stars($this->_cPtr);
+	}
+
+	function get_sun_hour() {
+		return Hdate_get_sun_hour($this->_cPtr);
+	}
+
+	function get_midday() {
+		return Hdate_get_midday($this->_cPtr);
+	}
+
+	function get_translator_string() {
+		return Hdate_get_translator_string($this->_cPtr);
+	}
+
+	function set_diaspora() {
+		Hdate_set_diaspora($this->_cPtr);
+	}
+
+	function set_israel() {
+		Hdate_set_israel($this->_cPtr);
+	}
+}
+
+
+?>




More information about the Debian-hebrew-package mailing list