| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/junkdata/nammall/application/models/ |
Upload File : |
<?php
/***************************************************************
* Catabatic Technology Pvt. Ltd.
* File Name : Slider.php
* File Description : Slider Model
* Created By : Praveen Kumar
* Created Date: 05-September-2014
***************************************************************/
class Application_Model_State extends Zend_Db_Table_Abstract
{
function __construct()
{
}
/**
* getAllActiveStatesList() method is used to get all active states list
* @param email string
* @return object
*/
public function getAllActiveStatesList()
{
$dbtable = new Zend_Db_Table('tbl_states');
$select = $dbtable->select()
->where('status =?','Activate')
->order('state_name');
$result = $dbtable->fetchAll($select);
return $result;
}
/**
* getAllActiveCityList() method is used to get all active states list
* @param email string
* @return object
*/
public function getAllActiveCityList()
{
$dbtable = new Zend_Db_Table('tbl_city');
$select = $dbtable->select()
->where('status =?','Activate')
->order('city_name');
$result = $dbtable->fetchAll($select);
return $result;
}
/**
* getAllCityListByStateId() method is used to get city list by state id
* @param email string
* @return object
*/
public function getAllCityListByStateId($state_id)
{
$dbtable = new Zend_Db_Table('tbl_city');
$select = $dbtable->select()
->where('state_id = ?',$state_id)
->where('status = ?','Activate')
->order('city_name');
$result = $dbtable->fetchAll($select);
return $result;
}
/**
* getAllActiveCitiesList() method is used to get all active states list
* @param email string
* @return object
*/
public function getAllActiveCitiesList()
{
$dbtable = new Zend_Db_Table('tbl_cities');
$select = $dbtable->select()
->where('status =?','Activate')
->order('city_name');
$result = $dbtable->fetchAll($select);
return $result;
}
/**
* getAllCitiesListByStateId() method is used to get city list by state id
* @param email string
* @return object
*/
public function getAllCitiesListByStateId($state_id)
{
$dbtable = new Zend_Db_Table('tbl_cities');
$select = $dbtable->select()
->where('state_id = ?',$state_id)
->where('status = ?','Activate')
->order('city_name');
$result = $dbtable->fetchAll($select);
return $result;
}
/**
* getAllCounytyList() method is used to get all active country list
* @param NULL
* @return array
*/
public function getAllCounytyList()
{
$dbtable = new Zend_Db_Table('tbl_countries');
$select = $dbtable->select()
->where('status =?','Activate')
->order('Name');
$result = $dbtable->fetchAll($select);
return $result;
}
/**
* getAllActiveCountryCodeList() method is used to get all active country code list
* @param NULL
* @return array
*/
public function getAllActiveCountryCodeList()
{
$dbtable = new Zend_Db_Table('tbl_countries');
$select = $dbtable->select()
->where('status =?','Activate')
->where('CountryCode !=?','NULL')
->where('Code !=?','IND')
->order('Name');
$result = $dbtable->fetchAll($select);
return $result;
}
}