PHP/Work with catalogs on the example of displaying a list of catalogs

Материал из Laximo
Перейти к: навигация, поиск
Эта страница является переводом страницы PHP/Work with catalogs on the example of displaying a list of catalogs. Перевод выполнен на 95%.

Другие языки:
English • ‎русский

Work with catalogs in the context of catalogs list's display

// Connect the class to work with the web-service
include('guayaquillib'.DS.'data'.DS.'request.php');
// Connect the class to display the data with the catalog's list
include('guayaquillib'.DS.'render'.DS.'catalogs'.DS.'2coltable.php');
 
// Create an object to work with service
$request = new GuayaquilRequestOEM('', '', 'ru_RU');
 
// Use the login and the key for authorization and authentication
$request->setUserAuthorizationMethod('Login', 'Key');
 
// Add to request a command to request a catalog's list, available for users
$request->appendListCatalogs();
 
// Make a request
$data = $request->query();
 
// If an error occured
if ($request->error != '')
{
echo $request->error;
}
else
{
// Create an object, to display the catalog's data, which the class' object GuayaquilExtender is transmitted to (see notes)
$renderer = new GuayaquilCatalogsList(new GuayaquilExtender());
 
// Configuring
$renderer->columns = array('icon', 'name', 'version');
 
// Display the received data from service
echo $renderer->Draw($data->ListCatalogs);
}

Смотри также

Functions of Laximo web services

General information

Work principles Security Catalogs localization Catalogs update Error handling
Laximo.OEM Catalog search ListCatalogs,GetCatalogInfo
Vehicle search FindVehicleByVIN, FindVehicleByFrame, FindVehicleByFrameNo, FindVehicle, GetWizard2, GetWizardNextStep2, FindVehicleByWizard2, GetVehicleInfo, ExecCustomOperation
Unit search ListUnits, ListCategories, GetFilterByUnit, GetUnitInfo
Searching details in the unit ListDetailByUnit, ListImageMapByUnit, GetFilterByDetail
Quick search of details ListQuickGroup, ListQuickDetail
Laximo.Aftermarket Parts search FindOEM, FindReplacements, FindDetail, FindOEMCorrection
Manufacturer ManufacturerInfo, ListManufacturer
Libraries and samples of Laximo web-services use
PHP
Download
the library for PHP
Library use samples Change of the behavior and appearance of the catalog elements
GuayaquilExtender
Examples of overriding the default behavior of classes to display the data in html
Example of crosses obtainment with LaximoAftermarket
Work with catalogs in the context of catalogs list's display
Скачать библиотеку ASP.NET ASP.NET Guayaquil library
Варианты внедрения сервисов Laximo в 1С

Related categories