APIBoost A.P.I. documentation for PHPBoost CMS
  • Packages
    • Ajax
    • Builder
    • Content
    • Core
    • Default
    • Doctrine
    • Helper
    • IO
    • MVC
    • PHPBoost
    • Util
  • Interfaces
  • Classes
  • CacheData
  • CaptchaOptions
  • CommentsExtensionPoint
  • ConfigData
  • ContentFormattingExtensionPoint
  • Controller
  • CssFilesExtensionPoint
  • DAO
  • DataStore
  • DBConnection
  • DBMSFactory
  • DBMSUtils
  • ExtendedFieldExtensionPoint
  • ExtensionPoint
  • ExternalAuthentication
  • FeedProvider
  • FileReader
  • FileWriter
  • FormattingParser
  • FormButton
  • FormConstraint
  • FormElement
  • FormField
  • FormFieldConstraint
  • FormFieldEnumOption
  • FormFieldset
  • GraphicalEnvironment
  • HomePage
  • HomePageExtensionPoint
  • HTMLElement
  • HTMLTableFilter
  • InjectQueryResult
  • MailService
  • MemberExtendedFieldType
  • MenusExtensionPoint
  • ModuleSetup
  • ModuleTreeLinksExtensionPoint
  • PropertiesMapInterface
  • QueryResult
  • Response
  • ScheduledJobExtensionPoint
  • SearchableExtensionPoint
  • SelectQueryResult
  • SQLFragmentBuilder
  • SQLQuerier
  • SQLQueryTranslator
  • Template
  • TemplateData
  • TemplateLoader
  • TemplateParser
  • TemplateRenderer
  • TemplateSyntaxElement
  • UrlMapper
  • UrlMappingsExtensionPoint
  • View
  • AbstractAdminItemController
  • AbstractCategoriesFormController
  • AbstractCategoriesManagementController
  • AbstractCommentsBuildForm
  • AbstractCommentsController
  • AbstractConfigData
  • AbstractContentFormattingExtensionPoint
  • AbstractController
  • AbstractDeleteCategoryController
  • AbstractDisplayGraphicalEnvironment
  • AbstractFormButton
  • AbstractFormField
  • AbstractFormFieldChoice
  • AbstractFormFieldConstraint
  • AbstractFormFieldEnumOption
  • AbstractFormFieldset
  • AbstractGraphicalEnvironment
  • AbstractHTMLElement
  • AbstractHTMLTableFilter
  • AbstractItemController
  • AbstractMemberExtendedField
  • AbstractParser
  • AbstractPHPMailerMailService
  • AbstractPlatform
  • AbstractQueryResult
  • AbstractResponse
  • AbstractScheduledJobExtensionPoint
  • AbstractSearchableExtensionPoint
  • AbstractSelectQueryResult
  • AbstractSQLQuerier
  • AbstractTemplate
  • AbstractTemplateParser
  • AbstractTemplateSyntaxElement
  • AbstractUrlMapper
  • ActionAuthorization
  • AddCommentBuildForm
  • AdminController
  • AdminDisplayFrameGraphicalEnvironment
  • AdminDisplayFrameResponse
  • AdminDisplayGraphicalEnvironment
  • AdminDisplayResponse
  • AdministratorAlert
  • AdministratorAlertCache
  • AdministratorAlertService
  • AdminMenuDisplayResponse
  • AdminModuleController
  • AdminModuleLink
  • AdminNodisplayGraphicalEnvironment
  • AdminNodisplayResponse
  • AjaxCommentsDisplayController
  • AjaxCommentsNotationController
  • AjaxImagePreviewController
  • AjaxKeywordsAutoCompleteController
  • AjaxRequest
  • AjaxSearchUserAutoCompleteController
  • AjaxUrlValidationController
  • AjaxUserAutoCompleteController
  • APCDataStore
  • AppContext
  • Application
  • ArrayContentTemplateSyntaxElement
  • Arrays
  • ArrayTemplateSyntaxElement
  • ArrayType
  • ATOM
  • AuthenticationMethod
  • AuthenticationService
  • Authorizations
  • AuthorizationsSettings
  • AutoConnectData
  • BBCodeHighlighter
  • Bench
  • BigIntType
  • BooleanType
  • BreadCrumb
  • BrHTMLElement
  • BufferedFileReader
  • BufferedFileWriter
  • BusinessObject
  • CacheDataNotFoundException
  • CachedMenu
  • CachedStringTemplateLoader
  • CacheManager
  • CacheService
  • Captcha
  • CaptchaProvidersService
  • CaptchaService
  • CategoriesAuthorizationsService
  • CategoriesCache
  • CategoriesItemsParameters
  • CategoriesManager
  • CategoriesService
  • CategoriesUrlBuilder
  • Category
  • CategoryNotFoundException
  • ClassLoader
  • ColumnsDisabled
  • CommentsAuthorizations
  • CommentsCache
  • CommentsConfig
  • CommentsDAO
  • CommentsManager
  • CommentsProvidersService
  • CommentsService
  • CommentsTopic
  • CommentsTopicDAO
  • CommentsTopicEvents
  • CommentsTopics
  • CommentsUrlBuilder
  • ConditionTemplateSyntaxElement
  • ConfigManager
  • ConfigNotFoundException
  • ConstantTemplateSyntaxElement
  • ContentEditor
  • ContentFormattingConfig
  • ContentFormattingParser
  • ContentFormattingProvidersService
  • ContentFormattingService
  • ContentFormattingUnparser
  • ContentManagementConfig
  • ContentMenu
  • ContentSecondParser
  • ContentSharingActionsMenuLink
  • ContentSharingActionsMenuLinksExtensionPoint
  • ContentSharingActionsMenuService
  • Contribution
  • ContributionService
  • CookieBarConfig
  • Countries
  • CSSCacheConfig
  • CSSCacheManager
  • CSSFileOptimizer
  • CurrentUser
  • CustomizationConfig
  • CustomizeInterface
  • DataStoreException
  • DataStoreFactory
  • Date
  • DateTimeType
  • DateType
  • DBConnectionException
  • DBFactory
  • DBQuerier
  • Debug
  • DecimalType
  • DefaultAdminDisplayResponse
  • DefaultAjaxDeleteItemController
  • DefaultCategoriesCache
  • DefaultCategoriesFeedProvider
  • DefaultCategoriesFormController
  • DefaultCategoriesManagementController
  • DefaultCommentsTopic
  • DefaultConfigurationController
  • DefaultDeleteCategoryController
  • DefaultDeleteItemController
  • DefaultDisplayItemController
  • DefaultHomePage
  • DefaultHomePageDisplay
  • DefaultItemsManagementController
  • DefaultMailService
  • DefaultModuleConfig
  • DefaultModuleSetup
  • DefaultRichCategoriesCache
  • DefaultRichModuleConfig
  • DefaultScheduledJobsModule
  • DefaultSearchable
  • DefaultSeveralItemsController
  • DefaultSitemapCategoriesModule
  • DefaultSitemapModule
  • DefaultTemplateData
  • DefaultTemplateRenderer
  • DefaultTreeLinks
  • DeleteLinkHTMLElement
  • Dispatcher
  • DispatcherException
  • DispatcherUrlMapping
  • DispatchManager
  • DivHTMLElement
  • DoctrineException
  • EditCommentBuildForm
  • EditLinkHTMLElement
  • Environment
  • ErrorHandler
  • Event
  • ExceptionHandler
  • ExceptionUtils
  • ExpressionContentTemplateSyntaxElement
  • ExpressionTemplateSyntaxElement
  • ExtendedField
  • ExtendedFields
  • ExtendedFieldsCache
  • ExtendedFieldsDatabaseService
  • ExtendedFieldsService
  • ExtensionPointNotFoundException
  • ExtensionPointProvider
  • ExtensionPointProviderService
  • ExternalAuthenticationsExtensionPoint
  • Feed
  • FeedData
  • FeedItem
  • FeedItemEnclosure
  • FeedMenu
  • FeedsCat
  • FeedsCategoriesModule
  • FeedsList
  • File
  • FileSystemDataStore
  • FileSystemElement
  • FileSystemHelper
  • FileTemplate
  • FileTemplateLoader
  • FileTemplateLoadingException
  • FileTemplateRenderingException
  • FileType
  • FileUploadConfig
  • FileUploadService
  • Filter
  • FloatType
  • Folder
  • FormatingHelper
  • FormBuilderDisabledFieldException
  • FormBuilderException
  • FormButtonAjax
  • FormButtonAjaxCssImg
  • FormButtonButton
  • FormButtonButtonCssImg
  • FormButtonDefaultSubmit
  • FormButtonLink
  • FormButtonLinkCssImg
  • FormButtonReset
  • FormButtonSubmit
  • FormButtonSubmitCssImg
  • FormButtonSubmitImg
  • FormConstraintFieldsDifferenceInferior
  • FormConstraintFieldsDifferenceSuperior
  • FormConstraintFieldsEquality
  • FormConstraintFieldsInequality
  • FormConstraintFieldsNotIncluded
  • FormFieldActionLink
  • FormFieldActionLinkElement
  • FormFieldActionLinkList
  • FormFieldAjaxCompleter
  • FormFieldAjaxSearchUserAutoComplete
  • FormFieldAjaxUserAutoComplete
  • FormFieldAuthorizationsSetter
  • FormFieldBooleanInformation
  • FormFieldCaptcha
  • FormFieldCategoriesSelect
  • FormFieldCheckbox
  • FormFieldColorPicker
  • FormFieldConstraintAntiFlood
  • FormFieldConstraintDate
  • FormFieldConstraintDisplayNameExists
  • FormFieldConstraintFileExtension
  • FormFieldConstraintFileMaxSize
  • FormFieldConstraintForbiddenMailDomains
  • FormFieldConstraintIntegerMax
  • FormFieldConstraintIntegerMin
  • FormFieldConstraintIntegerRange
  • FormFieldConstraintLengthMax
  • FormFieldConstraintLengthMin
  • FormFieldConstraintLengthRange
  • FormFieldConstraintMailAddress
  • FormFieldConstraintMailExist
  • FormFieldConstraintMaxLinks
  • FormFieldConstraintNotEmpty
  • FormFieldConstraintPasswordStrength
  • FormFieldConstraintPHPBoostAuthLoginExists
  • FormFieldConstraintPictureFile
  • FormFieldConstraintRegex
  • FormFieldConstraintTel
  • FormFieldConstraintUrl
  • FormFieldConstraintUrlExists
  • FormFieldConstraintUserExist
  • FormFieldCSRFToken
  • FormFieldDate
  • FormFieldDateTime
  • FormFieldDecimalNumberEditor
  • FormFieldEditors
  • FormFieldFilePicker
  • FormFieldFree
  • FormFieldGroups
  • FormFieldHidden
  • FormFieldHTML
  • FormFieldLabel
  • FormFieldLangsSelect
  • FormFieldMailEditor
  • FormFieldMemberCaution
  • FormFieldMemberSanction
  • FormFieldMenuFieldset
  • FormFieldMultiLineTextEditor
  • FormFieldMultipleAutocompleter
  • FormFieldMultipleCheckbox
  • FormFieldMultipleCheckboxOption
  • FormFieldMultipleSelectChoice
  • FormFieldMultipleValuedCheckboxOption
  • FormFieldMultitabsLink
  • FormFieldMultitabsLinkElement
  • FormFieldMultitabsLinkList
  • FormFieldNumberEditor
  • FormFieldPasswordEditor
  • FormFieldPossibleValues
  • FormFieldRadioChoice
  • FormFieldRadioChoiceOption
  • FormFieldRangeEditor
  • FormFieldRanksSelect
  • FormFieldRichTextEditor
  • FormFieldSearch
  • FormFieldSelectChoiceGroupOption
  • FormFieldSelectChoiceOption
  • FormFieldSelectSources
  • FormFieldsetAccordionControls
  • FormFieldsetHidden
  • FormFieldsetHorizontal
  • FormFieldsetHTML
  • FormFieldsetHTMLHeading
  • FormFieldsetMultitabsHTML
  • FormFieldsetSubmit
  • FormFieldsetVertical
  • FormFieldShortMultiLineTextEditor
  • FormFieldSimpleSelectChoice
  • FormFieldSpacer
  • FormFieldSubTitle
  • FormFieldTelEditor
  • FormFieldTextEditor
  • FormFieldThemesSelect
  • FormFieldThumbnail
  • FormFieldTimezone
  • FormFieldUploadFile
  • FormFieldUploadPictureFile
  • FormFieldUrlEditor
  • FunctionCallTemplateSyntaxElement
  • FunctionTemplateSyntaxElement
  • GeneralConfig
  • GraphicalEnvironmentConfig
  • GroupsCache
  • GroupsService
  • HtaccessFileCache
  • HTMLForm
  • HTMLTable
  • HTMLTableAjaxUserAutoCompleteFilter
  • HTMLTableAjaxUserAutoCompleteSQLFilter
  • HTMLTableBeginsWithTextSQLFilter
  • HTMLTableCheckboxFilter
  • HTMLTableColumn
  • HTMLTableDateComparatorSQLFilter
  • HTMLTableDateGreaterThanOrEqualsToSQLFilter
  • HTMLTableDateLessThanOrEqualsToSQLFilter
  • HTMLTableDateTimeGreaterThanOrEqualsToSQLFilter
  • HTMLTableDateTimeLessThanOrEqualsToSQLFilter
  • HTMLTableEndsWithTextSQLFilter
  • HTMLTableEqualsFromListFilter
  • HTMLTableEqualsFromListSQLFilter
  • HTMLTableEqualsToSQLFilter
  • HTMLTableEscapedLikeTextSQLFilter
  • HTMLTableGreaterThanOrEqualsToSQLFilter
  • HTMLTableGreaterThanSQLFilter
  • HTMLTableLessThanOrEqualsToSQLFilter
  • HTMLTableLessThanSQLFilter
  • HTMLTableLikeFromListSQLFilter
  • HTMLTableLikeTextSQLFilter
  • HTMLTableModel
  • HTMLTableNumberComparatorSQLFilter
  • HTMLTableParameters
  • HTMLTableRow
  • HTMLTableRowCell
  • HTMLTableSortingRule
  • HTMLTableTextFilter
  • HTMLTableUnapprovedSQLFilter
  • HTTPCookie
  • HTTPFatalExceptionPrinter
  • HTTPRequestCustom
  • HTTPResponseCustom
  • I18NMessages
  • IdcardService
  • IllegalArgumentException
  • Image
  • ImageResizer
  • ImgHTMLElement
  • IncludeTemplateSyntaxElement
  • IntegerType
  • IntegratedErrorHandler
  • InvalidTemplateFunctionCallException
  • IOException
  • Item
  • ItemsAuthorizationsService
  • ItemsManager
  • ItemsModuleExtensionPointProvider
  • ItemsService
  • ItemsUrlBuilder
  • JoinMappingModel
  • JSONResponse
  • KeyGenerator
  • Keyword
  • KeywordsCache
  • KeywordsManager
  • KeywordsService
  • Lang
  • LangConfiguration
  • LangConfigurationManager
  • LangLoader
  • LangNotFoundException
  • LangsConfig
  • LangsManager
  • LangVarTemplateSyntaxElement
  • LastUseDateConfig
  • LinkHTMLElement
  • LinksMenu
  • LinksMenuElement
  • LinksMenuLink
  • LoopTemplateSyntaxElement
  • LoopVarTemplateSyntaxElement
  • Mail
  • MailServiceConfig
  • MailToPHPMailerConverter
  • MailUtil
  • MaintenanceConfig
  • MalformedUrlMapperRegexException
  • MappingModel
  • MappingModelField
  • MemberDateExtendedField
  • MemberDisabledActionAuthorization
  • MemberExtendedField
  • MemberExtendedFieldErrorsMessageException
  • MemberExtendedFieldsService
  • MemberHalfLongTextExtendedField
  • MemberHiddenExtendedField
  • MemberLongTextExtendedField
  • MemberMultipleChoiceExtendedField
  • MemberMultipleSelectExtendedField
  • MemberSanctionManager
  • MemberShortTextExtendedField
  • MemberSimpleChoiceExtendedField
  • MemberSimpleSelectExtendedField
  • MemberUserAvatarExtendedField
  • MemberUserBornExtendedField
  • MemberUserPMToMailExtendedField
  • MemberUserSexExtendedField
  • Menu
  • MenusCache
  • MenuService
  • MenusProvidersService
  • MenuStringFilter
  • MessageHelper
  • MiniCalendar
  • Module
  • ModuleConfiguration
  • ModuleConfigurationManager
  • ModuleController
  • ModuleCssFiles
  • ModuleDispatchManager
  • ModuleExtensionPointProvider
  • ModuleLink
  • ModuleMenus
  • ModuleMiniMenu
  • ModulePagination
  • ModulesConfig
  • ModulesCssFilesService
  • ModulesManager
  • ModulesUrlBuilder
  • ModuleTreeLinks
  • ModuleTreeLinksService
  • MySQLDBConnection
  • MySQLDBConnectionException
  • MySQLDBFactory
  • MySQLDBMSUtils
  • MySQLInjectQueryResult
  • MySqlPlatform
  • MySQLQuerier
  • MySQLQuerierException
  • MySQLQueryTranslator
  • MySQLSelectQueryResult
  • MySQLUnexistingDatabaseException
  • NginxFileCache
  • NoSuchControllerException
  • NotASingleRowFoundException
  • Notation
  • NotationService
  • Notification
  • NotYetImplementedException
  • NoUrlMatchException
  • NumberHelper
  • ObjectNotFoundException
  • ObjectType
  • Pagination
  • ParametersTemplateSyntaxElement
  • ParameterTypeMismatchException
  • Path
  • PDODBConnection
  • PDODBConnectionException
  • PDOInjectQueryResult
  • PDOMySQLDBFactory
  • PDOQuerier
  • PDOQuerierException
  • PDOSelectQueryResult
  • PersistenceContext
  • PHPBoostAuthenticationMethod
  • PHPBoostErrors
  • PHPBoostFoldersPermissions
  • PHPBoostIndexController
  • PHPBoostNotInstalledException
  • PHPTemplateSyntaxElement
  • PlainCodeHighlighter
  • PostgreSqlPlatform
  • PrivateMsg
  • PropertyNotFoundException
  • RAMDataStore
  • RawExceptionHandler
  • RegexHelper
  • RemainingStringVarException
  • Repository
  • RichCategory
  • RichItem
  • RichRootCategory
  • Robots
  • RolesAuthorizations
  • RootCategory
  • RowNotFoundException
  • RSS
  • SearchCategoryChildrensOptions
  • SearchResult
  • SecurityConfig
  • SelectQueryResultMapper
  • SEOMetaData
  • ServerConfiguration
  • ServerEnvironmentConfig
  • Session
  • SessionData
  • SessionNotFoundException
  • SessionsConfig
  • SimpleVarTemplateSyntaxElement
  • SiteDisplayFrameGraphicalEnvironment
  • SiteDisplayFrameResponse
  • SiteDisplayGraphicalEnvironment
  • SiteDisplayResponse
  • SitemapCategoriesModule
  • SiteNodisplayGraphicalEnvironment
  • SiteNodisplayResponse
  • SmallIntType
  • SmileysCache
  • SMTPConfiguration
  • SMTPMailService
  • SpanHTMLElement
  • SQLDAO
  • SQLFragment
  • SQLHTMLTableModel
  • SqlitePlatform
  • SQLQuerierException
  • SQLQueryVars
  • StatsCache
  • StringInputStream
  • StringOutputStream
  • StringTemplate
  • StringTemplateLoader
  • StringType
  • StringVars
  • TemplateFunctions
  • TemplateHighlighter
  • TemplateLoadingException
  • TemplateRenderingException
  • TemplateSyntaxParser
  • TemplateSyntaxParserContext
  • TextHelper
  • TextTemplateSyntaxElement
  • TextType
  • Theme
  • ThemeConfiguration
  • ThemeConfigurationManager
  • ThemesConfig
  • ThemesManager
  • TimeType
  • Timezone
  • Type
  • UnexistingDatabaseException
  • UnexistingExtensionPointProviderException
  • UnexistingHTTPParameterException
  • UnreadContributionsCache
  • UnsupportedOperationException
  • Updates
  • Upload
  • UploadedFile
  • UploadedFileTooLargeException
  • Uploads
  • Url
  • UrlControllerMapper
  • UrlMapping
  • UrlMappings
  • UrlRedirectMapper
  • UrlSerializedParameter
  • UrlSerializedParameterEncoder
  • UrlSerializedParameterParser
  • User
  • UserAccountsConfig
  • UserService
  • ValidationResult
  • VariableExpressionTemplateSyntaxElement
  • VariableTemplateSyntaxElement
  • VisitorDisabledActionAuthorization
  • WizardActionLinkList
  • WizardFormFieldsetSubmit
  • WizardHTMLForm
  • WritingPadConfig
Methods
  • __construct()
  • getIdentifierQuoteCharacter()
  • getSqlCommentStartString()
  • getSqlCommentEndString()
  • getVarcharMaxLength()
  • getWildcards()
  • getRegexpExpression()
  • getAvgExpression()
  • getCountExpression()
  • getMaxExpression()
  • getMinExpression()
  • getSumExpression()
  • getMd5Expression()
  • getLengthExpression()
  • getRoundExpression()
  • getModExpression()
  • getTrimExpression()
  • getRtrimExpression()
  • getLtrimExpression()
  • getUpperExpression()
  • getLowerExpression()
  • getLocateExpression()
  • getNowExpression()
  • getSubstringExpression()
  • getConcatExpression()
  • getNotExpression()
  • getInExpression()
  • getIsNullExpression()
  • getIsNotNullExpression()
  • getBetweenExpression()
  • getAcosExpression()
  • getSinExpression()
  • getPiExpression()
  • getCosExpression()
  • getForUpdateSql()
  • getDropDatabaseSql()
  • getDropTableSql()
  • getDropIndexSql()
  • getDropConstraintSql()
  • getDropForeignKeySql()
  • getCreateTableSql()
  • getCreateTemporaryTableSnippetSql()
  • getCreateSequenceSql()
  • getCreateConstraintSql()
  • getCreateIndexSql()
  • quoteIdentifier()
  • getCreateForeignKeySql()
  • getAlterTableSql()
  • getColumnDeclarationListSql()
  • getColumnDeclarationSql()
  • getDecimalTypeDeclarationSql()
  • getFloatTypeDeclarationSql()
  • getBooleanTypeDeclarationSql()
  • getIntegerTypeDeclarationSql()
  • getBigIntTypeDeclarationSql()
  • getSmallIntTypeDeclarationSql()
  • getDefaultValueDeclarationSql()
  • getCheckDeclarationSql()
  • getIndexDeclarationSql()
  • getIndexFieldDeclarationListSql()
  • getTemporaryTableSql()
  • getShowDatabasesSql()
  • getForeignKeyDeclarationSql()
  • getAdvancedForeignKeyOptionsSql()
  • getForeignKeyReferentialActionSql()
  • getForeignKeyBaseDeclarationSql()
  • getUniqueFieldDeclarationSql()
  • getColumnCharsetDeclarationSql()
  • getColumnCollationDeclarationSql()
  • getMatchPatternExpression()
  • prefersSequences()
  • prefersIdentityColumns()
  • writeLimitClause()
  • convertBooleans()
  • getSetCharsetSql()
  • getCurrentDateSql()
  • getCurrentTimeSql()
  • getCurrentTimestampSql()
  • getListDatabasesSql()
  • getListFunctionsSql()
  • getListTriggersSql()
  • getListSequencesSql()
  • getListTableConstraintsSql()
  • getListTableColumnsSql()
  • getListTablesSql()
  • getListUsersSql()
  • getListViewsSql()
  • getListTableIndexesSql()
  • getListTableForeignKeysSql()
  • getCreateViewSql()
  • getDropViewSql()
  • getDropSequenceSql()
  • getSequenceNextValSql()
  • getCreateDatabaseSql()
  • getSetTransactionIsolationSql()
  • getCharsetFieldDeclaration()
  • getDateTimeTypeDeclarationSql()
  • getDateTypeDeclarationSql()
  • getDefaultTransactionIsolationLevel()
  • supportsSequences()
  • supportsIdentityColumns()
  • supportsIndexes()
  • supportsTransactions()
  • supportsSavepoints()
  • supportsPrimaryConstraints()
  • supportsForeignKeyConstraints()
  • supportsSchemas()
  • supportsGettingAffectedRows()
  • getIdentityColumnNullInsertSql()
  • getDateTimeFormatString()
  • getDateFormatString()
  • getTimeFormatString()
  • modifyLimitQuery()
  • getVarcharTypeDeclarationSql()
  • getClobTypeDeclarationSql()
  • getName()
  • getSqlResultCasing()
  • fixSchemaElementName()
  • getEmptyIdentityInsertSql()
  • getAgeExpression()
  • getDatePartExpression()
  • getToCharExpression()
  • getRandomExpression()
  • _getCommonIntegerTypeDeclarationSql()
  • _getTransactionIsolationLevelSql()
  • No private methods found
Properties
  • No public properties found
  • No protected properties found
  • No private properties found
Constants
  • No constants found
  1. APIBoost
  2. \Doctrine\DBAL\Plateform
  3. PostgreSqlPlatform

Class PostgreSqlPlatform

Summary

  • File
  • Package hierarchy DBAL\Plateform
  • Class hierarchy \AbstractPlatform \PostgreSqlPlatform
  • See also https://www.doctrine-project.org
  • package

    Doctrine

  • subpackage

    DBAL\Plateform

  • license

    https://www.gnu.org/licenses/lgpl-2.1.fr.html LGPL 2.1

  • link

    https://www.doctrine-project.org

  • author

    Roman BORSCHEL roman@code-factory.org

  • author

    Lukas Smith smith@pooteeweet.org (PEAR MDB2 library)

  • version

    PHPBoost 6.0 - last update: 2016 10 28

  • since

    PHPBoost 4.0 - 2013 01 01

  • contributor

    Julien BRISWALTER j1.seth@phpboost.com

PostgreSqlPlatform.

They are a passive source of information.

Methods

__construct()

__construct() 

Constructor.

Creates a new PostgreSqlPlatform.

  • Inherited from \PostgreSqlPlatform
Tags
None found

getIdentifierQuoteCharacter()

getIdentifierQuoteCharacter() : string

Gets the character used for identifier quoting.

Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getSqlCommentStartString()

getSqlCommentStartString() : string

Gets the string portion that starts an SQL comment.

Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getSqlCommentEndString()

getSqlCommentEndString() : string

Gets the string portion that ends an SQL comment.

Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getVarcharMaxLength()

getVarcharMaxLength() : integer

Gets the maximum length of a varchar field.

Returns
integer
  • Inherited from \AbstractPlatform
Tags
None found

getWildcards()

getWildcards() : array

Gets all SQL wildcard characters of the platform.

Returns
array
  • Inherited from \AbstractPlatform
Tags
None found

getRegexpExpression()

getRegexpExpression() : string

regexp

Returns
string —

the regular expression operator

  • Inherited from \PostgreSqlPlatform
Tags
override

getAvgExpression()

getAvgExpression(string $column) : string

Returns the average value of a column

Parameters
string $column

the column to use

Returns
string —

generated sql including an AVG aggregate function

  • Inherited from \AbstractPlatform
Tags
None found

getCountExpression()

getCountExpression(string|integer $column) : string

Returns the number of rows (without a NULL value) of a column

If a '*' is used instead of a column the number of selected rows is returned.

Parameters
string|integer $column

the column to use

Returns
string —

generated sql including a COUNT aggregate function

  • Inherited from \AbstractPlatform
Tags
None found

getMaxExpression()

getMaxExpression(string $column) : string

Returns the highest value of a column

Parameters
string $column

the column to use

Returns
string —

generated sql including a MAX aggregate function

  • Inherited from \AbstractPlatform
Tags
None found

getMinExpression()

getMinExpression(string $column) : string

Returns the lowest value of a column

Parameters
string $column

the column to use

Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getSumExpression()

getSumExpression(string $column) : string

Returns the total sum of a column

Parameters
string $column

the column to use

Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getMd5Expression()

getMd5Expression( $column) : string

Returns the md5 sum of a field.

Note: Not SQL92, but common functionality

md5() works with the default PostgreSQL 8 versions.

If you are using PostgreSQL 7.x or older you need to make sure that the digest procedure is installed. If you use RPMS (Redhat and Mandrake) install the postgresql-contrib package. You must then install the procedure by running this shell command: psql [dbname] < /usr/share/pgsql/contrib/pgcrypto.sql You should make sure you run this as the postgres user.

Parameters
$column
Returns
string
  • Inherited from \PostgreSqlPlatform
Tags
override

getLengthExpression()

getLengthExpression( $column) : string

Returns the length of a text field.

Parameters
$column
Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getRoundExpression()

getRoundExpression( $column,  $decimals) : string

Rounds a numeric field to the number of decimals specified.

Parameters
$column
$decimals
Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getModExpression()

getModExpression(string $expression1, string $expression2) : string

Returns the remainder of the division operation $expression1 / $expression2.

Parameters
string $expression1
string $expression2
Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getTrimExpression()

getTrimExpression(string $str) : string

trim returns the string $str with leading and proceeding space characters removed

Parameters
string $str

literal string or column name

Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getRtrimExpression()

getRtrimExpression(string $str) : string

rtrim returns the string $str with proceeding space characters removed

Parameters
string $str

literal string or column name

Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getLtrimExpression()

getLtrimExpression(string $str) : string

ltrim returns the string $str with leading space characters removed

Parameters
string $str

literal string or column name

Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getUpperExpression()

getUpperExpression(string $str) : string

upper Returns the string $str with all characters changed to uppercase according to the current character set mapping.

Parameters
string $str

literal string or column name

Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getLowerExpression()

getLowerExpression(string $str) : string

lower Returns the string $str with all characters changed to lowercase according to the current character set mapping.

Parameters
string $str

literal string or column name

Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getLocateExpression()

getLocateExpression(string $str, string $substr) : integer

locate returns the position of the first occurrence of substring $substr in string $str

Parameters
string $str

literal string

string $substr

literal string to find

Returns
integer
  • Inherited from \AbstractPlatform
Tags
None found

getNowExpression()

getNowExpression() : string

Returns the SQL string to return the current system date and time.

Returns
string
  • Inherited from \PostgreSqlPlatform
Tags
None found

getSubstringExpression()

getSubstringExpression(string $value, integer $from, integer $len = null) : string

Returns part of a string.

Note: Not SQL92, but common functionality.

Parameters
string $value

the target $value the string or the string column.

integer $from

extract from this characeter.

integer $len

extract this amount of characters.

Returns
string —

sql that extracts part of a string.

  • Inherited from \PostgreSqlPlatform
Tags
override

getConcatExpression()

getConcatExpression() : string

Returns a series of strings concatinated

concat() accepts an arbitrary number of parameters. Each parameter must contain an expression

Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getNotExpression()

getNotExpression( $expression) : string

Returns the SQL for a logical not.

Example: $q = new Doctrine_Query(); $e = $q->expr; $q->select('*')->from('table') ->where($e->eq('id', $e->not('null'));

Parameters
$expression
Returns
string —

a logical expression

  • Inherited from \AbstractPlatform
Tags
None found

getInExpression()

getInExpression(string $column,  $values) : string

Returns the SQL to check if a value is one in a set of given values.

in() accepts an arbitrary number of parameters. The first parameter must always specify the value that should be matched against. Successive must contain a logical expression or an array with logical expressions. These expressions will be matched against the first parameter.

Parameters
string $column

the value that should be matched against

$values
Returns
string —

logical expression

  • Inherited from \AbstractPlatform
Tags
None found

getIsNullExpression()

getIsNullExpression(string $expression) : string

Returns SQL that checks if a expression is null.

Parameters
string $expression

the expression that should be compared to null

Returns
string —

logical expression

  • Inherited from \AbstractPlatform
Tags
None found

getIsNotNullExpression()

getIsNotNullExpression(string $expression) : string

Returns SQL that checks if a expression is not null.

Parameters
string $expression

the expression that should be compared to null

Returns
string —

logical expression

  • Inherited from \AbstractPlatform
Tags
None found

getBetweenExpression()

getBetweenExpression(string $expression, string $value1, string $value2) : string

Returns SQL that checks if an expression evaluates to a value between two values.

The parameter $expression is checked if it is between $value1 and $value2.

Note: There is a slight difference in the way BETWEEN works on some databases. http://www.w3schools.com/sql/sql_between.asp. If you want complete database independence you should avoid using between().

Parameters
string $expression

the value to compare to

string $value1

the lower value to compare with

string $value2

the higher value to compare with

Returns
string —

logical expression

  • Inherited from \AbstractPlatform
Tags
None found

getAcosExpression()

getAcosExpression( $value) 

Parameters
$value
  • Inherited from \AbstractPlatform
Tags
None found

getSinExpression()

getSinExpression( $value) 

Parameters
$value
  • Inherited from \AbstractPlatform
Tags
None found

getPiExpression()

getPiExpression() 

  • Inherited from \AbstractPlatform
Tags
None found

getCosExpression()

getCosExpression( $value) 

Parameters
$value
  • Inherited from \AbstractPlatform
Tags
None found

getForUpdateSql()

getForUpdateSql() 

  • Inherited from \AbstractPlatform
Tags
None found

getDropDatabaseSql()

getDropDatabaseSql(string $name) 

drop an existing database

Parameters
string $name

name of the database that should be dropped

Throws
\PDOException
  • Inherited from \PostgreSqlPlatform
Tags
None found

getDropTableSql()

getDropTableSql( $table) 

Parameters
$table
  • Inherited from \AbstractPlatform
Tags
None found

getDropIndexSql()

getDropIndexSql( $table,  $name) 

Parameters
$table
$name
  • Inherited from \AbstractPlatform
Tags
None found

getDropConstraintSql()

getDropConstraintSql( $table,  $name,  $primary = false) 

Parameters
$table
$name
$primary
  • Inherited from \AbstractPlatform
Tags
None found

getDropForeignKeySql()

getDropForeignKeySql( $table,  $name) 

Parameters
$table
$name
  • Inherited from \AbstractPlatform
Tags
None found

getCreateTableSql()

getCreateTableSql(\unknown_type $name, array $fields, array $options = array()) : \unknown

Gets the SQL used to create a table.

Parameters
\unknown_type $name
array $fields
array $options

The table constraints.

Returns
\unknown
  • Inherited from \PostgreSqlPlatform
Tags
None found

getCreateTemporaryTableSnippetSql()

getCreateTemporaryTableSnippetSql() 

  • Inherited from \AbstractPlatform
Tags
None found

getCreateSequenceSql()

getCreateSequenceSql(string $sequenceName, integer $start = 1, integer $allocationSize = 1) : string

Gets the SQL to create a sequence on this platform.

Parameters
string $sequenceName
integer $start
integer $allocationSize
Returns
string
  • Inherited from \PostgreSqlPlatform
Tags
override

getCreateConstraintSql()

getCreateConstraintSql(string $table, string $name, array $definition) : string

Gets the SQL to create a constraint on a table on this platform.

Parameters
string $table

name of the table on which the constraint is to be created

string $name

name of the constraint to be created

array $definition

associative array that defines properties of the constraint to be created. Currently, only one property named FIELDS is supported. This property is also an associative with the names of the constraint fields as array constraints. Each entry of this array is set to another type of associative array that specifies properties of the constraint that are specific to each field.

                            Example
                               array(
                                   'fields' => array(
                                       'user_name' => array(),
                                       'last_login' => array()
                                   )
                               )
Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getCreateIndexSql()

getCreateIndexSql(string $table, string $name, array $definition) : string

Gets the SQL to create an index on a table on this platform.

Parameters
string $table

name of the table on which the index is to be created

string $name

name of the index to be created

array $definition

associative array that defines properties of the index to be created.

Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

quoteIdentifier()

quoteIdentifier(string $str) : string

Quotes a string so that it can be safely used as a table or column name, even if it is a reserved word of the platform.

NOTE: Just because you CAN use quoted identifiers doesn't mean you SHOULD use them. In general, they end up causing way more problems than they solve.

Parameters
string $str

identifier name to be quoted

Returns
string —

quoted identifier string

  • Inherited from \AbstractPlatform
Tags
None found

getCreateForeignKeySql()

getCreateForeignKeySql(string $table, array $definition) : string

createForeignKeySql

Parameters
string $table

name of the table on which the foreign key is to be created

array $definition

associative array that defines properties of the foreign key to be created.

Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getAlterTableSql()

getAlterTableSql(string $name, array $changes, boolean $check = false) : array

generates the sql for altering an existing table on postgresql

(this method is implemented by the drivers)

Parameters
string $name

name of the table that is intended to be changed.

array $changes

associative array that contains the details of each type *

boolean $check

indicates whether the function should just check if the DBMS driver can perform the requested table alterations if the value is true or actually perform them otherwise.

Returns
array
  • Inherited from \PostgreSqlPlatform
  • See also \Doctrine_Export::alterTable()
Tags
override

getColumnDeclarationListSql()

getColumnDeclarationListSql(array $fields) : string

Get declaration of a number of fields in bulk

Parameters
array $fields

a multidimensional associative array. The first dimension determines the field name, while the second dimension is keyed with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

 length
     Integer value that determines the maximum length of the text
     field. If this argument is missing the field should be
     declared to have the longest length allowed by the DBMS.

 default
     Text value to be used as default for this field.

 notnull
     Boolean flag that indicates whether this field is constrained
     to not be set to null.
 charset
     Text value with the default CHARACTER SET for this field.
 collation
     Text value with the default COLLATION for this field.
 unique
     unique constraint
Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getColumnDeclarationSql()

getColumnDeclarationSql(string $name, array $field) : string

Obtain DBMS specific SQL code portion needed to declare a generic type field to be used in statements like CREATE TABLE.

Parameters
string $name

name the field to be declared.

array $field

associative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

 length
     Integer value that determines the maximum length of the text
     field. If this argument is missing the field should be
     declared to have the longest length allowed by the DBMS.

 default
     Text value to be used as default for this field.

 notnull
     Boolean flag that indicates whether this field is constrained
     to not be set to null.
 charset
     Text value with the default CHARACTER SET for this field.
 collation
     Text value with the default COLLATION for this field.
 unique
     unique constraint
 check
     column check constraint
Returns
string —

DBMS specific SQL code portion that should be used to declare the column.

  • Inherited from \AbstractPlatform
Tags
None found

getDecimalTypeDeclarationSql()

getDecimalTypeDeclarationSql(array $columnDef) : string

Gets the SQL snippet that declares a floating point column of arbitrary precision.

Parameters
array $columnDef
Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getFloatTypeDeclarationSql()

getFloatTypeDeclarationSql(array $fieldDeclaration) 

Parameters
array $fieldDeclaration
  • Inherited from \AbstractPlatform
Tags
None found

getBooleanTypeDeclarationSql()

getBooleanTypeDeclarationSql(array $field) : string

Gets the SQL snippet that declares a boolean column.

Parameters
array $field
Returns
string
  • Inherited from \PostgreSqlPlatform
Tags
override

getIntegerTypeDeclarationSql()

getIntegerTypeDeclarationSql(array $field) : string

Gets the SQL snippet that declares a 4 byte integer column.

Parameters
array $field
Returns
string
  • Inherited from \PostgreSqlPlatform
Tags
override

getBigIntTypeDeclarationSql()

getBigIntTypeDeclarationSql(array $field) : string

Gets the SQL snippet that declares an 8 byte integer column.

Parameters
array $field
Returns
string
  • Inherited from \PostgreSqlPlatform
Tags
override

getSmallIntTypeDeclarationSql()

getSmallIntTypeDeclarationSql(array $field) : string

Gets the SQL snippet that declares a 2 byte integer column.

Parameters
array $field
Returns
string
  • Inherited from \PostgreSqlPlatform
Tags
override

getDefaultValueDeclarationSql()

getDefaultValueDeclarationSql(array $field) : string

Obtain DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE.

Parameters
array $field

field definition array

Returns
string —

DBMS specific SQL code portion needed to set a default value

  • Inherited from \PostgreSqlPlatform
Tags
override

getCheckDeclarationSql()

getCheckDeclarationSql(array $definition) : string

Obtain DBMS specific SQL code portion needed to set a CHECK constraint declaration to be used in statements like CREATE TABLE.

Parameters
array $definition

check definition

Returns
string —

DBMS specific SQL code portion needed to set a CHECK constraint

  • Inherited from \AbstractPlatform
Tags
None found

getIndexDeclarationSql()

getIndexDeclarationSql(string $name, array $definition) : string

Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.

Parameters
string $name

name of the index

array $definition

index definition

Returns
string —

DBMS specific SQL code portion needed to set an index

  • Inherited from \AbstractPlatform
Tags
None found

getIndexFieldDeclarationListSql()

getIndexFieldDeclarationListSql(array $fields) : string

getIndexFieldDeclarationList Obtain DBMS specific SQL code portion needed to set an index declaration to be used in statements like CREATE TABLE.

Parameters
array $fields
Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getTemporaryTableSql()

getTemporaryTableSql() : string

A method to return the required SQL string that fits between CREATE .

.. TABLE to create the table as a temporary table.

Should be overridden in driver classes to return the correct string for the specific database type.

The default is to return the string "TEMPORARY" - this will result in a SQL error for any database that does not support temporary tables, or that requires a different SQL command from "CREATE TEMPORARY TABLE".

Returns
string —

The string required to be placed between "CREATE" and "TABLE" to generate a temporary table, if possible.

  • Inherited from \AbstractPlatform
Tags
None found

getShowDatabasesSql()

getShowDatabasesSql() : \unknown

Get sql query to show a list of database

Returns
\unknown
  • Inherited from \AbstractPlatform
Tags
None found

getForeignKeyDeclarationSql()

getForeignKeyDeclarationSql(array $definition) : string

getForeignKeyDeclaration Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE.

Parameters
array $definition

an associative array with the following structure: name optional constraint name

     local                   the local field(s)

     foreign                 the foreign reference field(s)

     foreignTable            the name of the foreign table

     onDelete                referential delete action

     onUpdate                referential update action

     deferred                deferred constraint checking

The onDelete and onUpdate keys accept the following values:

CASCADE: Delete or update the row from the parent table and automatically delete or update the matching rows in the child table. Both ON DELETE CASCADE and ON UPDATE CASCADE are supported. Between two tables, you should not define several ON UPDATE CASCADE clauses that act on the same column in the parent table or in the child table.

SET NULL: Delete or update the row from the parent table and set the foreign key column or columns in the child table to NULL. This is valid only if the foreign key columns do not have the NOT NULL qualifier specified. Both ON DELETE SET NULL and ON UPDATE SET NULL clauses are supported.

NO ACTION: In standard SQL, NO ACTION means no action in the sense that an attempt to delete or update a primary key value is not allowed to proceed if there is a related foreign key value in the referenced table.

RESTRICT: Rejects the delete or update operation for the parent table. NO ACTION and RESTRICT are the same as omitting the ON DELETE or ON UPDATE clause.

SET DEFAULT

Returns
string —

DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration.

  • Inherited from \AbstractPlatform
Tags
None found

getAdvancedForeignKeyOptionsSql()

getAdvancedForeignKeyOptionsSql(array $definition) : string

getAdvancedForeignKeyOptions Return the FOREIGN KEY query section dealing with non-standard options as MATCH, INITIALLY DEFERRED, ON UPDATE, .

..

Parameters
array $definition

foreign key definition

Returns
string
  • Inherited from \PostgreSqlPlatform
Tags
override

getForeignKeyReferentialActionSql()

getForeignKeyReferentialActionSql(string $action) 

returns given referential action in uppercase if valid, otherwise throws an exception

Parameters
string $action

foreign key referential action

Throws
\Doctrine_Exception_Exception

if unknown referential action given

  • Inherited from \AbstractPlatform
Tags
None found

getForeignKeyBaseDeclarationSql()

getForeignKeyBaseDeclarationSql(array $definition) : string

Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE.

Parameters
array $definition
Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getUniqueFieldDeclarationSql()

getUniqueFieldDeclarationSql() : string

Obtain DBMS specific SQL code portion needed to set the UNIQUE constraint of a field declaration to be used in statements like CREATE TABLE.

Returns
string —

DBMS specific SQL code portion needed to set the UNIQUE constraint of a field declaration.

  • Inherited from \AbstractPlatform
Tags
None found

getColumnCharsetDeclarationSql()

getColumnCharsetDeclarationSql(string $charset) : string

Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE.

Parameters
string $charset

name of the charset

Returns
string —

DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration.

  • Inherited from \AbstractPlatform
Tags
None found

getColumnCollationDeclarationSql()

getColumnCollationDeclarationSql(string $collation) : string

Obtain DBMS specific SQL code portion needed to set the COLLATION of a field declaration to be used in statements like CREATE TABLE.

Parameters
string $collation

name of the collation

Returns
string —

DBMS specific SQL code portion needed to set the COLLATION of a field declaration.

  • Inherited from \AbstractPlatform
Tags
None found

getMatchPatternExpression()

getMatchPatternExpression(array $pattern, string $operator = null, string $field = null) : string

build a pattern matching string

EXPERIMENTAL

WARNING: this function is experimental and may change signature at any time until labelled as non-experimental

Parameters
array $pattern

even keys are strings, odd are patterns (% and _)

string $operator

optional pattern operator (LIKE, ILIKE and maybe others in the future)

string $field

optional field name that is being matched against (might be required when emulating ILIKE)

Returns
string —

SQL pattern

  • Inherited from \PostgreSqlPlatform
Tags
override

prefersSequences()

prefersSequences() : boolean

Whether the platform prefers sequences for ID generation.

Subclasses should override this method to return TRUE if they prefer sequences.

Returns
boolean
  • Inherited from \PostgreSqlPlatform
Tags
None found

prefersIdentityColumns()

prefersIdentityColumns() : boolean

Whether the platform prefers identity columns (eg. autoincrement) for ID generation.

Subclasses should override this method to return TRUE if they prefer identity columns.

Returns
boolean
  • Inherited from \AbstractPlatform
Tags
None found

writeLimitClause()

writeLimitClause(string $query, mixed $limit = false, mixed $offset = false) 

Adds a LIMIT/OFFSET clause to the query.

This default implementation writes the syntax "LIMIT x OFFSET y" to the query which is supported by MySql, PostgreSql and Sqlite. Any database platforms that do not support this syntax should override this implementation and provide their own.

Parameters
string $query

The SQL string to write to / append to.

mixed $limit
mixed $offset
  • Inherited from \AbstractPlatform
Tags
None found

convertBooleans()

convertBooleans(array $item) 

Postgres wants boolean values converted to the strings 'true'/'false'.

Default conversion defined here converts to integers.

Parameters
array $item
  • Inherited from \PostgreSqlPlatform
Tags
override

getSetCharsetSql()

getSetCharsetSql(string $charset) : string

Gets the SQL statement specific for the platform to set the charset.

Parameters
string $charset
Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getCurrentDateSql()

getCurrentDateSql() : string

Gets the SQL specific for the platform to get the current date.

Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getCurrentTimeSql()

getCurrentTimeSql() : string

Gets the SQL specific for the platform to get the current time.

Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getCurrentTimestampSql()

getCurrentTimestampSql() : string

Gets the SQL specific for the platform to get the current timestamp

Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getListDatabasesSql()

getListDatabasesSql() 

  • Inherited from \PostgreSqlPlatform
Tags
None found

getListFunctionsSql()

getListFunctionsSql() 

  • Inherited from \PostgreSqlPlatform
Tags
None found

getListTriggersSql()

getListTriggersSql( $table = null) 

Parameters
$table
  • Inherited from \PostgreSqlPlatform
Tags
None found

getListSequencesSql()

getListSequencesSql( $database) 

Parameters
$database
  • Inherited from \PostgreSqlPlatform
Tags
None found

getListTableConstraintsSql()

getListTableConstraintsSql( $table) 

Parameters
$table
  • Inherited from \PostgreSqlPlatform
Tags
None found

getListTableColumnsSql()

getListTableColumnsSql( $table) 

Parameters
$table
  • Inherited from \PostgreSqlPlatform
Tags
None found

getListTablesSql()

getListTablesSql() 

  • Inherited from \PostgreSqlPlatform
Tags
None found

getListUsersSql()

getListUsersSql() 

  • Inherited from \PostgreSqlPlatform
Tags
None found

getListViewsSql()

getListViewsSql() 

  • Inherited from \PostgreSqlPlatform
Tags
None found

getListTableIndexesSql()

getListTableIndexesSql( $table) 

Parameters
$table
  • Inherited from \PostgreSqlPlatform
Tags
None found

getListTableForeignKeysSql()

getListTableForeignKeysSql( $table,  $database = null) 

Parameters
$table
$database
  • Inherited from \PostgreSqlPlatform
Tags
None found

getCreateViewSql()

getCreateViewSql( $name,  $sql) 

Parameters
$name
$sql
  • Inherited from \PostgreSqlPlatform
Tags
None found

getDropViewSql()

getDropViewSql( $name) 

Parameters
$name
  • Inherited from \PostgreSqlPlatform
Tags
None found

getDropSequenceSql()

getDropSequenceSql(string $sequenceName) 

drop existing sequence

Parameters
string $sequenceName

name of the sequence to be dropped

  • Inherited from \PostgreSqlPlatform
Tags
override

getSequenceNextValSql()

getSequenceNextValSql( $sequenceName) 

Parameters
$sequenceName
  • Inherited from \PostgreSqlPlatform
Tags
None found

getCreateDatabaseSql()

getCreateDatabaseSql(string $name) : void

create a new database

Parameters
string $name

name of the database that should be created

Throws
\PDOException
  • Inherited from \PostgreSqlPlatform
Tags
override

getSetTransactionIsolationSql()

getSetTransactionIsolationSql(integer $level) 

Get sql to set the transaction isolation level

Parameters
integer $level
  • Inherited from \PostgreSqlPlatform
Tags
None found

getCharsetFieldDeclaration()

getCharsetFieldDeclaration(string $charset) : string

Obtain DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration to be used in statements like CREATE TABLE.

Parameters
string $charset

name of the charset

Returns
string —

DBMS specific SQL code portion needed to set the CHARACTER SET of a field declaration.

  • Inherited from \AbstractPlatform
Tags
None found

getDateTimeTypeDeclarationSql()

getDateTimeTypeDeclarationSql(array $fieldDeclaration) : string

Obtain DBMS specific SQL to be used to create datetime fields in statements like CREATE TABLE

Parameters
array $fieldDeclaration
Returns
string
  • Inherited from \PostgreSqlPlatform
Tags
override

getDateTypeDeclarationSql()

getDateTypeDeclarationSql(array $fieldDeclaration) : string

Obtain DBMS specific SQL to be used to create date fields in statements like CREATE TABLE.

Parameters
array $fieldDeclaration
Returns
string
  • Inherited from \PostgreSqlPlatform
Tags
override

getDefaultTransactionIsolationLevel()

getDefaultTransactionIsolationLevel() : integer

Gets the default transaction isolation level of the platform.

Returns
integer —

The default isolation level.

  • Inherited from \AbstractPlatform
  • See also constants.
Tags
None found

supportsSequences()

supportsSequences() : boolean

Whether the platform supports sequences.

Postgres has native support for sequences.

Returns
boolean
  • Inherited from \PostgreSqlPlatform
Tags
None found

supportsIdentityColumns()

supportsIdentityColumns() : boolean

Whether the platform supports identity columns.

Postgres supports these through the SERIAL keyword.

Returns
boolean
  • Inherited from \PostgreSqlPlatform
Tags
None found

supportsIndexes()

supportsIndexes() : boolean

Whether the platform supports indexes.

Returns
boolean
  • Inherited from \AbstractPlatform
Tags
None found

supportsTransactions()

supportsTransactions() : boolean

Whether the platform supports transactions.

Returns
boolean
  • Inherited from \AbstractPlatform
Tags
None found

supportsSavepoints()

supportsSavepoints() : boolean

Whether the platform supports savepoints.

Returns
boolean
  • Inherited from \AbstractPlatform
Tags
None found

supportsPrimaryConstraints()

supportsPrimaryConstraints() : boolean

Whether the platform supports primary key constraints.

Returns
boolean
  • Inherited from \AbstractPlatform
Tags
None found

supportsForeignKeyConstraints()

supportsForeignKeyConstraints() : boolean

Whether the platform supports foreign key constraints.

Returns
boolean
  • Inherited from \AbstractPlatform
Tags
None found

supportsSchemas()

supportsSchemas() : boolean

Whether the platform supports database schemas.

Returns
boolean
  • Inherited from \PostgreSqlPlatform
Tags
None found

supportsGettingAffectedRows()

supportsGettingAffectedRows() : boolean

Whether the platform supports getting the affected rows of a recent update/delete type query.

Returns
boolean
  • Inherited from \AbstractPlatform
Tags
None found

getIdentityColumnNullInsertSql()

getIdentityColumnNullInsertSql() 

  • Inherited from \AbstractPlatform
Tags
None found

getDateTimeFormatString()

getDateTimeFormatString() : string

Gets the format string, as accepted by the date() function, that describes the format of a stored datetime value of this platform.

Returns
string —

The format string.

  • Inherited from \PostgreSqlPlatform
Tags
None found

getDateFormatString()

getDateFormatString() : string

Gets the format string, as accepted by the date() function, that describes the format of a stored date value of this platform.

Returns
string —

The format string.

  • Inherited from \AbstractPlatform
Tags
None found

getTimeFormatString()

getTimeFormatString() : string

Gets the format string, as accepted by the date() function, that describes the format of a stored time value of this platform.

Returns
string —

The format string.

  • Inherited from \AbstractPlatform
Tags
None found

modifyLimitQuery()

modifyLimitQuery( $query,  $limit,  $offset = null) 

Parameters
$query
$limit
$offset
  • Inherited from \AbstractPlatform
Tags
None found

getVarcharTypeDeclarationSql()

getVarcharTypeDeclarationSql(array $field) 

Gets the SQL snippet used to declare a VARCHAR column on the MySql platform.

Parameters
array $field
  • Inherited from \PostgreSqlPlatform
Tags
params

array $field

override

getClobTypeDeclarationSql()

getClobTypeDeclarationSql(array $field) 

Gets the SQL snippet used to declare a CLOB column type.

Parameters
array $field
  • Inherited from \PostgreSqlPlatform
Tags
override

getName()

getName() : string

Get the platform name for this instance

Returns
string
  • Inherited from \PostgreSqlPlatform
Tags
None found

getSqlResultCasing()

getSqlResultCasing(string $column) : string

Gets the character casing of a column in an SQL result set.

PostgreSQL returns all column names in SQL result sets in lowercase.

Parameters
string $column

The column name for which to get the correct character casing.

Returns
string —

The column name in the character casing used in SQL result sets.

  • Inherited from \PostgreSqlPlatform
Tags
None found

fixSchemaElementName()

fixSchemaElementName( $schemaElementName) : string

Makes any fixes to a name of a schema element (table, sequence, .

..) that are required by restrictions of the platform, like a maximum length.

Parameters
$schemaElementName
Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getEmptyIdentityInsertSql()

getEmptyIdentityInsertSql( $quotedTableName,  $quotedIdentifierColumnName) : string

Get the insert sql for an empty insert statement

Parameters
$quotedTableName
$quotedIdentifierColumnName
Returns
string —

$sql

  • Inherited from \PostgreSqlPlatform
Tags
None found

getAgeExpression()

getAgeExpression(string $timestamp1, string $timestamp2 = null) : string

PostgreSQLs AGE(<timestamp1> [, <timestamp2>]) function.

Parameters
string $timestamp1

timestamp to subtract from NOW()

string $timestamp2

optional; if given: subtract arguments

Returns
string
  • Inherited from \PostgreSqlPlatform
Tags
None found

getDatePartExpression()

getDatePartExpression(string $text, string $time) : string

PostgreSQLs DATE_PART( <text>, <time> ) function.

Parameters
string $text

what to extract

string $time

timestamp or interval to extract from

Returns
string
  • Inherited from \PostgreSqlPlatform
Tags
None found

getToCharExpression()

getToCharExpression(string $time, string $text) : string

PostgreSQLs TO_CHAR( <time>, <text> ) function.

Parameters
string $time

timestamp or interval

string $text

how to the format the output

Returns
string
  • Inherited from \PostgreSqlPlatform
Tags
None found

getRandomExpression()

getRandomExpression() : \return

return string to call a function to get random value inside an SQL statement

Returns
\return —

string to generate float between 0 and 1

  • Inherited from \PostgreSqlPlatform
Tags
override

_getCommonIntegerTypeDeclarationSql()

_getCommonIntegerTypeDeclarationSql(array $columnDef) : string

Gets the SQL snippet that declares common properties of an integer column.

Parameters
array $columnDef
Returns
string
  • Inherited from \PostgreSqlPlatform
Tags
override

_getTransactionIsolationLevelSql()

_getTransactionIsolationLevelSql(integer $level) 

Get sql for transaction isolation level Connection constant

Parameters
integer $level
  • Inherited from \AbstractPlatform
Tags
None found
Documentation is powered by phpDocumentor and generated on Thu, 25 Jun 2020 11:10:47 +0200.