| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 | <?php/** * * PHP Pro Bid $Id$ c3gtR0nZ87MEpolQ3ib5mkAKmhQEwBc4BWpzQOhDnuF/zdvoA4ImlSkW8rjG9fJOwSmRzljRHHkuTlsdfwkkdA== * * @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 *//** * newsletters recipients table service class */namespace Ppb\Service;use Ppb\Db\Table\NewslettersRecipients as NewslettersRecipientsTable;class NewslettersRecipients extends AbstractService{    /**     *     * class constructor     */    public function __construct()    {        parent::__construct();        $this->setTable(            new NewslettersRecipientsTable());    }    /**     *     * delete multiple recipients from the table     *     * @param array $ids the ids of the rows to be deleted     * @return int     returns the number of affected rows     */    public function delete(array $ids)    {        $adapter = $this->_table->getAdapter();        $where[] = $adapter->quoteInto('id IN (?)', $ids);        return $this->_table->delete($where);    }}
 |