<?php namespace Kanboard\Plugin\InternalID\Model; use Kanboard\Core\Base; /** * Internal Task ID Model * * @package InternalID\Model * @author mkl */ class InternalTaskIDModel extends Base { /** * Table name * * @var string */ const TABLE = 'internal_task_id'; /** * Get the table * * @abstract * @access protected * @return string */ public function getTable() { return self::TABLE; } /** * Define the path prefix * * @abstract * @access protected * @return string */ public function getPathPrefix() { return 'internalid'; } /** * Get by the Task ID * * @access public * @param integer $task_id Task ID (global) * @return array */ public function getById($task_id) { return $this->db->table($this->getTable())->eq('id', $task_id)->findOne(); } }