api/App/Models/DocComment.php

21 lines
461 B
PHP

<?php
namespace App\Models;
use Core\Model;
use PDO;
class DocComment extends Model
{
public $tableName = 'doc_comment';
function InsertObject($obj)
{
return parent::InsertObject($obj); // TODO: Change the autogenerated stub
}
function DocComments($docid){
$db = static::getDB();
$stmt = $db->query('SELECT * FROM doc_comment where doc_comment.doc_id = '.strval($docid));
return $stmt->fetchAll();
}
}