joomla/com_wk1/admin/models/wk1s.php

<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_wk1
 *
 * @copyright   Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
 
/**
 * wk1List Model
 *
 * @since  0.0.1
 */
class Wk1ModelWk1s extends JModelList
{
    /**
     * Method to build an SQL query to load the list data.
     *
     * @return      string  An SQL query
     */
    protected function getListQuery()
    {
        // Initialize variables.
        $db    = JFactory::getDbo();
        $query = $db->getQuery(true);
 
        // Create the base select statement.
        $query->select('*')
                ->from($db->quoteName('#__wk1'));
 
        return $query;
    }
}