function DeleteSubAdminsByIds($subAdminsIds) { if (is_array($subAdminsIds) && count($subAdminsIds) > 0) { foreach ($subAdminsIds as $subAdminId) { $this->_connector->Execute($this->_commandCreator->ClearSubAdminDomains($subAdminId)); $this->_connector->Execute($this->_commandCreator->DeleteSubAdminById($subAdminId)); } return true; } return false; }
/** * @param string $pref * @return bool */ function CreateTables($pref) { $tableArray = GetTablesArray($pref); $original = GetTablesArray(''); foreach ($tableArray as $key => $tname) { $sql = trim($this->_commandCreator->CreateTable($original[$key], $pref)); if ($sql === '') { return false; } if (!$this->_connector->Execute($sql)) { return $tname; } } return true; }