snappymail/plugins/example/ContactSuggestions.php

15 lines
320 B
PHP
Raw Normal View History

2022-05-14 02:25:52 +08:00
<?php
namespace Plugins\Example;
class ContactSuggestions implements \RainLoop\Providers\Suggestions\ISuggestions
{
public function Process(\RainLoop\Model\Account $oAccount, string $sQuery, int $iLimit = 20) : array
{
return array(
array($oAccount->Email(), ''),
array('email@domain.com', 'name')
);
}
}