include/SugarFields/Parsers/Rules/AddressRule.php

Show: inherited
Table of Contents

\AddressRule

Package:

BaseRule.php

This is a utility base class to provide further refinement when converting pre 5.x files to the new meta-data rules.

Parent(s)
\BaseRule
Author
Collin Lee  

Methods

methodpublicAddressRule( ) : void

methodpublicBaseRule( ) : void
inherited

Inherited from: \BaseRule::BaseRule()
methodpublicgetMatch(  $mixed,  $regExp ) : void
inherited

Inherited from: \BaseRule::getMatch()
Parameters
Name Type Description
$mixed
$regExp
methodpublichasAddressFieldsIntact( \$addressPanel $addressPanel, \$suffix $suffix ) : boolean

hasAddressFieldsIntact This function checks to see if the address fields for the given street key is intact. This means that all five fields (street, city, state, country and postalcode) have not been moved from the address panel

Parameters
Name Type Description
$addressPanel \$addressPanel

Array of address panel contents

$suffix \$suffix

The address suffix (billing, shipping, primary, alternate) to check for

Returns
Type Description
boolean
methodpublicisCustomField(  $mixed ) : void
inherited

Inherited from: \BaseRule::isCustomField()
Parameters
Name Type Description
$mixed
methodpublicmatches(  $mixed,  $regExp ) : void
inherited

Inherited from: \BaseRule::matches()
Parameters
Name Type Description
$mixed
$regExp
methodpublicparsePanels(  $panels,  $view ) : void

Parameters
Name Type Description
$panels
$view
methodpublicpostParse(  $panels,  $view ) : void
inherited

Inherited from: \BaseRule::postParse()
Parameters
Name Type Description
$panels
$view
methodpublicpreParse(  $panels,  $view ) : void
inherited

Inherited from: \BaseRule::preParse()
Parameters
Name Type Description
$panels
$view
methodpublicremoveStreetFieldOverride( \$panels $panels, \$street $street ) : void

removeStreetFieldOverride This function scans the panels and locates the street address field for the given key and replaces the Array definition (from the merging process) with a String value.

Parameters
Name Type Description
$panels \$panels

Array of the view's panels

$street \$street

String key value of the street to search for

Details
Returns
$panels Array of view's panels with street value substituted  
Documentation was generated by DocBlox 0.18.1.