Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2 from thinkclay/3.2/master

3.2/master
  • Loading branch information...
commit 677d37073fe898348ca5660ae1f789a4272c188b 2 parents e77c51a + 2c3d541
@winterpk authored
Showing with 11 additions and 11 deletions.
  1. +2 −2 README.md
  2. +9 −9 classes/zillow/core.php
View
4 README.md
@@ -1,3 +1,3 @@
-# Zillow API Module for Kohana 3.x
+# Zillow API Module for Kohana 3.2
-This module is a nice drop in solution to start working with the Zillow API
+This module is a nice drop in solution to start working with the Zillow API
View
18 classes/zillow/core.php
@@ -14,19 +14,18 @@
*/
public $zws_id;
-
/**
* Class Constructor
*/
- public function __construct ()
+ public function __construct()
{
- $this->zws_id = Kohana::config('zillow')->zws_id;
+ $this->zws_id = Kohana::$config->load('zillow.zws_id');
}
/**
* Factory - method loads a new Zillow object
*/
- public static function factory ()
+ public static function factory()
{
return new Zillow;
}
@@ -35,9 +34,9 @@ public static function factory ()
* Creates (if not already created) and returns a Zillow_Transporter object
* @return Zillow_Transporter
*/
- public function create_transporter ()
+ public function create_transporter()
{
- if ( FALSE === isset($this->_transporter) )
+ if ( isset($this->_transporter) === FALSE )
$this->_transporter = new Zillow_Transporter;
return $this->_transporter;
@@ -53,7 +52,7 @@ public function create_transporter ()
* @link http://www.zillow.com/webservice/GetSearchResults.htm
* @throws Zillow_Exception
*/
- public function get_search_results ( $address = NULL, $csz = NULL )
+ public function get_search_results($address = NULL, $csz = NULL)
{
$uri = 'http://www.zillow.com/webservice/GetSearchResults.htm';
$trans = $this->create_transporter();
@@ -76,12 +75,13 @@ public function get_search_results ( $address = NULL, $csz = NULL )
/**
* Gets the Zestimate for a specific zillow property ID (zpid)
*
- * @param string $zpid
+ * @param string $address Street Address
+ * @param stirng $csz City State Zip
* @return object xml
* @link http://www.zillow.com/webservice/GetZestimate.htm
* @throws Zillow_Exception
*/
- public function get_zestimate ( $address = NULL, $csz = NULL )
+ public function get_zestimate($address = NULL, $csz = NULL)
{
$uri = 'http://www.zillow.com/webservice/GetSearchResults.htm';
$trans = $this->create_transporter();
Please sign in to comment.
Something went wrong with that request. Please try again.