InboxSearch
1.0.0
Bibliothèque des opérateurs de recherche. Voir plus de Gmail: https://support.google.com/mail/answer/7190?hl=en
$ term = ' from:[email protected] forum ' ;
$ factory = new InboxSearchFactory ( $ term );
// return InboxSearchInterface
$ inboxSearch = $ factory -> process ();
$ from = $ inboxSearch -> getFrom (); // [email protected]
$ keyword = $ inboxSearch -> getKeyword (); // array('from' => 'forum')
$ fromKeyword = $ inboxSearch -> getKeywordFor ( InboxSearchInterface :: FILTER_FROM ); // forum Le filtre doit implémenter FilterInterface . Puis enregistrez le filtre dans votre instance d'usine
$ factory = new InboxSearchFactory ( $ term );
$ myFilterParserFqcn = ' SwmInboxSearchFilterModelMyCustomFilter ' ;
$ factory -> addFilterParser ( $ myFilterParserFqcn );php composer install --dev
bin/atoum -d tests/units