Example #1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'start_row', 'type' => TType::STRING), 2 => array('var' => 'end_row', 'type' => TType::STRING), 3 => array('var' => 'location', 'type' => TType::STRING), 4 => array('var' => 'ip_address', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['start_row'])) {
             $this->start_row = $vals['start_row'];
         }
         if (isset($vals['end_row'])) {
             $this->end_row = $vals['end_row'];
         }
         if (isset($vals['location'])) {
             $this->location = $vals['location'];
         }
         if (isset($vals['ip_address'])) {
             $this->ip_address = $vals['ip_address'];
         }
     }
 }