record.php
15 lines
| 1 | <?php |
| 2 | |
| 3 | class PMXE_Post_Record extends PMXE_Model_Record { |
| 4 | protected $primary = array('post_id'); |
| 5 | |
| 6 | /** |
| 7 | * Initialize model instance |
| 8 | * @param array[optional] $data Array of record data to initialize object with |
| 9 | */ |
| 10 | public function __construct($data = array()) { |
| 11 | parent::__construct($data); |
| 12 | $this->setTable(PMXE_Plugin::getInstance()->getTablePrefix() . 'posts'); |
| 13 | } |
| 14 | |
| 15 | } |