本文整理汇总了PHP中Customers::getEmailList方法的典型用法代码示例。如果您正苦于以下问题:PHP Customers::getEmailList方法的具体用法?PHP Customers::getEmailList怎么用?PHP Customers::getEmailList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Customers
的用法示例。
在下文中一共展示了Customers::getEmailList方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: doAction
/**
* newAction
* Create the form module in order to create a record
* @return unknown_type
*/
public function doAction()
{
$request = $this->getRequest();
$q = $request->getParam('q');
$q = strtolower($q);
if (!$q) {
return;
}
$q = trim($q);
$customers = Customers::getList();
foreach ($customers as $key => $value) {
if (strpos(strtolower($value), $q) !== false) {
echo "{$key}|{$value}|customers|" . $this->translator->translate('Customers') . "\n";
}
}
$customers = Customers::getEmailList();
foreach ($customers as $key => $value) {
if (strpos(strtolower($value), $q) !== false) {
echo "{$key}|{$value}|customers|" . $this->translator->translate('Customer email') . "\n";
}
}
$domains = Domains::getList();
foreach ($domains as $key => $value) {
if (strpos(strtolower($value), $q) !== false) {
echo "{$key}|{$value}|domains|" . $this->translator->translate('Domains') . "\n";
}
}
$products = Products::getList();
foreach ($products as $key => $value) {
if (strpos(strtolower($value), $q) !== false) {
echo "{$key}|{$value}|products|" . $this->translator->translate('Products') . "\n";
}
}
$orders = Orders::getList();
foreach ($orders as $key => $value) {
if (strpos(strtolower($value), $q) !== false) {
echo "{$key}|{$value}|orders|" . $this->translator->translate('Orders') . "\n";
}
}
$wiki = Wiki::getList();
foreach ($wiki as $key => $value) {
if (strpos(strtolower($value), $q) !== false) {
echo "{$key}|{$value}|wiki|" . $this->translator->translate('Wiki') . "\n";
}
}
die;
}