PHP Class MC4WP_Field_Guesser

ファイルを表示 Open project: dannyvankooten/mailchimp-for-wordpress Class Usage Examples

Protected Properties

Property Type Description
$fields MC4WP_Array_Bag

Public Methods

Method Description
__construct ( array $fields )
combine ( $methods ) : array
guessed ( ) : array Guess values for the following fields - EMAIL - NAME - FNAME - LNAME
namespaced ( string $namespace = 'mc4wp-' ) : array Get all data which is namespaced with a given namespace

Private Methods

Method Description
string_contains ( $haystack, $needles ) : boolean

Method Details

__construct() public method

public __construct ( array $fields )
$fields array

combine() public method

public combine ( $methods ) : array
$methods
return array

guessed() public method

Guess values for the following fields - EMAIL - NAME - FNAME - LNAME
public guessed ( ) : array
return array

namespaced() public method

Get all data which is namespaced with a given namespace
public namespaced ( string $namespace = 'mc4wp-' ) : array
$namespace string
return array

Property Details

$fields protected_oe property

protected MC4WP_Array_Bag $fields
return MC4WP_Array_Bag