Login +

Documentation

The class SLS_FrontModelSql

Since SillySmart1.0

Introduction

Mother class of SQL models

Synopsis

class SLS_FrontModelSql extends extends {
  • public beginTransaction ( );
  • public commitTransaction ( );
  • public int countModels ( string $table, [ array $joins ] , [ array $clause ] , [ array $group ] );
  • public create ( array $params, [ int $pkMultiLang ] );
  • public mixed delete ( int $id, [ bool $allLangs ] );
  • public int deleteModels ( string $table, array $joins, array $clause );
  • public exec ( string $exec );
  • public fkAC ( string $tableSource, string $tableFk, string $pkFk, array $columnsToSelect, [ string $clause ] , [ string $lang ] , [ string $value ] , [ int $nb ] , [ int $id ] );
  • public array get ( int $id );
  • public string getColumnComment ( string $column, string $table, string $db );
  • public getColumnDefault ( string $column, [ string $table ] , [ string $db ] );
  • public bool getModel ( int $id );
  • public string getTableComment ( string $table, string $db );
  • public array giveNextId ( );
  • public bool isUnique ( string $column, string $value, string $table, [ string $excludedColumn ] , [ string $excludedValue ] );
  • public rollbackTransaction ( );
  • public bool save ( int $id, array $array );
  • public array searchModels ( [ string $table ] , [ array $joins ] , [ array $clause ] , [ array $group ] , [ mixed $order ] , [ array $limit ] );
  • public bool setColumnComment ( string $column, string $comment, string $table, string $db );
  • public setModelLanguage ( [ string $lang ] );
  • public bool setTableComment ( string $comment, string $table, string $db );
  • public __construct ( string $table, string $primaryKey, [ bool $multilanguage ] );
}

Comments

No comment on this object, be the first !

Add your comment

You must login/register to post a reply.