api/App/Models/DocComment.php

21 lines
461 B
PHP
Raw Normal View History

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