BUG 10694:Triggers de Sugar y Sharepoint no tienen descripciones SOLVED

- Functions descriptions in wrong format
- Fix format for the functions descriptions
This commit is contained in:
Julio Cesar Laura
2013-02-06 22:39:50 -04:00
parent de15458387
commit ae508fd5dd
2 changed files with 95 additions and 49 deletions

View File

@@ -8,20 +8,20 @@
* *
*/
////////////////////////////////////////////////////
// pmSugar PM Functions
//
// Copyright (C) 2007 COLOSA
//
// License: LGPL, see LICENSE
////////////////////////////////////////////////////
////////////////////////////////////////////////////
// pmSugar PM Functions
//
// Copyright (C) 2007 COLOSA
//
// License: LGPL, see LICENSE
////////////////////////////////////////////////////
function getSoapClientOptions ()
{
$options = array ('trace' => 1);
//Apply proxy settings
//Apply proxy settings
$sysConf = System::getSystemConfiguration();
if ($sysConf['proxy_host'] != '') {
$options['proxy_host'] = $sysConf['proxy_host'];
@@ -71,7 +71,9 @@ function objectToArray ($object)
/**
*
* @method Gets SugarCRM entry using get_entry web service.
* @method
*
* Gets SugarCRM entry using get_entry web service.
*
* @name GetSugarEntry
* @label Get SugarCRM Entry
@@ -105,7 +107,9 @@ function GetSugarEntry ($sugarSoap, $user, $password, $module, $id, $selectField
/**
*
* @method Gets SugarCRM entries from the indicated module.
* @method
*
* Gets SugarCRM entries from the indicated module.
*
* @name GetSugarEntries
* @label Get SugarCRM Entries
@@ -148,7 +152,9 @@ function GetSugarEntries ($sugarSoap, $user, $password, $module, $query, $orderB
/**
*
* @method Gets SugarCRM entries from the Calls module
* @method
*
* Gets SugarCRM entries from the Calls module
*
* @name GetSugarCalls
* @label Gets SugarCRM entries from the Calls module
@@ -174,7 +180,9 @@ function GetSugarCalls ($sugarSoap, $user, $password, $query, $orderBy, $selecte
/**
*
* @method Gets SugarCRM entries from the Leads module.
* @method
*
* Gets SugarCRM entries from the Leads module.
*
* @name GetSugarLeads
* @label Gets SugarCRM entries from the Leads module.
@@ -200,7 +208,9 @@ function GetSugarLeads ($sugarSoap, $user, $password, $query, $orderBy, $selecte
/**
*
* @method Gets SugarCRM entries from the Contacts module.
* @method
*
* Gets SugarCRM entries from the Contacts module.
*
* @name GetSugarContacts
* @label Gets SugarCRM entries from the Contacts module.
@@ -226,7 +236,9 @@ function GetSugarContacts ($sugarSoap, $user, $password, $query, $orderBy, $sele
/**
*
* @method Gets SugarCRM entries from the Opportunities module.
* @method
*
* Gets SugarCRM entries from the Opportunities module.
*
* @name GetSugarOpportunities
* @label Gets SugarCRM entries from the Opportunities module.
@@ -252,7 +264,9 @@ function GetSugarOpportunities ($sugarSoap, $user, $password, $query, $orderBy,
/**
*
* @method Gets SugarCRM entries from the Account module.
* @method
*
* Gets SugarCRM entries from the Account module.
*
* @name GetSugarAccount
* @label Gets SugarCRM entries from the Account module.
@@ -278,7 +292,9 @@ function GetSugarAccount ($sugarSoap, $user, $password, $query, $orderBy, $selec
/**
*
* @method Creates SugarCRM entries from the Account module.
* @method
*
* Creates SugarCRM entries from the Account module.
*
* @name CreateSugarAccount
*
@@ -313,17 +329,19 @@ function CreateSugarAccount ($sugarSoap, $user, $password, $name, $resultType =
default:
$sugarEntries = objectToArray( $sugarEntries );
}
//return $sugarEntries;
//return $sugarEntries;
return $account_id;
}
/**
*
* @method Creates SugarCRM entries from the Account module
* @method
*
* Creates SugarCRM entries from the Contacts module
*
* @name CreateSugarContact
*
* @label Creates SugarCRM entries from the Account module
* @label Creates SugarCRM entries from the Contacts module
*
* @param string | $sugarSoap | Sugar SOAP URL | http://www.example.com/sugar/soap.php?wsdl
* @param string | $user | User
@@ -342,11 +360,11 @@ function CreateSugarAccount ($sugarSoap, $user, $password, $name, $resultType =
function CreateSugarContact ($sugarSoap, $user, $password, $first_name, $last_name, $email, $title, $phone, $account_id, $resultType = "array")
{
$module = "Contacts";
/* $aValue = array(
array("name" => 'id', "value" => G::generateUniqueID()),
array("name" => 'first_name', "value" => $first_name),
array("name" => 'last_name', "value" => $last_name),
);
/* $aValue = array(
array("name" => 'id', "value" => G::generateUniqueID()),
array("name" => 'first_name', "value" => $first_name),
array("name" => 'last_name', "value" => $last_name),
);
*/
$sessionId = sugarLogin( $sugarSoap, $user, $password );
$client = new SoapClient( $sugarSoap, getSoapClientOptions() );
@@ -357,7 +375,7 @@ function CreateSugarContact ($sugarSoap, $user, $password, $first_name, $last_na
),array ("name" => 'title',"value" => $title
),array ("name" => 'phone_work',"value" => $phone
),
// array("name" => 'account_id',"value" => '8cd10a60-101f-4363-1e0b-4cfd4106bd7e')
// array("name" => 'account_id',"value" => '8cd10a60-101f-4363-1e0b-4cfd4106bd7e')
array ("name" => 'account_id',"value" => $account_id
)));
@@ -378,7 +396,9 @@ function CreateSugarContact ($sugarSoap, $user, $password, $first_name, $last_na
/**
*
* @method Creates SugarCRM entries from the Opportunities module.
* @method
*
* Creates SugarCRM entries from the Opportunities module.
*
* @name CreateSugarOpportunity
*
@@ -399,16 +419,16 @@ function CreateSugarContact ($sugarSoap, $user, $password, $first_name, $last_na
*/
function CreateSugarOpportunity ($sugarSoap, $user, $password, $name, $account_id, $amount, $date_closed, $sales_stage, $resultType = "array")
{
// * @param string | $account_id | Account Id
// * @param string | $account_id | Account Id
$module = "Opportunities";
/* $aValue = array(
array("name" => 'id', "value" => G::generateUniqueID()),
array("name" => 'name', "value" => $name),
array("name" => 'account_name', "value" => $account_name),
array("name" => 'amount', "value" => $amount),
array("name" => 'date_closed', "value" => $date_closed),
array("name" => 'sales_stage', "value" => $sales_stage)
/* $aValue = array(
array("name" => 'id', "value" => G::generateUniqueID()),
array("name" => 'name', "value" => $name),
array("name" => 'account_name', "value" => $account_name),
array("name" => 'amount', "value" => $amount),
array("name" => 'date_closed', "value" => $date_closed),
array("name" => 'sales_stage', "value" => $sales_stage)
);*/
$sessionId = sugarLogin( $sugarSoap, $user, $password );
@@ -440,11 +460,13 @@ function CreateSugarOpportunity ($sugarSoap, $user, $password, $name, $account_i
/**
*
* @method Creates SugarCRM entries from the Account module
* @method
*
* Creates SugarCRM entries from the Leads module
*
* @name CreateSugarLeads
*
* @label Creates SugarCRM entries from the Account module
* @label Creates SugarCRM entries from the Leads module
*
* @param string | $sugarSoap | Sugar SOAP URL | http://www.example.com/sugar/soap.php?wsdl
* @param string | $user | User
@@ -473,7 +495,7 @@ function CreateSugarLeads ($sugarSoap, $user, $password, $first_name, $last_name
),array ("name" => 'title',"value" => $title
),array ("name" => 'phone_work',"value" => $phone
),
// array("name" => 'account_id',"value" => '8cd10a60-101f-4363-1e0b-4cfd4106bd7e')
// array("name" => 'account_id',"value" => '8cd10a60-101f-4363-1e0b-4cfd4106bd7e')
array ("name" => 'account_id',"value" => $account_id
)
)