Subversion Repositories PHPX

Compare Revisions

Last modification

Ignore whitespace Rev 8 → Rev 9

/trunk/features.class.php
48,7 → 48,8
*/
public function __construct($a)
{
$aVars = get_class_vars(__CLASS__);
$aVars = get_class_vars(get_class($this));
while ((list($key, $value) = each($aVars)))
{
if (isset($a[$key]))
212,24 → 213,14
*/
public function __construct($params = array())
{
while ((list($key, $value) = each($params)))
$aVars = get_class_vars(get_class($this));
while ((list($key, $value) = each($aVars)))
{
// if ($key != 'versions')
// {
if (property_exists(__CLASS__, $key))
{
$this->$key = $value;
}
// }
// else
// {
// $o =& $this->$key;
//
// while ((list($key2, $value2) = each($value)))
// {
// $o[$key2] = $value2;
// }
// }
if (isset($params[$key]))
{
$this->$key = $params[$key];
}
}
}