PHP Class Infusionsoft_DataService, infusionsoft-php-sdk

Inheritance: extends Infusionsoft_DataServiceBase
Show file Open project: novaksolutions/infusionsoft-php-sdk Class Usage Examples

Public Methods

Method Description
addCustomField ( Infusionsoft_Generated_Base &$object, $displayName, $dataType, $groupId, Infusionsoft_App $app = null )
count ( $object, $queryData, Infusionsoft_App $app = null )
delete ( Infusionsoft_Generated_Base &$object, $id, Infusionsoft_App $app = null )
findByField ( $object, $field, $value, $limit = 1000, $page, $returnFields = false, Infusionsoft_App $app = null )
getAppSetting ( $moduleName, $settingName, Infusionsoft_App $app = null )
getAppointmentICal ( $appointmentId, Infusionsoft_App $app = null )
getCustomFields ( $object, $app = null )
getUserData ( $app = null ) Returns User data of the OAuth2 authenticated User
load ( Infusionsoft_Generated_Base &$object, $id, $returnFields = false, Infusionsoft_App $app = null ) * This is in the DataService.java file, but not exposed.
ping ( $serviceName = 'DataService', Infusionsoft_App $app = null )
query ( $object, $queryData, $limit = 1000, $page, $returnFields = false, Infusionsoft_App $app = null )
queryWithOrderBy ( $object, $queryData, $orderByField, $ascending = true, $limit = 1000, $page, $returnFields = false, Infusionsoft_App $app = null )
save ( Infusionsoft_Generated_Base &$object, Infusionsoft_App $app = null )
search ( $object, $searchData, $queryData = [], $limit = 1000, $page, $returnFields = false, Infusionsoft_App $app = null )
searchWithOrderBy ( $object, $orderByField, $searchData, $queryData = [], $ascending = true, $limit = 1000, $page, $returnFields = false, Infusionsoft_App $app = null )
updateCustomField ( $customFieldId, $arrayOfValues, Infusionsoft_App $app = null )

Private Methods

Method Description
makeQueryFromSearch ( $searchData, $queryData )

Method Details

addCustomField() public static method

public static addCustomField ( Infusionsoft_Generated_Base &$object, $displayName, $dataType, $groupId, Infusionsoft_App $app = null )
$object Infusionsoft_Generated_Base
$app Infusionsoft_App

count() public static method

public static count ( $object, $queryData, Infusionsoft_App $app = null )
$app Infusionsoft_App

delete() public static method

public static delete ( Infusionsoft_Generated_Base &$object, $id, Infusionsoft_App $app = null )
$object Infusionsoft_Generated_Base
$app Infusionsoft_App

findByField() public static method

public static findByField ( $object, $field, $value, $limit = 1000, $page, $returnFields = false, Infusionsoft_App $app = null )
$app Infusionsoft_App

getAppSetting() public static method

public static getAppSetting ( $moduleName, $settingName, Infusionsoft_App $app = null )
$app Infusionsoft_App

getAppointmentICal() public static method

public static getAppointmentICal ( $appointmentId, Infusionsoft_App $app = null )
$app Infusionsoft_App

getCustomFields() public static method

public static getCustomFields ( $object, $app = null )

getUserData() public static method

Returns User data of the OAuth2 authenticated User
public static getUserData ( $app = null )

load() public static method

.. public static function getMetaData(Infusionsoft_Generated_Base &$object, Infusionsoft_App $app = null) { $app = parent::getObjectOrDefaultAppIfNull($app, $object); $params = array( $object->getTable()); $arrayOfFields = $app->send('DataService.getMetaData', $params); return $arrayOfFields; }
public static load ( Infusionsoft_Generated_Base &$object, $id, $returnFields = false, Infusionsoft_App $app = null )
$object Infusionsoft_Generated_Base
$app Infusionsoft_App

ping() public static method

public static ping ( $serviceName = 'DataService', Infusionsoft_App $app = null )
$app Infusionsoft_App

query() public static method

public static query ( $object, $queryData, $limit = 1000, $page, $returnFields = false, Infusionsoft_App $app = null )
$app Infusionsoft_App

queryWithOrderBy() public static method

public static queryWithOrderBy ( $object, $queryData, $orderByField, $ascending = true, $limit = 1000, $page, $returnFields = false, Infusionsoft_App $app = null )
$app Infusionsoft_App

save() public static method

public static save ( Infusionsoft_Generated_Base &$object, Infusionsoft_App $app = null )
$object Infusionsoft_Generated_Base
$app Infusionsoft_App

searchWithOrderBy() public static method

public static searchWithOrderBy ( $object, $orderByField, $searchData, $queryData = [], $ascending = true, $limit = 1000, $page, $returnFields = false, Infusionsoft_App $app = null )
$app Infusionsoft_App

updateCustomField() public static method

public static updateCustomField ( $customFieldId, $arrayOfValues, Infusionsoft_App $app = null )
$app Infusionsoft_App