Пример #1
0
 public function execute()
 {
     $netKeys = Api_Bo_Network::createNetwork($this->getUserId(), $this->m_properties);
     //return response
     $response = array();
     if ($netKeys !== false) {
         $response['network'] = array();
         $response['network']['name'] = isset($this->m_properties['name']) ? $this->m_properties['name'] : $netKeys[0];
         $response['network']['key'] = $netKeys[0];
         $response['network']['secret'] = $netKeys[1];
     }
     return $response;
 }