Skip to content

Commit

Permalink
added items model
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoOnTheEarth committed Feb 21, 2014
1 parent 8bacd5a commit 1b35927
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions administrator/components/com_blog/models/items.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

/**
* Class BlogModelItems
*/
class BlogModelItems extends JModelList
{
/**
* Method to get a JDatabaseQuery object for retrieving the data set from a database.
*
* @return JDatabaseQuery A JDatabaseQuery object to retrieve the data set.
*/
public function getListQuery()
{
$db = $this->getDbo();
$query = $db->getQuery(true);

$query->select('a.*')
->from('#__blog_items AS a');

return $query;
}
}

0 comments on commit 1b35927

Please sign in to comment.