[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [7268] added WS-function
From: |
Erik Holm-Larsen |
Subject: |
[Fmsystem-commits] [7268] added WS-function |
Date: |
Mon, 09 May 2011 05:37:51 +0000 |
Revision: 7268
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7268
Author: erikhl
Date: 2011-05-09 05:37:49 +0000 (Mon, 09 May 2011)
Log Message:
-----------
added WS-function
Modified Paths:
--------------
trunk/activitycalendar/inc/class.soactivity.inc.php
Modified: trunk/activitycalendar/inc/class.soactivity.inc.php
===================================================================
--- trunk/activitycalendar/inc/class.soactivity.inc.php 2011-05-09 05:24:09 UTC
(rev 7267)
+++ trunk/activitycalendar/inc/class.soactivity.inc.php 2011-05-09 05:37:49 UTC
(rev 7268)
@@ -12,6 +12,16 @@
{
protected static $so;
+ public $xmlrpc_methods = array
+ (
+ array
+ (
+ 'name' => 'get_activities',
+ 'decription' => 'Get list of activities'
+ )
+ );
+
+
/**
* Get a static reference to the storage object associated with this
model object
*
@@ -392,4 +402,30 @@
return $result;
}
+ function get_activities()
+ {
+ $sql = "SELECT * FROM activity_activity";
+ $this->db->query($sql, __LINE__, __FILE__);
+ while ($this->db->next_record())
+ {
+ $activities[]= array
+ (
+ 'id' =>
(int) $this->db->f('id'),
+ 'title' =>
$this->db->f('title',true),
+ 'organization_id' =>
$this->db->f('organization_id',true),
+ 'group_id' =>
$this->db->f('group_id'),
+ 'district' =>
$this->db->f('district',true),
+ 'category' =>
$this->db->f('category'),
+ 'state' =>
$this->db->f('state',true),
+ 'target' =>
$this->db->f('target'),
+ 'description' =>
$this->db->f('description'),
+ 'time' =>
$this->db->f('time'),
+ 'contact_person_1' =>
$this->db->f('contact_person_1'),
+ 'contact_person_2' =>
$this->db->f('contact_person_2'),
+ 'special_adaptation'=>
$this->db->f('special_adaptation'),
+ );
+ }
+ return $activities;
+ }
+
}
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [7268] added WS-function,
Erik Holm-Larsen <=