PHP/Example GuayaquilExtender

Материал из Laximo
Перейти к: навигация, поиск
Эта страница является переводом страницы PHP/Example GuayaquilExtender. Перевод выполнен на 100%.

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

Sample of interface realization|GuayaquilExtender, which allows integration with CMS joomla

class GuayaquilExtender implements IGuayaquilExtender
public function GetLocalizedString($name, $params = false, $renderer)
if ($params == false)
return JText::_($name);
array_unshift($params, JText::_($name));
return call_user_func_array('sprintf', $params);
public function AppendJavaScript($filename, $renderer)
JHTML::script(basename($filename), implode('/', array_slice(explode('/', dirname($filename)),
count(explode('/', dirname($_SERVER[SCRIPT_FILENAME]))))).'/');
public function AppendCSS($filename, $renderer)
JHTML::_('stylesheet', basename($filename), implode('/', array_slice(explode('/', dirname($filename)),
count(explode('/', dirname($_SERVER[SCRIPT_FILENAME]))))).'/');
public function Convert2uri($filename)
return implode('/', array_slice(explode('/', dirname($filename)),
count(explode('/', dirname($_SERVER[SCRIPT_FILENAME]))))).'/'.basename($filename);
function FormatLink($type, $dataItem, $catalog, $renderer)
$link = 'index.php?option=com_guayaquil&view='.$type.'&c='.$dataItem['code'].'&ssd='.$dataItem['ssd'];
if ($dataItem['supportparameteridentifocation'] == 'true')
$link .= '&spi=t';
return $link;

See also

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
the library for PHP
Library use samples Change of the behavior and appearance of the catalog elements
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С