[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] [18513] Switch the old get_var to phpgw::get_var
From: |
Caeies |
Subject: |
[Phpgroupware-cvs] [18513] Switch the old get_var to phpgw::get_var |
Date: |
Wed, 09 Apr 2008 13:17:58 +0000 |
Revision: 18513
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=18513
Author: Caeies
Date: 2008-04-09 13:17:57 +0000 (Wed, 09 Apr 2008)
Log Message:
-----------
Switch the old get_var to phpgw::get_var
Modified Paths:
--------------
trunk/notes/inc/class.bonotes.inc.php
trunk/notes/inc/class.uinotes.inc.php
Modified: trunk/notes/inc/class.bonotes.inc.php
===================================================================
--- trunk/notes/inc/class.bonotes.inc.php 2008-03-27 10:59:27 UTC (rev
18512)
+++ trunk/notes/inc/class.bonotes.inc.php 2008-04-09 13:17:57 UTC (rev
18513)
@@ -86,12 +86,12 @@
$this->read_sessiondata();
$this->use_session = True;
- $start =
get_var('start',array('POST','GET'));
- $query =
get_var('query',array('POST','GET'));
- $sort =
get_var('sort',array('POST','GET'));
- $order =
get_var('order',array('POST','GET'));
- $filter =
get_var('filter',array('POST','GET'));
- $_cat_id =
get_var('cat_id',array('POST','GET'));
+ $start = phpgw::get_var('start',
'int');
+ $query = phpgw::get_var('query');
+ $sort = phpgw::get_var('sort');
+ $order = phpgw::get_var('order');
+ $filter = phpgw::get_var('filter');
+ $_cat_id = phpgw::get_var('cat_id',
'int');
$this->start = (isset($start)?$start:0);
Modified: trunk/notes/inc/class.uinotes.inc.php
===================================================================
--- trunk/notes/inc/class.uinotes.inc.php 2008-03-27 10:59:27 UTC (rev
18512)
+++ trunk/notes/inc/class.uinotes.inc.php 2008-04-09 13:17:57 UTC (rev
18513)
@@ -188,8 +188,8 @@
function edit()
{
- $note_id =
get_var('note_id',array('POST','GET'));
- $values = get_var('values',array('POST'));
+ $note_id = phpgw::get_var('note_id', 'int');
+ $values = phpgw::get_var('values', 'string');
if (is_array($values))
{
@@ -252,9 +252,9 @@
function delete()
{
- $note_id =
get_var('note_id',array('POST','GET'));
- $delete = get_var('delete',array('POST'));
- $cancel = get_var('cancel',array('POST'));
+ $note_id = phpgw::get_var('note_id', 'int');
+ $delete = phpgw::get_var('delete', 'bool');
+ $cancel = phpgw::get_var('cancel', 'bool');
$link_data = array
(
@@ -294,8 +294,8 @@
function view()
{
- $note_id = get_var('note_id',array('GET'));
- $action = get_var('action',array('GET'));
+ $note_id = phpgw::get_var('note_id', 'int');
+ $action = phpgw::get_var('action', 'string');
$GLOBALS['phpgw_info']['flags']['app_header'] =
lang('notes') . ': ' . lang('view note');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] [18513] Switch the old get_var to phpgw::get_var,
Caeies <=