[Vtigercrm-commits] [vtiger-commits] r4668 - /vtigercrm/trunk/modules/Calendar/UserCalendar.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Mar 29 06:22:28 EST 2006
Author: saraj
Date: Wed Mar 29 04:22:22 2006
New Revision: 4668
Log:
Unwanted function removed
Modified:
vtigercrm/trunk/modules/Calendar/UserCalendar.php
Modified: vtigercrm/trunk/modules/Calendar/UserCalendar.php
==============================================================================
--- vtigercrm/trunk/modules/Calendar/UserCalendar.php (original)
+++ vtigercrm/trunk/modules/Calendar/UserCalendar.php Wed Mar 29 04:22:22 2006
@@ -73,9 +73,6 @@
"creator",
"id");
- // This is used to retrieve related fields from form posts.
- var $additional_column_fields = Array('assigned_user_name', 'assigned_user_id', 'opportunity_id', 'case_id', 'contact_id', 'task_id', 'note_id', 'meeting_id', 'call_id', 'email_id', 'parent_name', 'member_id' );
-
// This is the list of fields that are in the lists.
var $list_fields = Array('id', 'descr', 'subject', 'user_name');
@@ -87,166 +84,6 @@
$this->db = new PearDatabase();
}
- function create_tables () {
- $query = 'CREATE TABLE '.$this->table_name.' ( ';
- $query .='id char(36) NOT NULL';
- $query .=', a_start datetime NOT NULL';
- $query .=', a_end datetime NOT NULL';
- $query .=', t_ignore int(11)';
- $query .=', descr varchar(100)';
- $query .=', outside int(11)';
- $query .=', subject varchar(50)';
- $query .=', contact_id char(36)';
- $query .=', creator char(36)';
- $query .=', date_entered datetime NOT NULL';
- $query .=', PRIMARY KEY ( id ) )';
-
-
-
- $this->db->query($query);
- //TODO Clint 4/27 - add exception handling logic here if the table can't be created.
-
- }
-
- function drop_tables () {
- $query = 'DROP TABLE IF EXISTS '.$this->table_name;
-
-
-
- $this->db->query($query);
-
- //TODO Clint 4/27 - add exception handling logic here if the table can't be dropped.
-
- }
-
- function appointment_delete($id)
- {
- $query = "DELETE FROM $this->table_name where id='$id'";
- $this->db->query($query, true,"Error marking record deleted: ");
- }
-
- function get_summary_text()
- {
- return $this->name;
- }
-
- /** Returns a list of the associated accounts who are member orgs
- * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc..
- * All Rights Reserved..
- * Contributor(s): ______________________________________..
- */
- function get_member_accounts()
- {
- // First, get the list of IDs.
- $query = "SELECT a1.id from accounts as a1, accounts as a2 where a2.id=a1.parent_id AND a2.id='$this->id' AND a1.deleted=0";
-
- return $this->build_related_list($query, new Account());
- }
-
- /** Returns a list of the associated contacts
- * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc..
- * All Rights Reserved..
- * Contributor(s): ______________________________________..
- */
- function get_contacts()
- {
- // First, get the list of IDs.
- $query = "SELECT contact_id as id from accounts_contacts where account_id='$this->id' AND deleted=0";
-
- return $this->build_related_list($query, new Contact());
- }
-
- /** Returns a list of the associated opportunities
- * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc..
- * All Rights Reserved..
- * Contributor(s): ______________________________________..
- */
- function get_opportunities()
- {
- // First, get the list of IDs.
- $query = "SELECT opportunity_id as id from accounts_opportunities where account_id='$this->id' AND deleted=0";
-
- return $this->build_related_list($query, new Opportunity());
- }
-
- /** Returns a list of the associated cases
- * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc..
- * All Rights Reserved..
- * Contributor(s): ______________________________________..
- */
- function get_cases()
- {
- // First, get the list of IDs.
- $query = "SELECT id from cases where account_id='$this->id' AND deleted=0";
-
- return $this->build_related_list($query, new aCase());
- }
-
- /** Returns a list of the associated tasks
- * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc..
- * All Rights Reserved..
- * Contributor(s): ______________________________________..
- */
- function get_tasks()
- {
- // First, get the list of IDs.
- $query = "SELECT id from tasks where parent_id='$this->id' AND deleted=0";
-
- return $this->build_related_list($query, new Task());
- }
-
- /** Returns a list of the associated notes
- * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc..
- * All Rights Reserved..
- * Contributor(s): ______________________________________..
- */
- function get_notes()
- {
- // First, get the list of IDs.
- $query = "SELECT id from notes where parent_id='$this->id' AND deleted=0";
-
- return $this->build_related_list($query, new note());
- }
-
- /** Returns a list of the associated meetings
- * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc..
- * All Rights Reserved..
- * Contributor(s): ______________________________________..
- */
- function get_meetings()
- {
- // First, get the list of IDs.
- $query = "SELECT id from meetings where parent_id='$this->id' AND deleted=0";
-
- return $this->build_related_list($query, new Meeting());
- }
-
- /** Returns a list of the associated calls
- * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc..
- * All Rights Reserved..
- * Contributor(s): ______________________________________..
- */
- function get_calls()
- {
- // First, get the list of IDs.
- $query = "SELECT id from calls where parent_id='$this->id' AND deleted=0";
-
- return $this->build_related_list($query, new Call());
- }
-
- /** Returns a list of the associated emails
- * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc..
- * All Rights Reserved..
- * Contributor(s): ______________________________________..
- */
- function get_emails()
- {
- // First, get the list of IDs.
- $query = "SELECT id from emails where parent_id='$this->id' AND deleted=0";
-
- return $this->build_related_list($query, new Email());
- }
-
}
?>
More information about the vtigercrm-commits
mailing list