[ Index ]
 

Code source de eGroupWare 1.2.106-2

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

title

Body

[fermer]

/resources/inc/ -> class.bo_resources.inc.php (sommaire)

eGroupWare - resources

Author: Cornelius Weiss <egw@von-und-zu-weiss.de>
Author: Lukas Weiss <wnz_gh05t@users.sourceforge.net>
License: http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
Version: $Id: class.bo_resources.inc.php 22437 2006-09-15 19:36:16Z nelius_weiss $
Poids: 538 lignes (17 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

bo_resources:: (14 méthodes):
  bo_resources()
  get_rows()
  read()
  save()
  delete()
  get_acc_list()
  get_calendar_info()
  get_calendar_new_status()
  link_query()
  link_title()
  save_picture()
  get_picture()
  remove_picture()
  get_genpicturelist()


Classe: bo_resources  - X-Ref

General business object for resources

bo_resources()   X-Ref
Pas de description

get_rows($query,&$rows,&$readonlys)   X-Ref
get rows for resources list

Cornelius Weiss <egw@von-und-zu-weiss.de>

read($res_id)   X-Ref
reads a resource exept binary datas

Cornelius Weiss <egw@von-und-zu-weiss.de>
param: int $res_id resource id
return: array with key => value or false if not found or allowed

save($resource)   X-Ref
saves a resource. pictures are saved in vfs

Cornelius Weiss <egw@von-und-zu-weiss.de>
param: array $resource array with key => value of all needed datas
return: string msg if somthing went wrong; nothing if all right

delete($res_id)   X-Ref
deletes resource including pictures and links

author: Lukas Weiss <wnz_gh05t@users.sourceforge.net>
param: int $res_id id of resource

get_acc_list($res_id)   X-Ref
gets list of accessories for resource

Cornelius Weiss <egw@von-und-zu-weiss.de>
param: int $res_id id of resource
return: array

get_calendar_info($res_id)   X-Ref
returns info about resource for calender

author: Cornelius Weiss<egw@von-und-zu-weiss.de>
param: int/array $res_id single id or array $num => $res_id
return: array

get_calendar_new_status($res_id)   X-Ref
returns status for a new calendar entry depending on resources ACL

author: Cornelius Weiss <egw@von-und-zu-weiss.de>
param: int $res_id single id
return: array

link_query( $pattern )   X-Ref

author: Cornelius Weiss <egw@von-und-zu-weiss.de>

link_title( $resource )   X-Ref

author: Cornelius Weiss <egw@von-und-zu-weiss.de>
return: string/boolean string with title, null if resource does not exist or false if no perms to view it

save_picture($file,$resouce_id)   X-Ref
resizes and saves an pictures in vfs

Cornelius Weiss <egw@von-und-zu-weiss.de>
param: array $file array with key => value
param: int $resource_id
return: mixed string with msg if somthing went wrong; nothing if all right

get_picture($res_id=0,$size=false)   X-Ref
get resource picture either from vfs or from symlink
Cornelius Weiss <egw@von-und-zu-weiss.de>

param: int $res_id id of resource
param: bool $size false = thumb, true = full pic
return: string url of picture

remove_picture($res_id)   X-Ref
remove_picture
removes picture from vfs

Cornelius Weiss <egw@von-und-zu-weiss.de>
param: int $res_id id of resource
return: bool succsess or not

get_genpicturelist()   X-Ref
get_genpicturelist
gets all pictures from 'generic picutres dir' in selectbox style for eTemplate

Cornelius Weiss <egw@von-und-zu-weiss.de>
return: array directory contens in eTemplates selectbox style



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