/**
* Prepare For Query
*
* Prepares the necessary pre-query conditions for this object.
*
* @access private
* @return void
*/
function _prepare_for_query()
{
// Overload this in your inheriting models
}
/**
* Get (overload)
*
* Get objects.
*
* @access public
* @param int or array
* @return bool
*/
function get($limit = NULL, $offset = NULL)
{
$this->_prepare_for_query();
/**
* Count (overload)
*
* Returns the total count of the objects records.
* If on a related object, returns the total count of related objects records.
*
* @access public
* @param int or array
* @return bool
*/
function count()
{
if (empty($this->parent))
{
$this->_prepare_for_query();
}
return parent::count();
}
}
/* End of file inventory.php */
/* Location: ./application/models/inventory.php */
I think it should all be correct, and I can't figure out why this is not working.