Asf_Db_AbstractAdapter::getTable

Get Table name


Description

public string getTable(void)

Return Values

String 代表成功, NULL 代表失败

Examples

Example #1 连接MySQL数据库

<?php
$configs = array(
    'dsn' => array('host' => '127.0.0.1', 'dbname' => 'test', 'port' => 6666),
    'username' => 'test',
    'password' => 'AbcdefRDvgedf',
);

$mysql = new Asf_Db_Adapter_Mysql($configs);
$mysql->setTable('test1');
var_dump($mysql->getTable());