CoreFiles by mySites.guru
emptynonzero.php32 lines, 858 bytes, from Joomla_3.4.6-Stable-Full_Package.zip
Raw History Compare with 3.4.5
md5
baff9246bb1f75dc45468050fb149146
sha1
4492cc210628fd857eea0efbba4217090efcd4d1
sha256
5e65a09ae6a87610000b330dab358069189b6380bda3d976ab1bd797af4c055c
<?php
/**
 * @package     FrameworkOnFramework
 * @subpackage  model
 * @copyright   Copyright (C) 2010 - 2015 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
// Protect from unauthorized access
defined('FOF_INCLUDED') or die;

/**
 * FrameworkOnFramework model behavior class
 *
 * @package  FrameworkOnFramework
 * @since    2.1
 */
class FOFModelBehaviorEmptynonzero extends FOFModelBehavior
{
	/**
	 * This event runs when we are building the query used to fetch a record
	 * list in a model
	 *
	 * @param   FOFModel        &$model  The model which calls this event
	 * @param   JDatabaseQuery  &$query  The query being built
	 *
	 * @return  void
	 */
	public function onBeforeBuildQuery(&$model, &$query)
	{
		$model->setState('_emptynonzero', '1');
	}
}

The same content is in 37 releases, Joomla 3.4.1-rc to 3.6.2. See them all, or every version of this file.