public function getPrimaryKey($table)
	{
		$keys = $this->getTableKeys($table);
		$key  = false;

		if ($keys && count($keys) > 0)
		{
			foreach ($keys as $k)
			{
				if ($k->Key_name == 'PRIMARY')
				{
					$key = $k->Column_name;
				}
			}
		}

		return $key;
	}
public function getPrimaryKey($table)
	{
		$keys = $this->getTableKeys($table);
		$key  = false;

		if ($keys && count($keys) > 0)
		{
			foreach ($keys as $k)
			{
				if ($k->Key_name == 'PRIMARY')
				{
					$key = $k->Column_name;
				}
			}
		}

		return $key;
	}
public function getPrimaryKey ( $ table ) { $ keys = $ this -> getTableKeys ( $ table ) ; $ key = false ; if ( $ keys && count ( $ keys ) > 0 ) { foreach ( $ keys as $ k ) { if ( $ k -> Key_name == 'PRIMARY' ) { $ key = $ k -> Column_name ; } } } return $ key ; }
Gets the primary key of a table

@return  string
@since   2.0.0
Gets the primary key of a table