Class helpdeskContract

Description

Support contract

Support contract

Located in /contract.php (line 25)

helpdeskObject
   |
   --helpdeskContract
Variable Summary
 mixed $isSuspended
 mixed $maxDate
 mixed $maxIssue
 mixed $maxTime
 mixed $node
 mixed $timeId
 mixed $uidCustomer
 mixed $useMaxDate
 mixed $useMaxIssue
 mixed $useMaxTime
Method Summary
 string form ()
 array getContractsByUid (helpdeskCustomer $uidcustomer)
 array getTickets ()
 void init (object $node, mixed $fromDB)
 void insert ()
 string view ()
Variables
mixed $defTimeIncrement (line 28)
  • access: public
mixed $isSuspended (line 29)
  • access: public
mixed $maxDate (line 30)
  • access: public
mixed $maxIssue (line 31)
  • access: public
mixed $maxTime (line 32)
  • access: public
mixed $node (line 27)
  • access: public
mixed $timeId (line 33)
  • access: public
mixed $uidCustomer (line 34)
  • access: public
mixed $useMaxDate (line 35)
  • access: public
mixed $useMaxIssue (line 36)
  • access: public
mixed $useMaxTime (line 37)
  • access: public
Methods
form (line 215)

Generates the code for hook_form when node is a helpdesk Contract

Generates the code for hook_form when node is a helpdesk Contract

  • return: HTML
string form ()

Redefinition of:
helpdeskObject::form()
implement the equivalent of hook_form for the class
getContractsByUid (line 170)

lists contracts held by a helpdeskCustomer

  • return: contract summaries (nid, title, created, changed) orderd by nid
  • static:
array getContractsByUid (helpdeskCustomer $uidcustomer)
getTickets (line 191)

Returns the nids of all tickets bound to this contracts

array getTickets ()
init (line 45)

Constructor-like method filling node from set of data in node If nid is NULL, the node is new and nothing can be filled.

Constructor-like method filling node from set of data in node If nid is NULL, the node is new and nothing can be filled.

  • todo: consider the issues surrounding timeId from initial submission to actual insert
void init (object $node, mixed $fromDB)
  • object $node

Redefinition of:
helpdeskObject::init()
initialize existing class instance from passed values
insert (line 140)

Implement hook_insert for HD Contracts

Implement hook_insert for HD Contracts

void insert ()
view (line 88)

implement hook_view for HD contracts

implement hook_view for HD contracts

  • todo: implement display of the timeinfo object
  • todo: implement contract balance display
string view ()

Redefinition of:
helpdeskObject::view()
implement the equivalent of hook_view for the class, but return the produced HTML

Inherited Methods

Inherited From helpdeskObject

 helpdeskObject::form()
 helpdeskObject::init()
 helpdeskObject::node_name()
 helpdeskObject::view()

Documentation generated on Tue, 01 Nov 2005 23:14:58 +0100 by phpDocumentor 1.3.0RC3