API17

JDatabaseMySQL::getCollation: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Layout updates
Doxiki2 (talk | contribs)
Updated to r1448:247ba8d88526
Line 2: Line 2:
=={{JVer|11.1}} JDatabaseMySQL::getCollation==
=={{JVer|11.1}} JDatabaseMySQL::getCollation==
===Description===
===Description===
Assumes database collation in use by sampling one text field in one table.  
Method to get the database collation in use by sampling a text field of a table in the database.  


{{Description:JDatabaseMySQL::getCollation}}
{{Description:JDatabaseMySQL::getCollation}}
Line 8: Line 8:
<nowiki>[</nowiki>[[Description:JDatabaseMySQL::getCollation|Edit Descripton]]<nowiki>]</nowiki>
<nowiki>[</nowiki>[[Description:JDatabaseMySQL::getCollation|Edit Descripton]]<nowiki>]</nowiki>
</span>
</span>
===Synopsis===
<source lang="php">
<source lang="php">
public JDatabaseMySQL::getCollation ()
public function getCollation ()
</source>
</source>
===Returns===
* '''Returns''' mixed The collation in use by the database or boolean false if not supported.
string Collation in use
* '''Defined''' on line 185 of libraries/joomla/database/database/mysql.php
===Defined in===
* '''Since''' {{JVer|11.1 }}
libraries/joomla/database/database/mysql.php (line 674)
* see source code in [[jplatform:database/database/mysql.php#cl-674|BitBucket]]
===Referenced by===
===See also===
===See also===
* {{JVer|11.1}} '''JDatabaseMySQL::getCollation source code''' on [[jplatform:database/database/mysql.php#cl-177|BitBucket]]
* {{JVer|11.1}} Class [[JDatabaseMySQL/11.1|JDatabaseMySQL]]
* {{JVer|11.1}} Subpackage [[Subpackage_Database/11.1|Database]]
* [[JDatabaseMySQL::getCollation|Other versions of JDatabaseMySQL::getCollation]]
{{SeeAlso:JDatabaseMySQL::getCollation}}
<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JDatabaseMySQL::getCollation|Edit See Also]]<nowiki>]</nowiki>
<nowiki>[</nowiki>[[SeeAlso:JDatabaseMySQL::getCollation|Edit See Also]]<nowiki>]</nowiki>
</span>
</span>
* [[JDatabaseMySQL/11.1|JDatabaseMySQL]]
===User contributed notes===
* [[JDatabaseMySQL::getCollation|Other versions of this method]]
{{SeeAlso:JDatabaseMySQL::getCollation}}
===Examples===
<CodeExamplesForm />
<CodeExamplesForm />
<dpl>
<dpl>
Line 33: Line 31:
category=MethodExample
category=MethodExample
include=*
include=*
namespace=CodeExample
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:JDatabaseMySQL]][[Category:JDatabaseMySQL::getCollation]]</noinclude>
<noinclude>[[Category:JDatabaseMySQL]][[Category:JDatabaseMySQL::getCollation]]</noinclude>

Revision as of 01:31, 28 April 2011

Joomla 11.1 JDatabaseMySQL::getCollation

Description

Method to get the database collation in use by sampling a text field of a table in the database.

Template:Description:JDatabaseMySQL::getCollation [Edit Descripton]

public function getCollation ()
  • Returns mixed The collation in use by the database or boolean false if not supported.
  • Defined on line 185 of libraries/joomla/database/database/mysql.php
  • Since Joomla 11.1

See also

Template:SeeAlso:JDatabaseMySQL::getCollation [Edit See Also]

User contributed notes

<CodeExamplesForm />