Location: PHPKode > projects > SimpleHRM > simplehrm-1.0-beta1/simplehrm-1.0-beta1/flexycms/modules/adminstration/business/adminstration_bl.class.php
<?php
/**
 * Class   : adminstration_bl
 * Purpose : All data query(DQL) of administration manager done here. 
 */
class adminstration_bl extends business{
##########################################################
### Function Name : countLeave			       ###
### Description   : Function to count employees for a leave
### Input         : No input 			       ###
### Ouput 	  : sql query		      	       ###
##########################################################
	function countLeave(){
		$sql="SELECT COUNT(id_employee) AS cnt,leave_type FROM ".TABLE_PREFIX."employeeLeaveRequest GROUP BY leave_type";
		return $sql;
	}
};
Return current item: SimpleHRM