function __construct($app, $table = 'history_evaluate', $pk = 'media_id') { parent::__construct($app, $table, $pk); }
function add() { if ($_POST) { $usr = $this->api->api_get_user(); if ($usr && isset($usr['id'])) { if (!isset($_POST['user_id']) || empty($_POST['user_id'])) { $_POST['user_id'] = $usr['id']; return parent::add(); } } } return false; }