portal/include/Portal/Portal.php

Show: inherited
Table of Contents

\Portal

Package:

Properties

Propertypublic  $soapClient= ''
Details
Type
n/a
Propertypublic  $soapClientProxy= ''
Details
Type
n/a
Propertypublic  $soapError= ''
Details
Type
n/a
Propertypublic  $soapSession= ''
Details
Type
n/a

Methods

methodpublicPortal( ) : void

methodpublicaddModulesIfFunctionExists(  $function,  $modules,  $checkPortal = false ) : void

Parameters
Name Type Description
$function
$modules
$checkPortal
methodpubliccheckPortalStatus(  $function ) : void

Do some checking to see if the parent instance is still alive

Parameters
Name Type Description
$function
methodpublicgetAttachment(  $noteId ) : void

Parameters
Name Type Description
$noteId
methodpublicgetChildTags(  $tag ) : void

Parameters
Name Type Description
$tag
methodpublicgetCurrentUserID( ) : void

get the current_user_id of the logged in user

methodpublicgetEntries( \module $module, \where $where, \orderBy $orderBy, \offset $offset = 0, \limit $limit = 20 ) : array

Retrieves a list of entries

Parameters
Name Type Description
$module \module

string the module to retrieve

$where \where

string where clause to use

$orderBy \orderBy

string order by clause

$offset \offset

int offset

$limit \limit

int number of records to retrieve

Returns
Type Description
array result
methodpublicgetEntry( \module $module, \id $id, \fields $fields ) : array

gets a single entry

Parameters
Name Type Description
$module \module

string the module to retrieve

$id \id

guid id of the record

$fields \fields

array fields to return

Returns
Type Description
array result
methodpublicgetFields( \module $module, \reformatted $reformatted = false ) : array

returns the fields for a module and caches, or returns the cached version

Parameters
Name Type Description
$module \module

string the module to save

$reformatted \reformatted

bool return as soap would or return as name => values

Returns
Type Description
array fields
methodpublicgetImages( \$images $images ) : void

getImages This method retrieves and caches a copy of each image URL link specified in the $images Array parameter

Parameters
Name Type Description
$images \$images

Array of image URL links to retrieve and cache

methodpublicgetKBDocumentAttachment(  $documentId ) : void

Parameters
Name Type Description
$documentId
methodpublicgetKBDocumentBody( \$id $doc_id ) : \$result

getKBDocumentBody This function returns the String portion of the KBDocument's content

Parameters
Name Type Description
$doc_id \$id

The document id to search with

Returns
Type Description
\$result The document body value
methodpublicgetRelated( \module $module, \recordId $rel_module, \fields $recordId,  $fields,  $orderBy = '',  $offset = 0,  $limit = -1 ) : array

gets the related notes of a record

Parameters
Name Type Description
$module \module

string the module to retrieve

$rel_module \recordId

guid the guid of the record of the parent module

$recordId \fields

array fields to return

$fields
$orderBy
$offset
$limit
Returns
Type Description
array result
methodpublicgetSubscriptionLists( ) : void

methodpublicgetTagDocs(  $tag ) : void

Parameters
Name Type Description
$tag
methodpublichandleResult(  $result ) : void

Handles the result of any soap requests, checks for errors etc

Parameters
Name Type Description
$result
methodpublicleadLogin(  $name,  $password ) : void

login for lead portal entry point

Parameters
Name Type Description
$name
$password
methodpublicloadSoapClient( ) : void

loadSoapClient connects and loads the WSDL file to instantiate a nusoapclient instance

methodpubliclogin( \name $name, \password $password, \contactName $contactName, \contactPassword $contactPassword ) : string

logins into the app

Parameters
Name Type Description
$name \name

string user name of the portal user in the parent crm install

$password \password

string password for the user the portal user in the parent crm install

$contactName \contactName

string portal username of the contact logging in

$contactPassword \contactPassword

string portal password of the contact logging in

Returns
Type Description
string soad session id
methodpubliclogout( ) : void

logs out

methodpublicrelateNote( \noteId $noteId, \relatedToModuleName $relateToModuleName, \recordId $recordId ) : array

sets the related note

Parameters
Name Type Description
$noteId \noteId

guid guid of the note

$relateToModuleName \relatedToModuleName

parent module of the ntoe

$recordId \recordId

guid the guid of the record of the parent module

Returns
Type Description
array result
methodpublicremoveAttachmentFromNote(  $noteId ) : void

Parameters
Name Type Description
$noteId
methodpublicsave( \module $module, \nameValues $nameValues ) : array

saves a record

Parameters
Name Type Description
$module \module

string the module to save

$nameValues \nameValues

array name values of the fields to save

Returns
Type Description
array result
methodpublicsetAttachmentToNote(  $noteId,  $fileLocation,  $filename ) : void

Parameters
Name Type Description
$noteId
$fileLocation
$filename
methodpublicsetNewsletters(  $subscribeIds,  $unsubscribeIds ) : void

Parameters
Name Type Description
$subscribeIds
$unsubscribeIds
Documentation was generated by DocBlox 0.18.1.