26 lines
614 B
PHP
26 lines
614 B
PHP
<?php
|
|
|
|
/**
|
|
* Subclass for performing query and update operations on the 'st_export_profile' table.
|
|
*
|
|
*
|
|
*
|
|
* @package plugins.stImportExportPlugin.lib.model
|
|
*/
|
|
class ExportProfilePeer extends BaseExportProfilePeer
|
|
{
|
|
public static function exist($module, $model, $name, array $exclude = null)
|
|
{
|
|
$c = new Criteria();
|
|
$c->add(self::MODEL, stImportExportPropel::getProfileModuleScope($module, $model));
|
|
$c->add(self::NAME, $name);
|
|
|
|
if ($exclude)
|
|
{
|
|
$c->add(self::ID, $exclude, Criteria::NOT_IN);
|
|
}
|
|
|
|
return self::doCount($c) > 0;
|
|
}
|
|
}
|