38 lines
757 B
PHP
38 lines
757 B
PHP
<?php
|
|
|
|
/**
|
|
* Subclass for performing query and update operations on the 'st_export_field' table.
|
|
*
|
|
*
|
|
*
|
|
* @package plugins.stImportExportPlugin.lib.model
|
|
*/
|
|
class ExportFieldPeer extends BaseExportFieldPeer
|
|
{
|
|
public static function doSelectByModel($model)
|
|
{
|
|
$c = new Criteria();
|
|
$c->add(self::MODEL, $model);
|
|
|
|
$results = array();
|
|
|
|
foreach (self::doSelect($c) as $field)
|
|
{
|
|
$results[$field->getId()] = $field;
|
|
}
|
|
|
|
return $results;
|
|
}
|
|
|
|
/**
|
|
* Zwraca nazwę katalogu i18n
|
|
*
|
|
* @param string $model Nazwa modelu
|
|
* @return string
|
|
*/
|
|
public static function getI18nCatalogue($model)
|
|
{
|
|
return 'st'.$model.'ImportExport';
|
|
}
|
|
}
|