\SSilence\ImapClientHelper

Helper class the internals of php-imap-client

Summary

Methods
Properties
Constants
preparingProperties()
No public properties found
OUT_OBJECT
OUT_ARRAY
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

OUT_OBJECT

OUT_OBJECT

OUT_ARRAY

OUT_ARRAY

Methods

preparingProperties()

preparingProperties(array  $arrayCurrentPropertiesAndValues, array  $arrayAllowedProperties, string  $outType = self::OUT_OBJECT) : object|array

Preparing properties

Return object like this

$obj->to => 'to',
$obj->subject => 'subject',
$obj->message => null
# it is if incoming array not have 'message', like this ['subject'=>'val', 'to'=>'val']

Parameters

array $arrayCurrentPropertiesAndValues

available properties like only ['subject'=>'val', 'message'=>'val']

array $arrayAllowedProperties

all need properties [... 'to', 'subject', 'message' ...]

string $outType

if Helper::OUT_OBJECT return object, if Helper::OUT_ARRAY return array.

Returns

object|array