3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Db\TableGateway\Feature
;
12 use Zend\Db\TableGateway\AbstractTableGateway
;
13 use Zend\Db\TableGateway\Exception
;
15 abstract class AbstractFeature
extends AbstractTableGateway
19 * @var AbstractTableGateway
21 protected $tableGateway = null;
23 protected $sharedData = array();
25 public function getName()
27 return get_class($this);
30 public function setTableGateway(AbstractTableGateway
$tableGateway)
32 $this->tableGateway
= $tableGateway;
35 public function initialize()
37 throw new Exception\
RuntimeException('This method is not intended to be called on this object.');
40 public function getMagicMethodSpecifications()
47 public function preInitialize();
48 public function postInitialize();
49 public function preSelect(Select $select);
50 public function postSelect(StatementInterface $statement, ResultInterface $result, ResultSetInterface $resultSet);
51 public function preInsert(Insert $insert);
52 public function postInsert(StatementInterface $statement, ResultInterface $result);
53 public function preUpdate(Update $update);
54 public function postUpdate(StatementInterface $statement, ResultInterface $result);
55 public function preDelete(Delete $delete);
56 public function postDelete(StatementInterface $statement, ResultInterface $result);