Пример #1
0
 /**
  * inactivates other phonees owned by this user with the same 
  * phone type
  */
 private function _inactivate_all_actives()
 {
     $phones = new Phones($this->pidm);
     $phones->load();
     $active = $phones->active_by_type($this->tele_code);
     foreach ($active as $phone) {
         $phone->set_inactive();
         $phone->save();
     }
     //end foreach
 }