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()
  • getRandomExpression()
  • getGuidExpression()
  • getCollationFieldDeclaration()
  • _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
  3. MySqlPlatform

Class MySqlPlatform

Summary

  • File
  • Package hierarchy Doctrine
  • Class hierarchy \AbstractPlatform \MySqlPlatform
  • since 2.0
  • author

    Roman Borschel roman@code-factory.org

  • package

    Doctrine

Base class for all DatabasePlatforms. The DatabasePlatforms are the central point of abstraction of platform-specific behaviors, features and SQL dialects.

They are a passive source of information.

Methods

__construct()

__construct() 

Creates a new MySqlPlatform instance.

  • Inherited from \MySqlPlatform
Tags
None found

getIdentifierQuoteCharacter()

getIdentifierQuoteCharacter() : string

Gets the character used for identifier quoting.

Returns
string
  • Inherited from \MySqlPlatform
Tags
override

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

Returns the regular expression operator.

Returns
string
  • Inherited from \MySqlPlatform
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

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

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 current system date.

Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

getSubstringExpression()

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

return string to call a function to get a substring inside an SQL statement

Note: Not SQL92, but common functionality.

SQLite only supports the 2 parameter variant of this function

Parameters
string $value

an sql string literal or column name/alias

$from
$len
Returns
string —

SQL substring function with given parameters

  • Inherited from \AbstractPlatform
Tags
None found

getConcatExpression()

getConcatExpression() : string

Returns a series of strings concatinated

concat() accepts an arbitrary number of parameters. Each parameter must contain an expression or an array with expressions.

Returns
string
  • Inherited from \MySqlPlatform
Tags
override

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) : string

drop an existing database

Parameters
string $name

name of the database that should be dropped

Returns
string
  • Inherited from \MySqlPlatform
Tags
override

getDropTableSql()

getDropTableSql(string $table) 

Gets the SQL to drop a table.

Parameters
string $table

The name of table to drop.

  • Inherited from \MySqlPlatform
Tags
override

getDropIndexSql()

getDropIndexSql(string $table, string $name) 

Gets the SQL to drop an index of a table.

Parameters
string $table

name of table that should be used in method

string $name

name of the index to be dropped

  • Inherited from \MySqlPlatform
Tags
override

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(string $name, array $fields, array $options = array()) : void

create a new table

Parameters
string $name

Name of the database that should be created

array $fields

Associative array that contains the definition of each field of the new table The indexes of the array entries are the names of the fields of the table an the array entry values are associative arrays like those that are meant to be passed with the field definitions to get[Type]Declaration() functions. array( 'id' => array( 'type' => 'integer', 'unsigned' => 1 'notnull' => 1 'default' => 0 ), 'name' => array( 'type' => 'text', 'length' => 12 ), 'password' => array( 'type' => 'text', 'length' => 12 ) );

array $options

An associative array of table options: array( 'comment' => 'Foo', 'charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'type' => 'innodb', );

  • Inherited from \MySqlPlatform
Tags
override

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
Throws
\DoctrineException
Returns
string
  • Inherited from \AbstractPlatform
Tags
None found

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) : boolean

Gets the SQL to alter an existing table.

(this method is implemented by the drivers)

Parameters
string $name

The name of the table that is intended to be changed.

array $changes

Associative array that contains the details of each type of change that is intended to be performed. The types of changes that are currently supported are defined as follows:

                        name

                           New name for the table.

                       add

                           Associative array with the names of fields to be added as
                            indexes of the array. The value of each entry of the array
                            should be set to another associative array with the properties
                            of the fields to be added. The properties of the fields should
                            be the same as defined by the Metabase parser.

                       remove

                           Associative array with the names of fields to be removed as indexes
                            of the array. Currently the values assigned to each entry are ignored.
                            An empty array should be used for future compatibility.

                       rename

                           Associative array with the names of fields to be renamed as indexes
                            of the array. The value of each entry of the array should be set to
                            another associative array with the entry named name with the new
                            field name and the entry named Declaration that is expected to contain
                            the portion of the field declaration already in DBMS specific SQL code
                            as it is used in the CREATE TABLE statement.

                       change

                           Associative array with the names of the fields to be changed as indexes
                            of the array. Keep in mind that if it is intended to change either the
                            name of a field and any other properties, the change array entries
                            should have the new names of the fields as array indexes.

                           The value of each entry of the array should be set to another associative
                            array with the properties of the fields to that are meant to be changed as
                            array entries. These entries should be assigned to the new values of the
                            respective properties. The properties of the fields should be the same
                            as defined by the Metabase parser.

                       Example
                           array(
                               'name' => 'userlist',
                               'add' => array(
                                   'quota' => array(
                                       'type' => 'integer',
                                       'unsigned' => 1
                                   )
                               ),
                               'remove' => array(
                                   'file_limit' => array(),
                                   'time_limit' => array()
                               ),
                               'change' => array(
                                   'name' => array(
                                       'length' => '20',
                                       'definition' => array(
                                           'type' => 'text',
                                           'length' => 20,
                                       ),
                                   )
                               ),
                               'rename' => array(
                                   'sex' => array(
                                       'name' => 'gender',
                                       'definition' => array(
                                           'type' => 'text',
                                           'length' => 1,
                                           'default' => 'M',
                                       ),
                                   )
                               )
                           )
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
boolean
  • Inherited from \MySqlPlatform
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 \MySqlPlatform
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 \MySqlPlatform
Tags
override

getIntegerTypeDeclarationSql()

getIntegerTypeDeclarationSql(string $field) : string

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

Parameters
string $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:

                  unsigned
                   Boolean flag that indicates whether the field
                   should be declared as unsigned integer if
                   possible.

                  default
                   Integer 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.
Returns
string —

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

  • Inherited from \MySqlPlatform
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 \MySqlPlatform
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 \MySqlPlatform
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 \AbstractPlatform
Tags
None found

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 \MySqlPlatform
Tags
pacthed

by PHPBoost

override

getIndexFieldDeclarationListSql()

getIndexFieldDeclarationListSql(array $fields) : string

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 \MySqlPlatform
Tags
override

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 \MySqlPlatform
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

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 \MySqlPlatform
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

Builds 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 \MySqlPlatform
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 \AbstractPlatform
Tags
None found

prefersIdentityColumns()

prefersIdentityColumns() : boolean

Whether the platform prefers identity columns for ID generation.

MySql prefers "autoincrement" identity columns since sequences can only be emulated with a table.

Returns
boolean
  • Inherited from \MySqlPlatform
Tags
override

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) 

Some platforms need the boolean values to be converted.

Default conversion defined here converts to integers.

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

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 \MySqlPlatform
Tags
None found

getListFunctionsSql()

getListFunctionsSql() 

  • Inherited from \AbstractPlatform
Tags
None found

getListTriggersSql()

getListTriggersSql( $table = null) 

Parameters
$table
  • Inherited from \AbstractPlatform
Tags
None found

getListSequencesSql()

getListSequencesSql( $database) 

Parameters
$database
  • Inherited from \MySqlPlatform
Tags
None found

getListTableConstraintsSql()

getListTableConstraintsSql( $table) 

Parameters
$table
  • Inherited from \MySqlPlatform
Tags
None found

getListTableColumnsSql()

getListTableColumnsSql( $table) 

Parameters
$table
  • Inherited from \MySqlPlatform
Tags
None found

getListTablesSql()

getListTablesSql() 

  • Inherited from \MySqlPlatform
Tags
None found

getListUsersSql()

getListUsersSql() 

  • Inherited from \MySqlPlatform
Tags
None found

getListViewsSql()

getListViewsSql( $database = null) 

Parameters
$database
  • Inherited from \MySqlPlatform
Tags
None found

getListTableIndexesSql()

getListTableIndexesSql( $table) 

Parameters
$table
  • Inherited from \MySqlPlatform
Tags
None found

getListTableForeignKeysSql()

getListTableForeignKeysSql( $table,  $database = null) 

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

getCreateViewSql()

getCreateViewSql( $name,  $sql) 

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

getDropViewSql()

getDropViewSql( $name) 

Parameters
$name
  • Inherited from \MySqlPlatform
Tags
None found

getDropSequenceSql()

getDropSequenceSql( $sequenceName) 

Parameters
$sequenceName
  • Inherited from \AbstractPlatform
Tags
None found

getSequenceNextValSql()

getSequenceNextValSql( $sequenceName) 

Parameters
$sequenceName
  • Inherited from \AbstractPlatform
Tags
None found

getCreateDatabaseSql()

getCreateDatabaseSql(string $name) : string

create a new database

Parameters
string $name

name of the database that should be created

Returns
string
  • Inherited from \MySqlPlatform
Tags
override

getSetTransactionIsolationSql()

getSetTransactionIsolationSql(integer $level) 

Get sql to set the transaction isolation level

Parameters
integer $level
  • Inherited from \MySqlPlatform
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 \MySqlPlatform
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 \MySqlPlatform
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 \MySqlPlatform
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.

Returns
boolean
  • Inherited from \AbstractPlatform
Tags
None found

supportsIdentityColumns()

supportsIdentityColumns() : boolean

Whether the platform supports identity columns.

MySql supports this through AUTO_INCREMENT columns.

Returns
boolean
  • Inherited from \MySqlPlatform
Tags
override

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. MySql does not.

Returns
boolean
  • Inherited from \MySqlPlatform
Tags
override

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 \AbstractPlatform
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 \AbstractPlatform
Tags
todo

We need to get the specific format for each dbms and override this function for each platform

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 \MySqlPlatform
Tags
params

array $field

getClobTypeDeclarationSql()

getClobTypeDeclarationSql(array $field) 

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

Parameters
array $field
  • Inherited from \MySqlPlatform
Tags
override

getName()

getName() : string

Get the platform name for this instance.

Returns
string
  • Inherited from \MySqlPlatform
Tags
None found

getSqlResultCasing()

getSqlResultCasing(string $column) : string

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

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 \AbstractPlatform
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(string $tableName, string $identifierColumnName) : string

Get the insert sql for an empty insert statement

Parameters
string $tableName
string $identifierColumnName
Returns
string —

$sql

  • Inherited from \AbstractPlatform
Tags
None found

getRandomExpression()

getRandomExpression() : string

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

Returns
string —

to generate float between 0 and 1

  • Inherited from \MySqlPlatform
Tags
None found

getGuidExpression()

getGuidExpression() : string

Returns global unique identifier

Returns
string —

to get global unique identifier

  • Inherited from \MySqlPlatform
Tags
override

getCollationFieldDeclaration()

getCollationFieldDeclaration(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 \MySqlPlatform
Tags
None found

_getCommonIntegerTypeDeclarationSql()

_getCommonIntegerTypeDeclarationSql(array $columnDef) : string

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

Parameters
array $columnDef
Returns
string
  • Inherited from \MySqlPlatform
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:11:01 +0200.