/**
  * Dynamic Get Function Override
  *
  * @param $name
  *   A string containing the name of the property to get.
  * @return
  *   Value of the property.
  */
 public function __get($name)
 {
     switch ($name) {
         case 'insertID':
             $return = mysql_insert_id();
             break;
         default:
             $return = parent::__get($name);
     }
     return $return;
 }
 /**
  * Dynamic Get Function Override
  *
  * @param $name
  *   A string containing the name of the property to get.
  * @return
  *   Value of the property.
  */
 public function __get($name)
 {
     switch ($name) {
         case 'connection':
             $return = $this->_getConnection();
             break;
         case 'insertID':
             $return = mysqli_insert_id();
             break;
         default:
             $return = parent::__get($name);
     }
     return $return;
 }