Ejemplo n.º 1
0
 /**
  * get snom phone data
  *
  * @return array
  */
 public function getSnomPhone()
 {
     $testLocation = $this->_getSnomLocation();
     $returnedLocation = $this->_json->saveSnomLocation($testLocation->toArray());
     $testTemplate = $this->_getSnomTemplate();
     $returnedTemplate = $this->_json->saveSnomTemplate($testTemplate->toArray());
     return array('description' => Tinebase_Record_Abstract::generateUID(), 'macaddress' => substr(Tinebase_Record_Abstract::generateUID(), 0, 12), 'location_id' => $returnedLocation['id'], 'template_id' => $returnedTemplate['id'], 'current_model' => 'snom300', 'redirect_event' => 'none', 'http_client_info_sent' => '1', 'http_client_user' => Tinebase_Record_Abstract::generateUID(), 'http_client_pass' => Tinebase_Record_Abstract::generateUID());
 }