当前位置: 首页>>代码示例>>PHP>>正文


PHP AbstractPlatform::quoteIdentifier方法代码示例

本文整理汇总了PHP中AbstractPlatform::quoteIdentifier方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractPlatform::quoteIdentifier方法的具体用法?PHP AbstractPlatform::quoteIdentifier怎么用?PHP AbstractPlatform::quoteIdentifier使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AbstractPlatform的用法示例。


在下文中一共展示了AbstractPlatform::quoteIdentifier方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getQuotedJoinTableName

 /**
  * Gets the (possibly quoted) name of the join table.
  *
  * @param AbstractPlatform $platform
  * @return string
  */
 public function getQuotedJoinTableName(array $assoc, $platform)
 {
     return isset($assoc['joinTable']['quoted']) ? $platform->quoteIdentifier($assoc['joinTable']['name']) : $assoc['joinTable']['name'];
 }
开发者ID:nahakiole,项目名称:cloudrexx,代码行数:10,代码来源:ClassMetadata.php

示例2: getQuotedTableName

 /**
  * Gets the (possibly quoted) primary table name of this class for safe use
  * in an SQL statement.
  * 
  * @param AbstractPlatform $platform
  * @return string
  */
 public function getQuotedTableName($platform)
 {
     return isset($this->table['quoted']) ? $platform->quoteIdentifier($this->table['name']) : $this->table['name'];
 }
开发者ID:sentact,项目名称:vendor-doctrine2,代码行数:11,代码来源:ClassMetadata.php

示例3: getQuotedJoinColumnName

 /**
  * Gets the (possibly quoted) column name of a join column that is safe to use
  * in an SQL statement.
  * 
  * @param string $joinColumn
  * @param AbstractPlatform $platform
  * @return string
  */
 public function getQuotedJoinColumnName($joinColumn, $platform)
 {
     return isset($this->joinColumns[$joinColumn]['quoted']) ? $platform->quoteIdentifier($joinColumn) : $joinColumn;
 }
开发者ID:nvdnkpr,项目名称:symfony-demo,代码行数:12,代码来源:OneToOneMapping.php

示例4: getQuotedDiscriminatorColumnName

 /**
  * Gets the (possibly quoted) name of the discriminator column for safe use
  * in an SQL statement.
  * 
  * @param AbstractPlatform $platform
  * @return string
  */
 public function getQuotedDiscriminatorColumnName($platform)
 {
     return isset($this->discriminatorColumn['quoted']) ? $platform->quoteIdentifier($this->discriminatorColumn['name']) : $this->discriminatorColumn['name'];
 }
开发者ID:nvdnkpr,项目名称:symfony-demo,代码行数:11,代码来源:ClassMetadata.php

示例5: getQuotedColumnName

 /**
  * Gets the (possibly quoted) column name of a mapped field for safe use
  * in an SQL statement.
  * 
  * @param string $field
  * @param AbstractPlatform $platform
  * @return string
  */
 public function getQuotedColumnName($field, $platform)
 {
     return isset($this->fieldMappings[$field]['quoted']) ?
             $platform->quoteIdentifier($this->fieldMappings[$field]['columnName']) :
             $this->fieldMappings[$field]['columnName'];
 }
开发者ID:regisg27,项目名称:Propel2,代码行数:14,代码来源:ClassMetadataInfo.php


注:本文中的AbstractPlatform::quoteIdentifier方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。