[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] [18468] this shouldn't have gone in - more on this la
From: |
Dave Hall |
Subject: |
[Phpgroupware-cvs] [18468] this shouldn't have gone in - more on this later |
Date: |
Sat, 02 Feb 2008 13:57:27 +0000 |
Revision: 18468
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=18468
Author: skwashd
Date: 2008-02-02 13:57:27 +0000 (Sat, 02 Feb 2008)
Log Message:
-----------
this shouldn't have gone in - more on this later
Removed Paths:
-------------
trunk/phpgwapi/inc/class.template_newdesign.inc.php
Deleted: trunk/phpgwapi/inc/class.template_newdesign.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.template_newdesign.inc.php 2008-02-02 13:55:34 UTC
(rev 18467)
+++ trunk/phpgwapi/inc/class.template_newdesign.inc.php 2008-02-02 13:57:27 UTC
(rev 18468)
@@ -1,67 +0,0 @@
-<?php
- // INSERT HEADER HERE
- class phpgwapi_template_newdesign
- {
- public $public_functions = array
- (
- 'store' => True,
- 'retrive' => True
- );
-
- // TODO: document me with phpdoc
- public function store()
- {
- $location = phpgw::get_var('location');
- $data = phpgw::get_var('data', 'raw');
-
- if( $location == null )
- {
- header("HTTP/1.0 406 Not Acceptable");
- return "Missing location parameter";
- }
-
- $json = json_decode($data, true);
-
- if( $json == null )
- {
- header("HTTP/1.0 406 Not Acceptable");
- return "Invalid JSON data parameter";
- }
-
-
$GLOBALS['phpgw']->session->appsession("template_newdesign_$location",
'phpgwapi', $json);
- return $json;
- }
-
- // TODO: document me with phpdoc
- public function retrieve()
- {
- $location = phpgw::get_var('location');
-
- if( $location == null )
- {
- header("HTTP/1.0 406 Not Acceptable");
- return "Missing location parameter";
- }
-
- $data = self::retrieve_local($location);
-
- if ( $data == null )
- {
- header("HTTP/1.0 404 Not Found");
- return "No data found on that location";
- }
-
- return $data;
- }
-
- // TODO: document me with phpdoc
- public static function retrieve_local($location)
- {
- return
$GLOBALS['phpgw']->session->appsession("template_newdesign_{$location}",
'phpgwapi');
- }
-
- public static function store_local($location, $data)
- {
-
$GLOBALS['phpgw']->session->appsession("template_newdesign_$location",
'phpgwapi', $data);
- }
- }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] [18468] this shouldn't have gone in - more on this later,
Dave Hall <=