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()
  • set_id()
  • set_entitled()
  • set_fixing_url()
  • set_status()
  • set_creation_date()
  • set_id_in_module()
  • set_identifier()
  • set_type()
  • set_must_regenerate_cache()
  • get_id()
  • get_entitled()
  • get_fixing_url()
  • get_status()
  • get_creation_date()
  • get_id_in_module()
  • get_identifier()
  • get_type()
  • get_must_regenerate_cache()
  • get_status_name()
  • build_event()
  • build()
  • get_priority()
  • get_properties()
  • set_priority()
  • set_properties()
  • get_priority_name()
  • No protected methods found
  • No private methods found
Properties
  • No public properties found
  • $id
  • $entitled
  • $fixing_url
  • $current_status
  • $creation_date
  • $id_in_module
  • $identifier
  • $type
  • $must_regenerate_cache
  • $priority
  • $properties
Constants
  • EVENT_STATUS_UNREAD
  • EVENT_STATUS_BEING_PROCESSED
  • EVENT_STATUS_PROCESSED
  • ADMIN_ALERT_VERY_LOW_PRIORITY
  • ADMIN_ALERT_LOW_PRIORITY
  • ADMIN_ALERT_MEDIUM_PRIORITY
  • ADMIN_ALERT_HIGH_PRIORITY
  • ADMIN_ALERT_VERY_HIGH_PRIORITY
  • ADMIN_ALERT_STATUS_UNREAD
  • ADMIN_ALERT_STATUS_PROCESSED
  1. APIBoost
  2. \PHPBoost\Event
  3. AdministratorAlert

Class AdministratorAlert

Summary

  • File
  • Package hierarchy PHPBoost\Event
  • Class hierarchy \Event \AdministratorAlert
  • package

    PHPBoost

  • subpackage

    Event

  • copyright

    © 2005-2020 PHPBoost

  • license

    https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL-3.0

  • author

    Benoit SAUTEL ben.popeye@phpboost.com

  • version

    PHPBoost 6.0 - last update: 2018 11 07

  • since

    PHPBoost 2.0 - 2008 08 27

  • contributor

    Julien BRISWALTER j1.seth@phpboost.com

  • contributor

    Arnaud GENET elenwii@phpboost.com

This class represents an alert which must be sent to the administrator.

It allows to the module developers to handle the administrator alerts. The administrator alerts can be in the administration panel and can be used when you want to signal an important event to the administrator(s).

Methods

__construct()

__construct() 

Builds an AdministratorAlert object.

  • Inherited from \AdministratorAlert
Tags
None found

set_id()

set_id(integer $id) 

Sets the id of the event. The id is the corresponding data base entry one.

Parameters
integer $id

Id of the event.

  • Inherited from \Event
Tags
None found

set_entitled()

set_entitled(string $entitled) 

Sets the entitled of the event. The entitled can be considered as the name, it must be explicit.

Parameters
string $entitled

The event entitiled.

  • Inherited from \Event
Tags
None found

set_fixing_url()

set_fixing_url(string $fixing_url) 

Sets the URL corresponding to the event. For the contributions and the administrator alerts it's the number URL at which the problem can be solved.

Parameters
string $fixing_url

Relative URL (the first character must be / for the root of the site).

  • Inherited from \Event
Tags
None found

set_status()

set_status(integer $new_current_status) 

Set the status of the event.

Parameters
integer $new_current_status

One of those elements:

  • Event::EVENT_STATUS_UNREAD if it's not read.
  • Event::EVENT_STATUS_BEING_PROCESSED if the event is beeing processed
  • Event::EVENT_STATUS_PROCESSED if the event is processed.
  • Inherited from \Event
Tags
None found

set_creation_date()

set_creation_date(\Date $date) 

Sets the creation date of the event.

Parameters
\Date $date

The creation date

  • Inherited from \Event
Tags
None found

set_id_in_module()

set_id_in_module(integer $id) 

Sets the id in module parameter. It corresponds to the id of the element corresponding to the event in your data base tables.

For example, il you use the events to allow user to purpose some news in your web site, it will be the id of the news added.

Parameters
integer $id

Id in the module

  • Inherited from \Event
Tags
None found

set_identifier()

set_identifier(string $identifier) 

Sets the event identifier. To retrieve your event, you might need to have a field in which you put some informations, for example a hash or an identifier.

It's that identifier which can be used to filter the events. You don't have to use it, you can let it blank.

Parameters
string $identifier

Identifier of the event.

  • Inherited from \Event
Tags
None found

set_type()

set_type(string $type) 

Sets the type of the event. To retrieve your event, you might need to have a type of event, for example if your module has differents kinds of events. With this field, you can specify it.

Parameters
string $type

The type of your event.

  • Inherited from \Event
Tags
None found

set_must_regenerate_cache()

set_must_regenerate_cache(boolean $must) 

Sets a private property indicating if the changes made on this event imply the regeneration of the events cache.

Parameters
boolean $must

true if we must generate the events cache, otherwise false.

  • Inherited from \Event
Tags
None found

get_id()

get_id() : integer

Gets the id of the event (in the event data base).

Returns
integer —

The id.

  • Inherited from \Event
Tags
None found

get_entitled()

get_entitled() : string

Returns the entitled of the event.

Returns
string —

The entitled.

  • Inherited from \Event
Tags
None found

get_fixing_url()

get_fixing_url() : string

Returns the URL corresponding to the alert.

Returns
string —

Relative URL whose first character is / for the website root.

  • Inherited from \Event
Tags
None found

get_status()

get_status() : integer

Gets the status of the event. The status is one of those elements: ul> <li>Event::EVENT_STATUS_UNREAD if it's not read.</li> <li>Event::EVENT_STATUS_BEING_PROCESSED if the event is beeing processed</li> <li>Event::EVENT_STATUS_PROCESSED if the event is processed.

Returns
integer —

Status

  • Inherited from \Event
Tags
None found

get_creation_date()

get_creation_date() : \Date

Returns the creation date of the event.

Returns
\Date —

Creation date

  • Inherited from \Event
Tags
None found

get_id_in_module()

get_id_in_module() : integer

Gets the id in the module. This value corresponds to the id of the daba base entry associated to the event.

Returns
integer —

The id in the module.

  • Inherited from \Event
Tags
None found

get_identifier()

get_identifier() : string

Gets the identifier of the event. To retrieve your event, you might need to have a field in which you put some informations, for example a hash or an identifier.

It's that identifier which can be used to filter the events.

Returns
string —

The identifier of the event.

  • Inherited from \Event
Tags
None found

get_type()

get_type() : string

Gets the type of the event. To retrieve your event, you might need to have a type of event, for example if your module has differents kinds of events. With this field, you can specify it.

Returns
string —

The type.

  • Inherited from \Event
Tags
None found

get_must_regenerate_cache()

get_must_regenerate_cache() : boolean

Gets the value indicating if the cache must be generated.

Returns
boolean —

true if the cache has to be generated, false else.

  • Inherited from \Event
Tags
None found

get_status_name()

get_status_name() : \The

Gets the event status name. It's automatically translated in the user language.

Returns
\The —

name of the event status, ready to be displayed.

  • Inherited from \Event
Tags
None found

build_event()

build_event(integer $id, string $entitled, string $fixing_url, integer $current_status, \Date $creation_date, integer $id_in_module, string $identifier, string $type) 

Builds an event object from its whole parameters.

Parameters
integer $id

The event id.

string $entitled

The event entitled.

string $fixing_url

The URL corresponding to the event.

integer $current_status

The event status.

\Date $creation_date

The creation date.

integer $id_in_module

The id of the object associated to the event.

string $identifier

The event identifier.

string $type

The event type.

  • Inherited from \Event
Tags
None found

build()

build(integer $id, string $entitled, string $properties, string $fixing_url, integer $current_status, \Date $creation_date, integer $id_in_module, string $identifier, string $type, integer $priority) 

Builds an alert from its whole parameters.

Parameters
integer $id

Identifier of the alert.

string $entitled

Entitled of the alert.

string $properties

Properties of the alert.

string $fixing_url

Fixing url.

integer $current_status

Alert status.

\Date $creation_date

Alert creation date?

integer $id_in_module

Id in module field.

string $identifier

Identifier of the alert.

string $type

Type of the alert.

integer $priority

Priority of the alert.

  • Inherited from \AdministratorAlert
Tags
None found

get_priority()

get_priority() : integer

Gets the priority of the alert.

Returns
integer —

One of those values:

  • AdministratorAlert::ADMIN_ALERT_VERY_LOW_PRIORITY Very low priority
  • AdministratorAlert::ADMIN_ALERT_LOW_PRIORITY Low priority
  • AdministratorAlert::ADMIN_ALERT_MEDIUM_PRIORITY Medium priority
  • AdministratorAlert::ADMIN_ALERT_HIGH_PRIORITY High priority
  • AdministratorAlert::ADMIN_ALERT_VERY_HIGH_PRIORITY Very high priority
  • Inherited from \AdministratorAlert
Tags
None found

get_properties()

get_properties() : string

Gets the alert properties.

Returns
string —

The properties.

  • Inherited from \AdministratorAlert
Tags
None found

set_priority()

set_priority(integer $priority) 

Sets the priority of the alert.

Parameters
integer $priority

The priority, it must be one of those values:

  • AdministratorAlert::ADMIN_ALERT_VERY_LOW_PRIORITY Very low priority
  • AdministratorAlert::ADMIN_ALERT_LOW_PRIORITY Low priority
  • AdministratorAlert::ADMIN_ALERT_MEDIUM_PRIORITY Medium priority
  • AdministratorAlert::ADMIN_ALERT_HIGH_PRIORITY High priority
  • AdministratorAlert::ADMIN_ALERT_VERY_HIGH_PRIORITY Very high priority
  • Inherited from \AdministratorAlert
Tags
None found

set_properties()

set_properties(string $properties) 

Sets the properties of the alert.

Parameters
string $properties

Properties.

  • Inherited from \AdministratorAlert
Tags
None found

get_priority_name()

get_priority_name() : string

Gets the priority name. It's automatically translater to the user language, ready to be displayed.

Returns
string —

The priority name.

  • Inherited from \AdministratorAlert
Tags
None found

Properties

$id

$id : 

  • Inherited from
    \Event
Tags
protected

int Numerical identifier of the event (in DB).

$entitled

$entitled : 

  • Inherited from
    \Event
Tags
protected

string Entitled (title or name) of the event.

$fixing_url

$fixing_url : 

  • Inherited from
    \Event
Tags
protected

string URL where you can process the event (relative from the website root).

$current_status

$current_status : 

  • Inherited from
    \Event
Tags
protected

int The event status.

$creation_date

$creation_date : 

  • Inherited from
    \Event
Tags
protected

Date The event creation date.

$id_in_module

$id_in_module : 

  • Inherited from
    \Event
Tags
protected

int Id corresponding to the event in the module (optionnal).

$identifier

$identifier : 

  • Inherited from
    \Event
Tags
protected

string Identifier to recognize the entry (optionnal).

$type

$type : 

  • Inherited from
    \Event
Tags
protected

string Event type (optionnal).

$must_regenerate_cache

$must_regenerate_cache : 

  • Inherited from
    \Event
Tags
protected

bool To know if the modifications implies to regenerate the cache (for instance whether the status has been changed).

$priority

$priority : integer

integer — Priority of the alert
Tags
None found

$properties

$properties : string

string — Properties of the alert (string field of unlimited length) which can for example contain a serializes array of object.
Tags
None found

Constants

EVENT_STATUS_UNREAD

EVENT_STATUS_UNREAD = 0

  • Inherited from \Event
Tags
None found

EVENT_STATUS_BEING_PROCESSED

EVENT_STATUS_BEING_PROCESSED = 1

  • Inherited from \Event
Tags
None found

EVENT_STATUS_PROCESSED

EVENT_STATUS_PROCESSED = 2

  • Inherited from \Event
Tags
None found

ADMIN_ALERT_VERY_LOW_PRIORITY

ADMIN_ALERT_VERY_LOW_PRIORITY = 1

Tags
None found

ADMIN_ALERT_LOW_PRIORITY

ADMIN_ALERT_LOW_PRIORITY = 2

Tags
None found

ADMIN_ALERT_MEDIUM_PRIORITY

ADMIN_ALERT_MEDIUM_PRIORITY = 3

Tags
None found

ADMIN_ALERT_HIGH_PRIORITY

ADMIN_ALERT_HIGH_PRIORITY = 4

Tags
None found

ADMIN_ALERT_VERY_HIGH_PRIORITY

ADMIN_ALERT_VERY_HIGH_PRIORITY = 5

Tags
None found

ADMIN_ALERT_STATUS_UNREAD

ADMIN_ALERT_STATUS_UNREAD = \Event::EVENT_STATUS_UNREAD

Tags
None found

ADMIN_ALERT_STATUS_PROCESSED

ADMIN_ALERT_STATUS_PROCESSED = \Event::EVENT_STATUS_PROCESSED

Tags
None found
Documentation is powered by phpDocumentor and generated on Thu, 25 Jun 2020 11:09:55 +0200.