Пример #1
0
 public static function delete($obj)
 {
     // Remove the number from all contexts that is belongs to
     if ($obj->NumberContext) {
         foreach ($obj->NumberContext as $context) {
             FreeSwitch_NumberContext_Driver::delete($context);
         }
     }
 }
Пример #2
0
 public static function delete($obj)
 {
     // Remove the number from all contexts that is belongs to
     if ($obj->NumberContext)
     {
         foreach ($obj->NumberContext as $context)
         {
             FreeSwitch_NumberContext_Driver::delete($context);
         }
     }
     
     Freeswitch::setSection('number_route', $obj['number_id'])->deleteNode();
 }