Actions

API17

Difference between revisions of "JDatabase::getEscaped"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by one user not shown)
Line 2: Line 2:
 
=={{JVer|11.1}} JDatabase::getEscaped==
 
=={{JVer|11.1}} JDatabase::getEscaped==
 
===Description===
 
===Description===
Get a database escaped string.  
+
Method to escape a string for usage in an SQL statement.  
  
 
{{Description:JDatabase::getEscaped}}
 
{{Description:JDatabase::getEscaped}}
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JDatabase::getEscaped|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JDatabase::getEscaped|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JDatabase->getEscaped ($text, $extra=false)
+
public function getEscaped (
 +
        $text
 +
        $extra=false
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 22: Line 24:
 
|string
 
|string
 
|
 
|
|The string to be escaped  
+
|The string to be escaped.
 
|-
 
|-
 
|$extra
 
|$extra
|boolean
+
|bool
 
|false
 
|false
|Optional parameter to provide extra escaping  
+
|Optional parameter to provide extra escaping.
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' string The escaped string.
string
+
* '''Defined''' on line 1153 of libraries/joomla/database/database.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/database/database.php
+
===Referenced by===
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JDatabase::getEscaped source code''' on [[jplatform:database/database.php#cl-1145|BitBucket]]
 +
* {{JVer|11.1}} Class [[JDatabase/11.1|JDatabase]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Database/11.1|Database]]
 +
* [[JDatabase::getEscaped|Other versions of JDatabase::getEscaped]]
 +
{{SeeAlso:JDatabase::getEscaped}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDatabase::getEscaped|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JDatabase::getEscaped|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JDatabase/11.1|JDatabase]]
+
===User contributed notes===
* [[JDatabase::getEscaped|Other versions of this method]]
+
{{SeeAlso:JDatabase::getEscaped}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 50: Line 52:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JDatabase]][[Category:JDatabase::getEscaped]]</noinclude>
 
<noinclude>[[Category:JDatabase]][[Category:JDatabase::getEscaped]]</noinclude>

Revision as of 20:25, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JDatabase::getEscaped

Description

Method to escape a string for usage in an SQL statement.

Description:JDatabase::getEscaped [Edit Descripton]

public function getEscaped (
        $text
        $extra=false
)
Parameter Type Default Description
$text string The string to be escaped.
$extra bool false Optional parameter to provide extra escaping.
  • Returns string The escaped string.
  • Defined on line 1153 of libraries/joomla/database/database.php
  • Since Joomla 11.1

See also

SeeAlso:JDatabase::getEscaped [Edit See Also]

User contributed notes

<CodeExamplesForm />