diff options
Diffstat (limited to 'lib/class/catalog.class.php')
-rw-r--r-- | lib/class/catalog.class.php | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php index 8bd29204..63ed3816 100644 --- a/lib/class/catalog.class.php +++ b/lib/class/catalog.class.php @@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * @package Catalog * @catagory Class */ -class Catalog { +class Catalog extends database_object { public $name; public $last_update; @@ -60,7 +60,7 @@ class Catalog { $this->id = intval($catalog_id); /* Get the information from the db */ - $info = $this->_get_info(); + $info = $this->get_info($catalog_id); foreach ($info as $key=>$value) { $this->$key = $value; @@ -69,22 +69,6 @@ class Catalog { } //constructor /** - * _get_info - * get's the vars for $this out of the database requires an id - */ - private function _get_info() { - - /* Grab the basic information from the catalog and return it */ - $sql = "SELECT * FROM `catalog` WHERE `id`='$this->id'"; - $db_results = Dba::query($sql); - - $results = Dba::fetch_assoc($db_results); - - return $results; - - } // _get_info - - /** * _create_filecache * This poplates an array (filecache) on this object from the database * it is used to speed up the add process |