time line contacts
This commit is contained in:
@@ -52,6 +52,7 @@ enum { PARTNER_STRIPE };
|
|||||||
#define CONTRACT_EXTEND_TIMELINE 9
|
#define CONTRACT_EXTEND_TIMELINE 9
|
||||||
#define CONTRACT_NOTIFY_COMPLETE 4
|
#define CONTRACT_NOTIFY_COMPLETE 4
|
||||||
#define CONTRACT_REQUEST_CANCEL 3
|
#define CONTRACT_REQUEST_CANCEL 3
|
||||||
|
#define CONTRACT_REQUEST_TIMELINE 2
|
||||||
#define CONTRACT_ACCEPT_COMPLETE 5
|
#define CONTRACT_ACCEPT_COMPLETE 5
|
||||||
#define CONTRACT_REJECT_COMPLETE 1
|
#define CONTRACT_REJECT_COMPLETE 1
|
||||||
|
|
||||||
|
|||||||
@@ -141,6 +141,7 @@ define('CONTRACT_CANCEL_CONTRACT', 7);
|
|||||||
define('CONTRACT_EXTEND_TIMELINE', 9);
|
define('CONTRACT_EXTEND_TIMELINE', 9);
|
||||||
define('CONTRACT_NOTIFY_COMPLETE', 4);
|
define('CONTRACT_NOTIFY_COMPLETE', 4);
|
||||||
define('CONTRACT_REQUEST_CANCEL', 3);
|
define('CONTRACT_REQUEST_CANCEL', 3);
|
||||||
|
define('CONTRACT_REQUEST_TIMELINE', 2);
|
||||||
define('CONTRACT_ACCEPT_COMPLETE', 5);
|
define('CONTRACT_ACCEPT_COMPLETE', 5);
|
||||||
define('CONTRACT_REJECT_COMPLETE', 1);
|
define('CONTRACT_REJECT_COMPLETE', 1);
|
||||||
|
|
||||||
|
|||||||
@@ -286,6 +286,8 @@ abstract class BaseController extends Controller
|
|||||||
case 'REJECT_COMPLETE':
|
case 'REJECT_COMPLETE':
|
||||||
$data['job_action'] = CONTRACT_REJECT_COMPLETE;
|
$data['job_action'] = CONTRACT_REJECT_COMPLETE;
|
||||||
break;
|
break;
|
||||||
|
case 'NOTIFY_REQEXTENT':
|
||||||
|
$data['job_action'] = CONTRACT_REQUEST_TIMELINE;
|
||||||
case 'EXTEND_TIMELINE':
|
case 'EXTEND_TIMELINE':
|
||||||
$data['job_action'] = CONTRACT_EXTEND_TIMELINE;
|
$data['job_action'] = CONTRACT_EXTEND_TIMELINE;
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -17,10 +17,37 @@ class WrenchApi extends BaseController
|
|||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
this.usrData = {action:22010,
|
||||||
|
member_id: this.sessionDataProviderService.member_id,
|
||||||
|
uid: this.sessionDataProviderService.member_uid,
|
||||||
|
sessionid: this.sessionDataProviderService.session ,
|
||||||
|
raw_contacts: contactResult }
|
||||||
|
"name":{"family":"Higgins","prefix":"","given":"Daniel","suffix":"Jr.","display":"Daniel Higgins Jr.","middle":""},
|
||||||
|
"contactId":"AB211C5F-9EC9-429F-9466-B9382FF61035",
|
||||||
|
*/
|
||||||
|
private function processContacts( $in ){
|
||||||
|
log_message('critical', "************************ cachecontacts 0001 ".serialize($in));
|
||||||
|
|
||||||
|
$inx =[];
|
||||||
|
$inx["member_id"] = $in["member_id"];
|
||||||
|
$inx["uid"] = $in["uid"];
|
||||||
|
$inx["sessionid"] = $in["sessionid"];
|
||||||
|
$raw_contacts = $in["raw_contacts"];
|
||||||
|
|
||||||
|
foreach ( $raw_contacts["contacts"] as $rows){
|
||||||
|
$firstname = $rows["name"]["given"];
|
||||||
|
$lastname = $rows["name"]["family"];
|
||||||
|
$contactid = $rows["contactId"];
|
||||||
|
log_message('critical', "************************ $firstname $lastname $contactid");
|
||||||
|
}
|
||||||
|
}
|
||||||
private function prepareEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){
|
private function prepareEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){
|
||||||
switch ($endpoint) {
|
switch ($endpoint) {
|
||||||
case 'cachecontacts':
|
case 'cachecontacts':
|
||||||
log_message('critical', "************************ cachecontacts 0001 ".serialize($in));
|
log_message('critical', "************************ cachecontacts 0001 ".serialize($in));
|
||||||
|
$this->processContacts( $in );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 'myfiles':
|
case 'myfiles':
|
||||||
|
|||||||
Reference in New Issue
Block a user