From: <var...@us...> - 2016-10-16 16:28:22
|
Revision: 9973 http://sourceforge.net/p/phpwiki/code/9973 Author: vargenau Date: 2016-10-16 16:28:21 +0000 (Sun, 16 Oct 2016) Log Message: ----------- Use __construct Modified Paths: -------------- trunk/lib/phpweather-2.2.2/base_object.php trunk/lib/phpweather-2.2.2/data_retrieval.php trunk/lib/phpweather-2.2.2/db_layer.php trunk/lib/phpweather-2.2.2/phpweather.php Modified: trunk/lib/phpweather-2.2.2/base_object.php =================================================================== --- trunk/lib/phpweather-2.2.2/base_object.php 2016-10-16 15:20:15 UTC (rev 9972) +++ trunk/lib/phpweather-2.2.2/base_object.php 2016-10-16 16:28:21 UTC (rev 9973) @@ -40,7 +40,7 @@ * @param $input array The initial properties of the object * @see $properties */ - function base_object($input = array()) { + function __construct($input = array()) { include(PHPWEATHER_BASE_DIR . '/defaults-dist.php'); Modified: trunk/lib/phpweather-2.2.2/data_retrieval.php =================================================================== --- trunk/lib/phpweather-2.2.2/data_retrieval.php 2016-10-16 15:20:15 UTC (rev 9972) +++ trunk/lib/phpweather-2.2.2/data_retrieval.php 2016-10-16 16:28:21 UTC (rev 9973) @@ -59,9 +59,9 @@ * @access private * @param array The initial properties of the object. */ - function data_retrieval($input = array()) { + function __construct($input = array()) { /* We start by calling the parent constructor. */ - $this->db_layer($input); + parent::__construct($input); /* Then we set the station. */ $this->set_icao($this->properties['icao']); Modified: trunk/lib/phpweather-2.2.2/db_layer.php =================================================================== --- trunk/lib/phpweather-2.2.2/db_layer.php 2016-10-16 15:20:15 UTC (rev 9972) +++ trunk/lib/phpweather-2.2.2/db_layer.php 2016-10-16 16:28:21 UTC (rev 9973) @@ -27,11 +27,11 @@ * * @param $input array Initial properties for the object. */ - function db_layer($input = array()) { + function __construct($input = array()) { /* We call the parent constructor. */ - $this->base_object($input); + parent::__construct($input); - /* We then create our db object */ + /* We then create our db object */ $this->set_db_type($this->properties['db_type']); } Modified: trunk/lib/phpweather-2.2.2/phpweather.php =================================================================== --- trunk/lib/phpweather-2.2.2/phpweather.php 2016-10-16 15:20:15 UTC (rev 9972) +++ trunk/lib/phpweather-2.2.2/phpweather.php 2016-10-16 16:28:21 UTC (rev 9973) @@ -56,11 +56,11 @@ * * @param array The initial properties of the object. */ - function phpweather($input = array()) { + function __construct($input = array()) { /* This class doesn't have any defaults, so it just calls the * parent constructor. */ - $this->data_retrieval($input); + parent::__construct($input); $this->decoded_metar = false; $this->decoded_metar_arch = false; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |