PHP Classes

File: Sysconf.php

Recommend this page to a friend!
  Classes of mr   PDO Model   Sysconf.php   Download  
File: Sysconf.php
Role: Class source
Content type: text/plain
Description: A model example
Class: PDO Model
Access database model classes using PDO
Author: By
Last change: fix access limit
Date: 9 years ago
Size: 409 bytes
 

Contents

Class file image Download
<?php

class SysconfModel extends DB_ModelAbstract {

    private static
$instance;

    const
table = 'sysconf';

    public static function
getInstance(&$model = -1, $config = array()) {
        if (!
self::$instance)
           
self::$instance = new self($config);
        if (
$model !== -1)
           
$model = self::$instance;
        else
            return
self::$instance;
    }

}