cakephp-1.3 > DboSource :: name()
A AclBase AclBehavior AclComponent AclNode AclShell Aco AcoAction AjaxHelper ApcEngine ApiShell App AppController AppController AppHelper AppHelper AppModel AppModel Aro AuthComponent B BakeShell BakeTask BehaviorCollection C Cache CacheEngine CacheHelper CakeErrorController CakeLog CakeRoute CakeSchema CakeSession CakeSocket ClassRegistry Component Configure ConnectionManager ConsoleShell ContainableBehavior Controller ControllerTask CookieComponent D DataSource DbAcl DbAclSchema DbConfigTask DboMssql DboMysql DboMysqlBase DboMysqli DboOracle DboPostgres DboSource DboSqlite Debugger Dispatcher E EmailComponent ErrorHandler ErrorHandler ExtractTask F File FileEngine FileLog FixtureTask Folder FormHelper H Helper HtmlHelper HttpSocket I I18n I18nModel i18nSchema I18nShell Inflector IniAcl J JavascriptHelper JqueryEngineHelper JsBaseEngineHelper JsHelper L L10n M MagicDb MagicFileResource MediaView MemcacheEngine Model ModelBehavior ModelTask MootoolsEngineHelper Multibyte N NumberHelper O Object Overloadable Overloadable Overloadable2 Overloadable2 P PagesController PagesController PaginatorHelper Permission PluginShortRoute PluginTask ProjectTask PrototypeEngineHelper R RequestHandlerComponent Router RssHelper S Sanitize Scaffold ScaffoldView SchemaShell Security SecurityComponent SessionComponent SessionHelper SessionsSchema Set Shell ShellDispatcher String T TemplateTask TestSuiteShell TestTask TextHelper ThemeView TimeHelper TranslateBehavior TreeBehavior V Validation View ViewTask X XcacheEngine Xml XmlElement XmlHelper XmlManager XmlNode XmlTextNode

name

line:527 at /cake/libs/model/datasources/dbo_source.php
Returns a quoted name of $data for use in an SQL statement. Strips fields out of SQL functions before quoting.

Method

(string) name ($data)

Parameters

ParameterTypeCommentDefault
$data mixed required Either a string with a column to quote. An array of columns to quote or an object from DboSource::expression() or DboSource::identifier()

Return

string

Comment

Returns a quoted name of $data for use in an SQL statement.
Strips fields out of SQL functions before quoting.

Results of this method are stored in a memory cache. This improves performance, but
because the method uses a simple hashing algorithm it can infrequently have collisions.
Setting DboSource::$cacheMethods to false will disable the memory cache.

@param mixed $data Either a string with a column to quote. An array of columns to quote or an
object from DboSource::expression() or DboSource::identifier()
@return string SQL field
@access public