Login +

Documentation

SLS_FrontModel::isUnique

Since SillySmart 1.0

Description

Check if a recordset described by a column doesn't already exists
public bool isUnique ( string $column, string $value, [ string $table ] , [ string $excludedColumn ] , [ string $excludedValue ] );

Parameters

  • string $column
    the column name
  • string $value
    the column value
  • string $table
    the table to check (current table model if empty)
  • string $excludedColumn
    the column name to exclude
  • string $excludedValue
    the column value to exclude

Return

bool $isUnique
true if no recordset has been found, else false
No exemples.

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.