Class weather
Weather widget class All Documentation included in this document. For further developer note please see the Weather.php class
Author:
Samy Massoud <samymassoud@gmail.com>
Version: 1.0.1
Link: http://www.deploy2cloud.com/demo/weather
Tutorial: This class main functionality is to provide weather wedget to use it easily and smoothly. You can use this class with almost zero configuration , or configure it as far as you need ! When i started to write this class i put in mind to make it easy,clean and professional as much as i can. To start using this class just do the following 1- include attached weather.css file in your page. 2- Make sure that you have embedded jquery version greater than 1.6 3- Include this class in your page and Make object from this class with required city $weather = new weather ("Cairo,EG"); echo $weather->get_weather (); And you will get a copy from this widget with cairo weather ! To start using this class as codeigniter library 1- include attached weather.css file in your page. 2- Make sure that you have embedded jquery version greater than 1.6 3- Move weather.php to application/libraries folder and you can load library by adding it to autoload.php or use $this->load->library ('weather'); and at any place in your application (Controller or view) $this->weather->set_city ('Cairo,EG'); echo $this->weather->get_weather (); And you will get a copy from this widget with cairo weather !
Located at weather/weathercore.php
Version: 1.0.1
Link: http://www.deploy2cloud.com/demo/weather
Tutorial: This class main functionality is to provide weather wedget to use it easily and smoothly. You can use this class with almost zero configuration , or configure it as far as you need ! When i started to write this class i put in mind to make it easy,clean and professional as much as i can. To start using this class just do the following 1- include attached weather.css file in your page. 2- Make sure that you have embedded jquery version greater than 1.6 3- Include this class in your page and Make object from this class with required city $weather = new weather ("Cairo,EG"); echo $weather->get_weather (); And you will get a copy from this widget with cairo weather ! To start using this class as codeigniter library 1- include attached weather.css file in your page. 2- Make sure that you have embedded jquery version greater than 1.6 3- Move weather.php to application/libraries folder and you can load library by adding it to autoload.php or use $this->load->library ('weather'); and at any place in your application (Controller or view) $this->weather->set_city ('Cairo,EG'); echo $this->weather->get_weather (); And you will get a copy from this widget with cairo weather !
Located at weather/weathercore.php
public
|
#
__construct( type $config = null )
Construct weather widget you can provide any configration you want Click right # to see more |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
type
|
#
get_weather( )
get weather widget or row array according to your config $this->weather_info['rain'] array is available if any rain data available AND it's array:) Thank's for Ray <ray@tzweather.org> |