assign array proprties and values to any class object
function assignTablePropertiesToObject($array)
{
$class = new self::$get_class;
if (!empty($array)) {
foreach ($array as $prop => $value) {
$class->$prop = $value;
}
}
return $class;
}