fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [16197] More on eventplanner


From: sigurdne
Subject: [Fmsystem-commits] [16197] More on eventplanner
Date: Thu, 26 Jan 2017 02:55:50 -0500 (EST)

Revision: 16197
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16197
Author:   sigurdne
Date:     2017-01-26 02:55:49 -0500 (Thu, 26 Jan 2017)
Log Message:
-----------
More on eventplanner

Added Paths:
-----------
    trunk/eventplannerfrontend/inc/class.uiapplication.inc.php

Added: trunk/eventplannerfrontend/inc/class.uiapplication.inc.php
===================================================================
--- trunk/eventplannerfrontend/inc/class.uiapplication.inc.php                  
        (rev 0)
+++ trunk/eventplannerfrontend/inc/class.uiapplication.inc.php  2017-01-26 
07:55:49 UTC (rev 16197)
@@ -0,0 +1,27 @@
+<?php
+       phpgw::import_class('eventplanner.uiapplication');
+
+       class eventplannerfrontend_uiapplication extends 
eventplanner_uiapplication
+       {
+
+               public function __construct()
+               {
+                       $GLOBALS['phpgw']->translation->add_app('eventplanner');
+                       parent::__construct();
+                       unset($this->fields['modified']);
+                       unset($this->fields['created']);
+                       unset($this->fields['contact_email']);
+                       unset($this->fields['case_officer_name']);
+               }
+
+               public function query()
+               {
+                       $params = $this->bo->build_default_read_params();
+                       $params['filters']['status'] = 
eventplanner_application::STATUS_APPROVED;
+                       $values = $this->bo->read($params);
+                       array_walk($values["results"], array($this, 
"_add_links"), "eventplannerfrontend.uiapplication.edit");
+
+                       return $this->jquery_results($values);
+               }
+
+       }
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]