InboxSearch
1.0.0
مكتبة مشغلي البحث. شاهد المزيد من 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 يجب أن يقوم المرشح بتنفيذ FilterInterface . ثم سجل المرشح في مثيل المصنع الخاص بك
$ factory = new InboxSearchFactory ( $ term );
$ myFilterParserFqcn = ' SwmInboxSearchFilterModelMyCustomFilter ' ;
$ factory -> addFilterParser ( $ myFilterParserFqcn );php composer install --dev
bin/atoum -d tests/units