| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 | <?php/** *  * PHP Pro Bid $Id$ NQxuaEfx44lHa1bP5jTSEaVK84ovq7gqeVZUjRsbh3w= *  * @link        http://www.phpprobid.com * @copyright   Copyright (c) 2014 Online Ventures Software LTD & CodeCube SRL * @license     http://www.phpprobid.com/license Commercial License *  * @version     7.0 *//** * timezones table service class */namespace Ppb\Service;use Ppb\Db\Table\Timezones as TimezonesTable;class Timezones extends AbstractService{    /**     *      * class constructor     */    public function __construct()    {        parent::__construct();        $this->setTable(                new TimezonesTable());    }    /**     *      * get all timezones     * to be used for the timezone selector     *      * @return array     */    public function getMultiOptions()    {        $data = array();        $rows = $this->_table->fetchAll();        foreach ($rows as $row) {            $data[(string) $row['value']] = $row['caption'];        }        return $data;    }}
 |