[ Index ]
 

Code source de eGroupWare 1.2.106-2

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

title

Body

[fermer]

/sitemgr/inc/ -> class.NtfMessages_BO.inc.php (source)

   1  <?php
   2      /**************************************************************************\
   3      * eGroupWare SiteMgr - Web Content Management                              *
   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: class.NtfMessages_BO.inc.php 20295 2006-02-15 12:31:25Z  $ */
  13  
  14  include_once (EGW_INCLUDE_ROOT . '/sitemgr/inc/class.generic_list_bo.inc.php');
  15  $GLOBALS['egw_info']['flags']['included_classes']['generic_list_bo'] = True;
  16  
  17  define("MAX_STR_LENGTH",200);
  18  
  19  class NtfMessages_BO extends generic_list_bo
  20  {
  21  
  22      var $site_bo;
  23      var $site;
  24  
  25  	function NtfMessages_BO()
  26      {
  27          $this->site_bo=CreateObject("sitemgr.Sites_BO");
  28          $this->site=False;
  29          $this->so=CreateObject("sitemgr.NtfMessages_SO");
  30          
  31      }
  32      
  33  	function get_site_langs()
  34      {
  35  
  36          if (empty($this->site))
  37              $this->site=$this->site_bo->read($this->get_master_id());
  38  
  39          $res=array();
  40          foreach ($this->site['sitelanguages'] as $lang)
  41          {
  42              $res[$lang]=$GLOBALS['Common_BO']->getlangname($lang);
  43          }
  44          return $res;
  45      }
  46      
  47  	function get_new_message_langs()
  48      {
  49          return array_diff($this->get_site_langs(),(array)$this->so->list_languages());
  50      }
  51  }


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