[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/addressbook/ -> svctest.php (source)

   1  <?php
   2    /**************************************************************************\
   3    * eGroupWare - Addressbook - API contacts service test                     *
   4    * http://www.egroupware.org                                                *
   5    * --------------------------------------------                             *
   6    *  This program is free software; you can redistribute it and/or modify it *
   7    *  under the terms of the GNU General Public License as published by the   *
   8    *  Free Software Foundation; either version 2 of the License, or (at your  *
   9    *  option) any later version.                                              *
  10    \**************************************************************************/
  11  
  12    /* $Id: svctest.php 20295 2006-02-15 12:31:25Z  $ */
  13  
  14      $GLOBALS['egw_info'] = array();
  15      $GLOBALS['egw_info']['flags'] = array(
  16          'currentapp' => 'addressbook',
  17          'noheader'   => True,
  18          'nonavbar'   => True
  19      );
  20      include('../header.inc.php');
  21  
  22      $obj = CreateObject('phpgwapi.service');
  23  
  24      /* Entire addressbook */
  25      $tmp = $obj->exec(array('contacts','read_list'));
  26      echo '<br/>Entire list:';
  27      _debug_array($tmp);
  28  
  29      /* Single entry with id of 182 */
  30      $tmp = $obj->exec(array('contacts','read',array('id' => 182)));
  31      echo '<br/>Single entry:';
  32      _debug_array($tmp);
  33  
  34      $GLOBALS['phpgw']->common->phpgw_footer();
  35  ?>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7