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

@@ -27,7 +27,9 @@
/**
*
* @method Create a DWS in Sharepoint server
* @method
*
* Create a DWS in Sharepoint server
*
* @name createDWS
* @label Create a DWS in Sharepoint server
@@ -53,7 +55,9 @@ function createDWS ($sharepointServer, $auth, $name = "", $users = "", $title =
/**
*
* @method Delete a DWS in Sharepoint server
* @method
*
* Delete a DWS in Sharepoint server
*
* @name deleteDWS
* @label Delete a DWS in Sharepoint server
@@ -81,7 +85,9 @@ function deleteDWS ($sharepointServer, $auth, $dwsname)
/**
*
* @method Create a folder in a DWS
* @method
*
* Create a folder in a DWS
*
* @name createFolderDWS
* @label Create a folder in a DWS
@@ -113,7 +119,9 @@ function createFolderDWS ($sharepointServer, $auth, $dwsname, $dwsFolderName)
/**
*
* @method Delete a DWS folder
* @method
*
* Delete a DWS folder
*
* @name deleteFolderDWS
* @label Delete a DWS folder
@@ -144,7 +152,9 @@ function deleteFolderDWS ($sharepointServer, $auth, $dwsname, $folderName)
/**
*
* @method Get DWS data
* @method
*
* Get DWS data
*
* @name getDWSData
* @label Get DWS data
@@ -172,7 +182,9 @@ function getDWSData ($sharepointServer, $auth, $newFileName, $dwsname, $lastUpda
/**
*
* @method Get DWS meta data
* @method
*
* Get DWS meta data
*
* @name getDWSMetaData
* @label Get DWS meta data
@@ -203,7 +215,9 @@ function getDWSMetaData ($sharepointServer, $auth, $newFileName, $dwsname, $id)
/**
*
* @method Copy/Upload Documents to DWS folder
* @method
*
* Copy/Upload Documents to DWS folder
*
* @name uploadDocumentDWS
* @label Copy/Upload Documents to DWS folder
@@ -229,7 +243,9 @@ function uploadDocumentDWS ($sharepointServer, $auth, $dwsname, $folderName, $so
/**
*
* @method Download documents from DWS folder
* @method
*
* Download documents from DWS folder
*
* @name downloadDocumentDWS
* @label Download DWS Documents
@@ -257,7 +273,9 @@ function downloadDocumentDWS ($sharepointServer, $auth, $dwsname, $fileName, $fi
/**
*
* @method Get DWS Folder items
* @method
*
* Get DWS Folder items
*
* @name getDWSFolderItems
* @label Get DWS Folder items
@@ -284,7 +302,9 @@ function getDWSFolderItems ($sharepointServer, $auth, $dwsname, $strFolderUrl)
/**
*
* @method Get DWS Document Versions
* @method
*
* Get DWS Document Versions
*
* @name getDWSDocumentVersions
* @label Get DWS Document Versions
@@ -322,7 +342,9 @@ function getDWSDocumentVersions ($sharepointServer, $auth, $newFileName, $dwsnam
/**
*
* @method Delete DWS Document Version
* @method
*
* Delete DWS Document Version
*
* @name deleteDWSDocumentVersion
* @label Delete DWS Document Version
@@ -346,7 +368,9 @@ function deleteDWSDocumentVersion ($sharepointServer, $auth, $newFileName, $dwsn
/**
*
* @method Delete all DWS Document Versions
* @method
*
* Delete all DWS Document Versions
*
* @name deleteDWSAllDocumentVersion
* @label Delete all DWS Document Versions

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
)
)