123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace Ppb\Service;
- use Ppb\Db\Table\Timezones as TimezonesTable;
- class Timezones extends AbstractService
- {
-
- public function __construct()
- {
- parent::__construct();
- $this->setTable(
- new TimezonesTable());
- }
-
- public function getMultiOptions()
- {
- $data = array();
- $rows = $this->_table->fetchAll();
- foreach ($rows as $row) {
- $data[(string) $row['value']] = $row['caption'];
- }
- return $data;
- }
- }
|