[ Index ]

PHP Cross Reference of Eventum

title

Body

[close]

/include/ -> class.phone_support.php (summary)

(no description)

File Size: 486 lines (19 kb)
Included or required: 6 times
Referenced: 0 times
Includes or requires: 7 files
 include/class.date.php
 include/class.misc.php
 include/class.auth.php
 include/class.history.php
 include/class.user.php
 include/class.error_handler.php
 include/class.issue.php

Defines 1 class

Phone_Support:: (12 methods):
  insertCategory()
  updateCategory()
  removeCategory()
  getCategoryDetails()
  getCategoryList()
  getCategoryAssocList()
  getDetails()
  getListing()
  insert()
  remove()
  removeByIssues()
  getCountByUser()


Class: Phone_Support  - X-Ref

Class to handle the business logic related to the phone support
feature of the application.

insertCategory()   X-Ref
Method used to add a new category to the application.

return: integer 1 if the update worked properly, any other value otherwise

updateCategory()   X-Ref
Method used to update the values stored in the database.
Typically the user would modify the title of the category in
the application and this method would be called.

return: integer 1 if the update worked properly, any other value otherwise

removeCategory()   X-Ref
Method used to remove user-selected categories from the
database.

return: boolean Whether the removal worked or not

getCategoryDetails($phc_id)   X-Ref
Method used to get the full details of a category.

param: integer $phc_id The category ID
return: array The information about the category provided

getCategoryList($prj_id)   X-Ref
Method used to get the full list of categories associated with
a specific project.

param: integer $prj_id The project ID
return: array The full list of categories

getCategoryAssocList($prj_id)   X-Ref
Method used to get an associative array of the list of
categories associated with a specific project.

param: integer $prj_id The project ID
return: array The associative array of categories

getDetails($phs_id)   X-Ref
Method used to get the details of a given phone support entry.

param: integer $phs_id The phone support entry ID
return: array The phone support entry details

getListing($issue_id)   X-Ref
Method used to get the full listing of phone support entries
associated with a specific issue.

param: integer $issue_id The issue ID
return: array The list of notes

insert()   X-Ref
Method used to add a phone support entry using the user
interface form available in the application.

return: integer 1 if the insert worked, -1 or -2 otherwise

remove($phone_id)   X-Ref
Method used to remove a specific phone support entry from the
application.

param: integer $phone_id The phone support entry ID
return: integer 1 if the removal worked, -1 or -2 otherwise

removeByIssues($ids)   X-Ref
Method used to remove all phone support entries associated with
a given set of issues.

param: array $ids The array of issue IDs
return: boolean

getCountByUser($usr_id, $start, $end)   X-Ref
Returns the number of calls by a user in a time range.

param: string $usr_id The ID of the user
param: integer $start The timestamp of the start date
param: integer $end The timestamp of the end date
return: integer The number of phone calls by the user.



Generated: Wed Dec 19 21:21:33 2007 Cross-referenced by PHPXref 0.7