本文整理汇总了PHP中Shineisp_Commons_Utilities::Capitalize方法的典型用法代码示例。如果您正苦于以下问题:PHP Shineisp_Commons_Utilities::Capitalize方法的具体用法?PHP Shineisp_Commons_Utilities::Capitalize怎么用?PHP Shineisp_Commons_Utilities::Capitalize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Shineisp_Commons_Utilities
的用法示例。
在下文中一共展示了Shineisp_Commons_Utilities::Capitalize方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getEmailList
/**
* Get a list of email of all the customers
* @return array
*/
public static function getEmailList($empty = false)
{
$items = array();
$registry = Shineisp_Registry::getInstance();
$translations = $registry->Zend_Translate;
if ($empty) {
$items[] = $translations->translate('Select ...');
}
$customer = Doctrine_Query::create()->from('Customers c')->andWhere("c.isp_id = ?", Isp::getCurrentId())->orderBy('lastname, firstname, company')->execute(array(), Doctrine_Core::HYDRATE_ARRAY);
foreach ($customer as $c) {
$items[$c['customer_id']] = Shineisp_Commons_Utilities::Capitalize($c['emaillastname'] . " (" . $c['email'] . ")", true);
if (!empty($c['company'])) {
$items[$c['customer_id']] .= " - " . ucwords($c['company']);
}
}
return $items;
}