Public Member Functions | |
| __construct ($serv_adress, $user, $password) | |
| getServAdress () | |
| setServAdress ($serv_adress) | |
| getUser () | |
| setUser ($user) | |
| getPassword () | |
| setPassword ($password) | |
| Retrieve ($Table, $Id, $Columns) | |
| RetrieveMultiple ($Table, $Where, $Columns=false, $Join=false, $Order=false) | |
| Delete ($Table, $Id) | |
| Update ($Table, $Params, $Id) | |
| Create ($Table, $Params) | |
| SetState ($Id, $Table, $StateCode, $StatusCode) | |
| GetAllEntities () | |
| Workflow ($EntityId, $WorkflowId) | |
| Associate () | |
| Assign ($Table, $Id, $IdAssign, $TypeAssign='systemuser') | |
| GetCurrentUserInfo () | |
Data Fields | |
| $serv_adress | |
| $user | |
| $password | |
Private Member Functions | |
| ExecuteBody ($Request) | |
| call ($operation, $soapBody) | |
| FormatFetchEntity ($EntityName) | |
| FormatFetchAttribute ($Columns) | |
| FormatAttributes ($Params) | |
| FormatAttribute ($Param) | |
| TestParameters ($Param, $Fields) | |
| TestParameter ($Param, $field) | |
| TestAgreggate ($Param) | |
| GetErrorObject ($message) | |
| FormatColumn ($Columns) | |
| FormatFetchOrder ($Orders) | |
| FormatFetchFilter ($Filters) | |
| FormatFetchJoin ($Joins) | |
| FormatCondition ($Filter) | |
| ParseRetrieveMultiple ($xml, $Return) | |
| ParseDatas ($Datas, $Return) | |
| ParseResultLine ($Data) | |
| ParseKeyPair ($data) | |
| ParseRetrieve ($xml, $Return) | |
| GenerateSoapHeader ($operation) | |
| array_key_exists_r ($needle, $haystack) | |
Private Attributes | |
| $StateCheck | |
| $Aggregate = array ('avg','max','min','sum','count','countcolumn','countdistinct') | |
| $Operator | |
Definition at line 67 of file DynamicsCrm.php.
| __construct | ( | $serv_adress, | |
| $user, | |||
| $password | |||
| ) |
Constructor
| string | $serv_adress | Url to service |
| string | $user | Dynamics CRM connection's User |
(LDAP) Domain/user
| string | $password | Dynamics CRM connection's password |
Definition at line 128 of file DynamicsCrm.php.
References setPassword(), setServAdress(), and setUser().
|
private |
Recursive array_key_exist
| $needle | what you want to find |
| $haystack | where you want to find it |
Definition at line 1417 of file DynamicsCrm.php.
Referenced by RetrieveMultiple().
| Assign | ( | $Table, | |
| $Id, | |||
| $IdAssign, | |||
$TypeAssign = 'systemuser' |
|||
| ) |
Will assign a new owner to an Crm object
| string | $Table |
the Table of the entity you want to update
| string | $Id |
the GUID of the entity you want to update
| string | $IdAssign |
the GUID that will be used as new owner
| string | $TypeAssign |
Not required set by default as systemuser,
someday could be of some use to set anything else
Definition at line 574 of file DynamicsCrm.php.
References ExecuteBody().
| Associate | ( | ) |
Definition at line 539 of file DynamicsCrm.php.
References call().
|
private |
Format Entity Header
| string | $operation | Name of the action to be done |
| string | $soapBody | Soap body request according to the Action |
Definition at line 655 of file DynamicsCrm.php.
References GenerateSoapHeader(), if(), ParseRetrieve(), and ParseRetrieveMultiple().
Referenced by Associate(), Create(), Delete(), ExecuteBody(), Retrieve(), RetrieveMultiple(), and Update().
| Create | ( | $Table, | |
| $Params | |||
| ) |
Create a new row
| string | $Table |
the table where you want to create a new row
| array | $Params |
Definition at line 406 of file DynamicsCrm.php.
References call(), FormatAttributes(), and GetErrorObject().
| Delete | ( | $Table, | |
| $Id | |||
| ) |
Delete a row
| string | $Table |
the table where you want to delete a row
| string | $Id | mostly a GUID from the id column (key) ... |
Definition at line 310 of file DynamicsCrm.php.
References call().
|
private |
Format Entity Header
| string | $Request | Request Body for Execute |
Definition at line 635 of file DynamicsCrm.php.
References call().
Referenced by Assign(), GetAllEntities(), GetCurrentUserInfo(), SetState(), and Workflow().
|
private |
Format Attributes for insert updates and execute
| array | $Param | Attribute parameter |
Definition at line 889 of file DynamicsCrm.php.
References TestParameter(), and TestParameters().
Referenced by FormatAttributes().
|
private |
Format Attributes for insert,updates and execute
| array | $Params | Attributes parameter |
Definition at line 856 of file DynamicsCrm.php.
References FormatAttribute().
Referenced by Create(), and Update().
|
private |
Format Columns for REtrieveMultiple
| array | $Columns | array with colnames or false for all col |
Definition at line 1032 of file DynamicsCrm.php.
Referenced by Retrieve().
|
private |
Format condition Depending on Operator
| array | $Filter,<p> | *array( *'Column' => (String) $ColumnName *'Op' => Operator link to all operator *'Value' => $Value (if necessary depending on operator, data or could be an array) *'Value2' => $Value2 (if necessary mostly in between case) *) |
Definition at line 1208 of file DynamicsCrm.php.
References TestParameters().
Referenced by FormatFetchFilter().
|
private |
Format Fetch Attributes
(Column being resolved by RetrieveMultiple)
| array | $Columns |
Definition at line 775 of file DynamicsCrm.php.
References TestAgreggate(), and TestParameter().
Referenced by FormatFetchJoin(), and RetrieveMultiple().
|
private |
Format Entity Header
| $EntityName | String |
Definition at line 743 of file DynamicsCrm.php.
Referenced by RetrieveMultiple().
|
private |
Format Filters for request will return a Filter is Type is set else will retun a condition
| array | $Filter |
Definition at line 1121 of file DynamicsCrm.php.
References FormatCondition().
|
private |
Format Join for RetriveMultiple
| array | $Joins |
</p>
Definition at line 1171 of file DynamicsCrm.php.
References FormatFetchAttribute(), and TestParameters().
Referenced by RetrieveMultiple().
|
private |
Format Order by for the request
| array | $Order | Clause order by
|
Definition at line 1064 of file DynamicsCrm.php.
References TestParameters().
Referenced by RetrieveMultiple().
|
private |
Generate Header accordingly to the operation chosen
| string | $operation | Operation name (wdsl wise) |
Definition at line 1395 of file DynamicsCrm.php.
Referenced by call().
| GetAllEntities | ( | ) |
This is more of a test function return EVERY SINGLE ENTITY OF CRM never ever run that in production...
Definition at line 484 of file DynamicsCrm.php.
References ExecuteBody().
| GetCurrentUserInfo | ( | ) |
As It sounds will return the Logged in CRM user (login pwd wise)
Definition at line 616 of file DynamicsCrm.php.
References ExecuteBody(), and ParseDatas().
|
private |
| unknown | $message |
Definition at line 1012 of file DynamicsCrm.php.
Referenced by Create(), RetrieveMultiple(), SetState(), and Update().
| getPassword | ( | ) |
Definition at line 175 of file DynamicsCrm.php.
References $password.
| getServAdress | ( | ) |
Definition at line 138 of file DynamicsCrm.php.
References $serv_adress.
| getUser | ( | ) |
Definition at line 156 of file DynamicsCrm.php.
References $user.
|
private |
Parse the datas and update the object accordingly
| $xml | SimpleXml to be parsed |
| Object | CrmResponse |
Definition at line 1290 of file DynamicsCrm.php.
References ParseResultLine().
Referenced by GetCurrentUserInfo(), ParseRetrieve(), ParseRetrieveMultiple(), and Workflow().
|
private |
| unknown | $data |
Definition at line 1336 of file DynamicsCrm.php.
References if(), and ParseResultLine().
Referenced by ParseResultLine().
|
private |
Parse the result of a ResultLine (will be used for both Retrieve and RetrieveMultiple)
| $Data | SimpleXml Entity to be parsed |
Definition at line 1311 of file DynamicsCrm.php.
References ParseKeyPair().
Referenced by ParseDatas(), and ParseKeyPair().
|
private |
Parse the result of a Retrieve Query
| $xml | SimpleXml to be parsed |
| Object | CrmResponse |
Definition at line 1381 of file DynamicsCrm.php.
References ParseDatas().
Referenced by call().
|
private |
Parse the result of a RetrieveMultiple Query
| $xml | SimpleXml to be parsed |
| Object | CrmResponse |
Definition at line 1275 of file DynamicsCrm.php.
References ParseDatas().
Referenced by call().
| Retrieve | ( | $Table, | |
| $Id, | |||
| $Columns | |||
| ) |
Retrieve ONE and ONLY ONE Line in CRM By ID
| string | $Id | mostly a GUID from the id column (key) |
| string | $Table | Table name |
| array | $Columns | list of columns to be shown , false to see all |
array ('col1','col2',...)
Definition at line 207 of file DynamicsCrm.php.
References call(), and FormatColumn().
| RetrieveMultiple | ( | $Table, | |
| $Where, | |||
$Columns = false, |
|||
$Join = false, |
|||
$Order = false |
|||
| ) |
Retrieve Multiple Lines in CRM
| array | $Where | detail of $Where attribute |
| array | $Columns | detail of $Columns attribute |
| array | $Order | will change order of results |
array(
1=>('Column'=> 'Colname','Order'=>'Asc'),
2=>('Column'=> 'Colname2','Order'=>'Desc'),
...);
Definition at line 249 of file DynamicsCrm.php.
References $Aggregate, array_key_exists_r(), call(), FormatFetchAttribute(), FormatFetchEntity(), FormatFetchJoin(), FormatFetchOrder(), and GetErrorObject().
| setPassword | ( | $password | ) |
| string | $password | Dynamics CRM connection's password |
Definition at line 184 of file DynamicsCrm.php.
References $password.
Referenced by __construct().
| setServAdress | ( | $serv_adress | ) |
| string | $serv_adress | Dynamics CRM connection's Url to service |
Definition at line 147 of file DynamicsCrm.php.
References $serv_adress.
Referenced by __construct().
| SetState | ( | $Id, | |
| $Table, | |||
| $StateCode, | |||
| $StatusCode | |||
| ) |
Set state for a newly created object (can't be done in create)
| string | $Id |
the GUID of the entity you want to update
| string | $Table |
the table where you want to create a new row
| string | $StateCode | State Code depending on Table |
| string | $StatusCode | Status Code depending on State Code |
Definition at line 443 of file DynamicsCrm.php.
References ExecuteBody(), and GetErrorObject().
| setUser | ( | $user | ) |
| string | $user | Dynamics CRM connection's User |
(LDAP) Domain/user
Definition at line 166 of file DynamicsCrm.php.
References $user.
Referenced by __construct().
|
private |
| unknown | $Param |
| InvalidArgumentException |
Definition at line 1001 of file DynamicsCrm.php.
Referenced by FormatFetchAttribute().
|
private |
| unknown | $Param | |
| unknown | $field |
| InvalidArgumentException |
Definition at line 990 of file DynamicsCrm.php.
Referenced by FormatAttribute(), FormatFetchAttribute(), and TestParameters().
|
private |
| unknown | $Param | |
| unknown | $Fields |
Definition at line 979 of file DynamicsCrm.php.
References TestParameter().
Referenced by FormatAttribute(), FormatCondition(), FormatFetchJoin(), and FormatFetchOrder().
| Update | ( | $Table, | |
| $Params, | |||
| $Id | |||
| ) |
Update a row in CRM
| string | $Table |
the table name where you want to insert a row
| string | $Id | mostly a GUID from the id column (key) too see the dif operator |
| array | $Params |
'ColumnName' => Value
Definition at line 348 of file DynamicsCrm.php.
References call(), FormatAttributes(), and GetErrorObject().
| Workflow | ( | $EntityId, | |
| $WorkflowId | |||
| ) |
Will run a workflow accordingly to the parameters
| string | $EntityId |
the GUID of the entity you want to run
| string | $WorkflowId |
the GUID of the Workflow you want to run
Definition at line 515 of file DynamicsCrm.php.
References ExecuteBody(), and ParseDatas().
|
private |
Definition at line 103 of file DynamicsCrm.php.
Referenced by RetrieveMultiple().
|
private |
Definition at line 104 of file DynamicsCrm.php.
| $password |
Definition at line 71 of file DynamicsCrm.php.
Referenced by getPassword(), and setPassword().
| $serv_adress |
Definition at line 69 of file DynamicsCrm.php.
Referenced by getServAdress(), and setServAdress().
|
private |
Definition at line 72 of file DynamicsCrm.php.
| $user |
Definition at line 70 of file DynamicsCrm.php.
1.8.8