include/QuickSearchDefaults.php

Show: inherited
Table of Contents

\QuickSearchDefaults

Package: SugarCRM

QuickSearchDefaults class, outputs default values for setting up quicksearch

Copyright
2004-2007 SugarCRM Inc.  
License
SugarCRM Professional End User License  
Since
Class available since Release 4.0  

Properties

Propertypublic  $form_name= ''EditView''
Default value'EditView'Details
Type
n/a

Methods

methodpublicgetQSAccount(  $nameKey,  $idKey,  $billingKey = null,  $shippingKey = null,  $additionalFields = null ) : void

Parameters
Name Type Description
$nameKey
$idKey
$billingKey
$shippingKey
$additionalFields
methodpublicgetQSCampaigns(  $c_name = 'campaign_name',  $c_id = 'campaign_id' ) : void

Parameters
Name Type Description
$c_name
$c_id
methodpublicgetQSContact(  $name,  $idName ) : \The

getQSContact This is a customized method to handle returning in JSON notation the QuickSearch formats for searching the Contacts module for a contact name. The method takes into account the locale settings (s = salutation, f = first name, l = last name) that are permissible.

It should be noted though that any other characters present in the formatting will render this widget non-functional.

Parameters
Name Type Description
$name
$idName
Returns
Type Description
\The JSON format of a QuickSearch definition for the Contacts module
methodpublicgetQSParent(  $parent = 'Accounts' ) : void

Parameters
Name Type Description
$parent
methodpublicgetQSScripts( ) : void

methodpublicgetQSScriptsJSONAlreadyDefined( ) : void

methodpublicgetQSScriptsNoServer( ) : void

methodpublicgetQSTeam(  $t_name = 'team_name',  $t_id = 'team_id' ) : void

Parameters
Name Type Description
$t_name
$t_id
methodpublicgetQSUser(  $p_name = 'assigned_user_name',  $p_id = 'assigned_user_id' ) : void

Parameters
Name Type Description
$p_name
$p_id
methodpublicgetQuickSearchDefaults( array $lookup = array() ) : \QuickSearchDefaults
static

getQuickSearchDefaults

This is a static function to get an instance of QuickSearchDefaults object

Parameters
Name Type Description
$lookup array

Array with custom files and class names for custom QuickSearchDefaults classes, optional

Returns
Type Description
\QuickSearchDefaults
methodpublicloadQSObject( string $module, string $object, string $relationName, \type $nameField, \type $idField ) : void

Loads Quick Search Object for any object (if suitable method is defined)

Parameters
Name Type Description
$module string

the given module we want to load the vardefs for

$object string

the given object we wish to load the vardefs for

$relationName string

the name of the relation between entities

$nameField \type

the name of the field to populate

$idField \type

the id of the field to populate

methodpublicsetFormName(  $name = 'EditView' ) : void

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