Login +

Documentation

The class SLS_FrontModel

Since SillySmart1.0

Introduction

Mother class of models

Synopsis

class SLS_FrontModel {
  • public beginTransaction ( );
  • protected beSurInitDbInfos ( );
  • public mixed callSqlFunction ( );
  • public commitTransaction ( );
  • public int countModels ( string $table, [ array $joins ] , [ array $clause ] , [ array $group ] );
  • public int create ( [ int $pkMultiLang ] );
  • public bool delete ( );
  • public deleteFiles ( [ array $columns ] );
  • public 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 string getColumnComment ( string $column, [ string $table ] , [ string $db ] );
  • public array getColumns ( );
  • public string getDatabase ( );
  • public string getError ( string $key );
  • public array getErrors ( );
  • public bool getModel ( int $id );
  • public array getParams ( [ mixed $fks ] );
  • public string getPrimaryKey ( );
  • public string getTable ( );
  • public string getTableComment ( [ string $table ] , [ string $db ] );
  • public int giveNextId ( );
  • public bool isMultilanguage ( );
  • public bool isUnique ( string $column, string $value, [ string $table ] , [ string $excludedColumn ] , [ string $excludedValue ] );
  • public SLS_XMLToolbox pdoToXML ( SLS_XMLToolbox $xml, array $recordsets, [ array $options ] , [ string $nodeName ] );
  • public rollbackTransaction ( );
  • public bool save ( );
  • 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 SLS_XMLToolbox toXML ( SLS_XMLToolbox $xml, [ array $options ] , [ mixed $fks ] , [ string $nodeName ] , [ array $properties ] );
  • public __construct ( [ bool $multilanguage ] );
  • public string __get ( string $var );
  • public __set ( string $var, mixed $value );
  • static array __set_state ( array $an_array );
}

Comments

No comment on this object, be the first !

Add your comment

You must login/register to post a reply.