public static function getInstance() { if (!self::$dbInstance) { self::$dbInstance = new FM_Models_Db(); } return self::$dbInstance; }
public function __construct($host = null, $userName = null, $password = null, $dbName = null) { $this->_conn = FM_Models_Db::getInstance()->getConnection(); $this->_colNames = array_keys($this->_conn->describeTable($this->_tableName)); }