public function checkAllSubAccounts() { /*get all sub accounts */ foreach ($this->sipAccountModel->subSipAccounts as $currentSubSipAccount) { if (Yii::app()->params['notifyEnabled']) { /*notify*/ $checker = new SipAccountNotifier(); $checker->check($currentSubSipAccount); /*end of notify*/ } $this->check("getuserinfo", $this->sipAccountModel->username, $this->sipAccountModel->password, $currentSubSipAccount->username, $currentSubSipAccount->password, $currentSubSipAccount); } }