Amiro.CMS API Reference
Amiro.Ru / Manual
Loading search...

The cstEshopDatasets class

• Introduction

Class containing handlers.

• Class synopsis

cstEshopDatasets {
/* Constants */
// Module id
const cstEshopDatasets::MOD_ID =  'eshop_datasets';
/* Properties */
// Array containing loaded locales
public static array $aLocale;
/* Methods */
// Formats modification date field in the list.
public static cbRenderField ( &$aItem, &$aData, &array $aItem, &array $aData ) returns void;
// Handles after old environment extensions processed action.
public static handleV5OnExtAction ( string $name, $aEvent, string $handlerModId, string $srcModId ) returns array;
// Adds form field.
public static handleV5OnRenderPageAdm ( string $name, $aEvent, string $handlerModId, string $srcModId ) returns array;
}

• Class Details

File '_local/_admin/templates/custom_eshop_datasets_list.tpl':
  •  %%include_language "_local/_admin/templates/lang/custom_eshop_datasets.lng"%%
  •  
  •  <!--#set var="row" value="
  •  <tr id="group_row_##id##" class="##style##" onmouseover="highLightRow(this, 1)" onmouseout="highLightRow(this, 0)" onClick="grpRowChangeItem('##id##', event)">
  •      ##_group_operations_col##
  •      <td>##name##</td>
  •      <td width="90" align=right>##numfields##</td>
  •      <td width="90" align=right>##numcats##</td>
  •      <td width="150">##postfix##</td>
  •      <td width="150">##sku_map##&nbsp;</td>
  •      <td>##modified_date##&nbsp;</td>
  •      <td align="center">
  •          ##action_edit##
  •          ##action_copy##
  •          ##action_del##
  •      </td>
  •  </tr>
  •  "-->
  •  
  •  <!--#set var="list_body" value="
  •  <div align="right" width="100%" style="margin-top: 15px;" >##pager##</div>
  •  ##_group_operations_script##
  •  <form name="group_operations_form">
  •  <table width="100%" border="0" cellspacing="0" cellpadding="4">
  •  <tr>
  •      ##_group_operations_header##
  •      <td class="first_row_left_td list_name_col">%%name%% ##sort_name##</td>
  •      <td class="first_row_all" width="90" align="right">%%numfields%% ##sort_numfields##</td>
  •      <td class="first_row_all" width="90" align="right">%%numcats%% ##sort_numcats##</td>
  •      <td class="first_row_all" width="150">%%postfix%% ##sort_postfix##</td>
  •      <td class="first_row_all" width="150">%%sku_map%%</td>
  •      <td class="first_row_all" width="150">%%modified_date%%</td>
  •      <td class="first_row_all" align="center" width="100">%%actions%%</td>
  •  </tr>
  •  ##list##
  •  </table>
  •  ##_group_operations_footer##
  •  </form>
  •  <a name="anchor"></a>
  •  "-->
File '_local/_admin/templates/lang/custom_eshop_datasets.lng':
  •  %%modified_date%en%%
  •  Modification date
  •  %%modified_date%ru%%
  •  Время модификации
  •  
  •  %%my_field%en%%
  •  My field
  •  %%my_field%ru%%
  •  Поле
Tags:
since 6.0.8

• Class Constants

MOD_ID

Module id

• Class Properies

public static array $aLocale

Array containing loaded locales

• Class Methods

// Formats modification date field in the list.
public static cbRenderField ( &$aItem, &$aData, &array $aItem, &array $aData ) returns void;
  • &array $aItem
    Item array
  • &array $aData
    Common data array
  • array &$aItem
  • array &$aData
// Handles after old environment extensions processed action.
public static handleV5OnExtAction ( string $name, $aEvent, string $handlerModId, string $srcModId ) returns array;
  • string $name
    Event name
  • array $aEvent
    Event data
  • string $handlerModId
    Handler module id
  • string $srcModId
    Source module id
Event handler.
  • Ovirrides list template;
  • Adds database table field to selection;
  • Sets list field callback to format modification date;
  • Writes "my_field" value to log file.
// Adds form field.
public static handleV5OnRenderPageAdm ( string $name, $aEvent, string $handlerModId, string $srcModId ) returns array;
  • string $name
    Event name
  • array $aEvent
    Event data
  • string $handlerModId
    Handler module id
  • string $srcModId
    Source module id
Event handler.