This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function pnrAddMultiElements11(Request $request) | |
{ | |
$params = new SimpleXMLElement('<PNR_AddMultiElements></PNR_AddMultiElements>'); | |
$params->addChild('pnrActions'); | |
$params->pnrActions->addChild('optionCode'); | |
$params->pnrActions->optionCode = '0'; | |
foreach ($request->get('travellers') as $traveller) { | |
$params->addChild('travellerInfo'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import psycopg2 as pg | |
from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT | |
class Database: | |
def __init__(self, host='127.0.0.1', port='5432', username='postgres', password='', database=''): | |
self.host = host | |
self.port = port | |
self.username = username | |
self.password = password |
OlderNewer