| 1 |
<?php |
| 2 |
|
| 3 |
// If this file is called directly, abort. |
| 4 |
if ( ! defined( 'WPINC' ) ) { |
| 5 |
die; |
| 6 |
} |
| 7 |
|
| 8 |
class Token_m extends Winter_MVC_Model { |
| 9 |
|
| 10 |
public $_table_name = 'wdk_token'; |
| 11 |
public $_order_by = 'idtoken'; |
| 12 |
public $_primary_key = 'token'; |
| 13 |
public $_own_columns = array(); |
| 14 |
public $_timestamps = TRUE; |
| 15 |
protected $_primary_filter = ''; |
| 16 |
public $form_admin = array(); |
| 17 |
public $fields_list = NULL; |
| 18 |
|
| 19 |
public function __construct(){ |
| 20 |
parent::__construct(); |
| 21 |
} |
| 22 |
|
| 23 |
/* only admin can edit */ |
| 24 |
public function is_related($item_id, $user_id, $method = 'edit') |
| 25 |
{ |
| 26 |
return false; |
| 27 |
} |
| 28 |
} |
| 29 |
?> |