PMA\libraries\Table::getName PHP Method

getName() public method

returns table name
public getName ( boolean $backquoted = false ) : string
$backquoted boolean whether to quote name with backticks ``
return string table name
    public function getName($backquoted = false)
    {
        if ($backquoted) {
            return Util::backquote($this->_name);
        }
        return $this->_name;
    }

Usage Example

コード例 #1
0
ファイル: TableTest.php プロジェクト: pboutin44/maintest
 /**
  * Test getName & getDbName
  *
  * @return void
  */
 public function testGetName()
 {
     $table = new Table('table1', 'pma_test');
     $this->assertEquals("table1", $table->getName());
     $this->assertEquals("`table1`", $table->getName(true));
     $this->assertEquals("pma_test", $table->getDbName());
     $this->assertEquals("`pma_test`", $table->getDbName(true));
 }
All Usage Examples Of PMA\libraries\Table::getName