Helpers
addDealLink($options = array())
Description:
Returns HTML->link that opens the form to add a new Deal.
approvalNeeded($todo_values)
Description:
archivedDealsLink($archived = null, $options = array())
Description:
cloneDealLink($id, $options = array())
Description:
Returns HTML->link that clones a Deal.
dashboardAjaxToggle($options = array())
Description:
dealAddress($data, $options = array())
Description:
A single helper to try and keep Deal.address as a standard presentation.
dealComplete($data, $options = array())
Description:
Complete - all TodoValues have been received and approved.
dealIncomplete($data, $options = array())
Description:
Incomplete - closing date is tomorrow or greater; not all TodoValues have been received.
dealLate($data, $options = array())
Description:
Late - closing date is today or earlier; approval has not been given to all TodoValues.
dealPending($data, $options = array())
Description:
Pending - closing date is tomorrow or greater; all TodoValues have been received but not all that need approval have been approved.
dealStatus($data, $options = array())
Description:
Returns array:
array(
'status' => null
, 'class' => null
, 'complete' => false
,
)
dealTypesAsList($deal, $options = array())
Description:
Returns a string/list of the DealTypes.
editDealLink($id, $options = array())
Description:
Returns HTML->link that opens Deal for editing.
exportDealData($id, $options = array())
Description:
Returns HTML->link that generates a CSV export of the Activity table for the specific Deal.
gridtViewLink($options = array())
Description:
Returns HTML->link that opens the grid view.
involvedParties($data, $options = array())
Description:
Returns array of those working on the Deal.
progressbarClass($progressbarWidth)
Description:
tableViewLink($options = array())
Description:
Returns HTML->link that opens the table view.
testApproved($todo_value)
Description:
todoDueDate($data, $options = array())
Description:
Returns timestamp (default) value of the Todo(Value) due date. You can pass a PHP date() format if you wish within the options array as 'format'.
todoValueCurrent($todo_value, $options = array())
Description:
Returns Boolean:
- true the TodoValue is current because due date is tomorrow or greater and no contributed assets; false.
todoValueDone($data, $options = array())
Description:
Returns Boolean: contributed assets have been validated and optionally approved.
todoValueLabel($todo_value)
Description:
Returns a string.
todoValueLate($todo_value, $options = array())
Description:
Returns Boolean:
- true the TodoValue is late because the due date is today or past and the TodoValue has not been validated and optionally approved; false the Todo(Value) is not late because the due date is tomorrow or further into the future.
todoValuePending($todo_value, $options = array())
Description:
Returns Boolean:
- true the TodoValue is pending because due date is tomorrow or greater; contributed assets have not been approved yet; false.
todoValueStatus($data, $options = array())
Description:
Returns array:
array(
'status' => null
, 'class' => null
, 'complete' => false
,
)
todoValueValidate($todo_value, $options = array())
Description:
Returns array:
'result' => Boolean
'empty' => Boolean
'validationErrors' => string
userNameAndGroups($data, $options = array())
Description:
Returns HTML of the User and their associated User.Group
viewEmail($id = null, $options = array())
Description: