Leitgedanken/msd2/myoos/admin/includes/classes/class_object_info.php
2023-01-23 11:03:31 +01:00

53 lines
1.4 KiB
PHP

<?php
/* ----------------------------------------------------------------------
$Id: class_object_info.php,v 1.1 2007/06/08 14:58:10 r23 Exp $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Based on:
File: object_info.php,v 1.5 2002/01/30 01:14:20 hpdl
----------------------------------------------------------------------
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
/** ensure this file is being included by a parent file */
defined( 'OOS_VALID_MOD' ) or die( 'Direct Access to this location is not allowed.' );
class objectInfo
{
/**
* @var
*/
protected $key;
/**
* @param $object_array
*/
function __construct($aObject)
{
$this->updateObjectInfo($aObject);
}
/**
* @param $aObject
*/
function updateObjectInfo($aObject)
{
if (!is_array($aObject)) return;
reset($aObject);
foreach ($aObject as $key => $value) {
$this->$key = oos_db_prepare_input($value);
}
}
}