[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/data/ -> CRMEntity.php (sommaire)

(pas de description)

Poids: 1026 lignes (36 kb)
Inclus ou requis: 36 fois
Référencé: 0 fois
Nécessite: 5 fichiers
 include/utils/UserInfoUtil.php
 include/logging.php
 data/Tracker.php
 config.php
 include/utils/utils.php

Définit 1 class

CRMEntity:: (18 méthodes):
  saveentity()
  insertIntoAttachment1()
  uploadAndSaveFile()
  insertIntoCrmEntity()
  insertIntoEntityTable()
  deleteRelation()
  getOldFileName()
  retrieve_entity_info()
  save()
  process_list_query()
  process_full_list_query()
  mark_deleted()
  retrieve_by_string_fields()
  process_special_fields()
  checkIfCustomTableExists()
  constructCustomQueryAddendum()
  get_full_list()
  track_view()


Classe: CRMEntity  - X-Ref

saveentity($module)   X-Ref
This method implements a generic insert and update logic for any SugarBean
This method only works for subclasses that implement the same variable names.
This method uses the presence of an id vtiger_field that is not null to signify and update.
The id vtiger_field should not be set otherwise.
todo - Add support for vtiger_field type validation and encoding of parameters.
Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
All Rights Reserved.
Contributor(s): ______________________________________..


insertIntoAttachment1($id,$module,$filedata,$filename,$filesize,$filetype,$user_id)   X-Ref
Pas de description

uploadAndSaveFile($id,$module,$file_details)   X-Ref
This function is used to upload the attachment in the server and save that attachment information in db.

param: int $id  - entity id to which the file to be uploaded
param: string $module  - the current module name
param: array $file_details  - array which contains the file information(name, type, size, tmp_name and error)

insertIntoCrmEntity($module)   X-Ref
Pas de description

insertIntoEntityTable($table_name, $module)   X-Ref
Pas de description

deleteRelation($table_name)   X-Ref
Pas de description

getOldFileName($notesid)   X-Ref
Pas de description

retrieve_entity_info($record, $module)   X-Ref
Pas de description

save($module_name)   X-Ref
Pas de description

process_list_query($query, $row_offset, $limit= -1, $max_per_page = -1)   X-Ref
Pas de description

process_full_list_query($query)   X-Ref
Pas de description

mark_deleted($id)   X-Ref
Pas de description

retrieve_by_string_fields($fields_array, $encode=true)   X-Ref
Pas de description

process_special_fields()   X-Ref
Pas de description

checkIfCustomTableExists($tablename)   X-Ref
Function to check if the custom vtiger_field vtiger_table exists
return true or false


constructCustomQueryAddendum($tablename,$module)   X-Ref
function to construct the query to fetch the custom vtiger_fields
return the query to fetch the custom vtiger_fields


get_full_list($order_by = "", $where = "")   X-Ref
This function returns a full (ie non-paged) list of the current object type.
Portions created by SugarCRM are Copyright (C) SugarCRM, Inc..
All Rights Reserved..
Contributor(s): ______________________________________..


track_view($user_id, $current_module,$id='')   X-Ref
Track the viewing of a detail record.  This leverages get_summary_text() which is object specific
params $user_id - The user that is viewing the record.
Portions created by SugarCRM are Copyright (C) SugarCRM, Inc..
All Rights Reserved..
Contributor(s): ______________________________________..




Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7