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()
  • set_module()
  • set_fixing_date()
  • set_auth()
  • set_poster_id()
  • set_fixer_id()
  • set_description()
  • get_description()
  • get_module()
  • get_fixing_date()
  • get_auth()
  • get_poster_id()
  • get_fixer_id()
  • get_poster_login()
  • get_fixer_login()
  • get_poster_level()
  • get_fixer_level()
  • get_poster_groups()
  • get_fixer_groups()
  • get_module_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
  • $description
  • $module
  • $fixing_date
  • $auth
  • $poster_id
  • $fixer_id
  • $poster_login
  • $fixer_login
  • $poster_level
  • $fixer_level
  • $poster_groups
  • $fixer_groups
Constants
  • EVENT_STATUS_UNREAD
  • EVENT_STATUS_BEING_PROCESSED
  • EVENT_STATUS_PROCESSED
  • CONTRIBUTION_AUTH_BIT
  1. APIBoost
  2. \PHPBoost\Event
  3. Contribution

Class Contribution

Summary

  • File
  • Package hierarchy PHPBoost\Event
  • Class hierarchy \Event \Contribution
  • 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: 2016 10 24

  • since

    PHPBoost 2.0 - 2008 07 21

  • contributor

    Arnaud GENET elenwii@phpboost.com

This class represents a contribution made by a user to complete the content of the website.

All the contributions are managed in the contribution panel.

Methods

__construct()

__construct() 

Builds a Contribution object.

  • Inherited from \Contribution
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 contribution.

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 \Contribution
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() : string

Gets the contribution status name. It's automatically translated in the user language, ready to be displayed.

Returns
string —

The status name.

  • Inherited from \Contribution
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,  $description, string $fixing_url, string $module,  $status, \Date $creation_date, \Date $fixing_date, array<mixed,mixed> $auth, integer $poster_id, integer $fixer_id, integer $id_in_module, string $identifier, string $type, string $poster_login = '', string $fixer_login = '',  $poster_level = '',  $fixer_level = '',  $poster_groups = '',  $fixer_groups = '') 

Builds a contribution object from its whole parameters.

Parameters
integer $id

Contribution id.

string $entitled

Contribution entitled.

$description
string $fixing_url

URL associated to the event.

string $module

Module identifier at which the contribution is attached.

$status
\Date $creation_date

Contribution creation date.

\Date $fixing_date

Contribution fixing date.

array<mixed,mixed> $auth

Auth array determining the people who can treat the contribution.

integer $poster_id

Contribution creator id.

integer $fixer_id

Contribution fixer id.

integer $id_in_module

Id of the element associated to the contribution.

string $identifier

Contribution identifier.

string $type

Contribution type.

string $poster_login

Login of the poster of the contribution.

string $fixer_login

Login of the fixer of the contribution.

$poster_level
$fixer_level
$poster_groups
$fixer_groups
  • Inherited from \Contribution
Tags
None found

set_module()

set_module(string $module) 

Sets the module in which the contribution is used.

Parameters
string $module

Module identifier (for example the name of the module folder).

  • Inherited from \Contribution
Tags
None found

set_fixing_date()

set_fixing_date(\Date $date) 

Sets the fixing date.

Parameters
\Date $date

Date

  • Inherited from \Contribution
Tags
None found

set_auth()

set_auth(array<mixed,mixed> $auth) 

Sets the authorization of the contribution. It will determine who will be able to treat the contribution.

Parameters
array<mixed,mixed> $auth

Auth array.

  • Inherited from \Contribution
Tags
None found

set_poster_id()

set_poster_id(integer $poster_id) 

Sets the id of the poster.

Parameters
integer $poster_id

Id.

  • Inherited from \Contribution
Tags
None found

set_fixer_id()

set_fixer_id(integer $fixer_id) 

Sets the id of the fixer.

Parameters
integer $fixer_id

Id.

  • Inherited from \Contribution
Tags
None found

set_description()

set_description(string $description) 

Sets the description of the contribution.

Parameters
string $description

Description (can be some HTML content).

  • Inherited from \Contribution
Tags
None found

get_description()

get_description() : string

Gets the description of the contribution.

Returns
string —

the description

  • Inherited from \Contribution
Tags
None found

get_module()

get_module() : string

Gets the module in which the contribution is used.

Returns
string —

The module identifier (for example the name of its folder).

  • Inherited from \Contribution
Tags
None found

get_fixing_date()

get_fixing_date() : \The

Gets the contribution fixing date.

Returns
\The —

date at which the contribution has been treated.

  • Inherited from \Contribution
Tags
None found

get_auth()

get_auth() : array<mixed,mixed>

Gets the authorization of treatment of this contribution.

Returns
array<mixed,mixed> —

The authorization array.

  • Inherited from \Contribution
Tags
None found

get_poster_id()

get_poster_id() : integer

Gets the identifier of the poster.

Returns
integer —

Its id.

  • Inherited from \Contribution
Tags
None found

get_fixer_id()

get_fixer_id() : integer

Gets the identifier of the fixer.

Returns
integer —

Its id.

  • Inherited from \Contribution
Tags
None found

get_poster_login()

get_poster_login() : string

Gets the poster login.

Returns
string —

The poster login.

  • Inherited from \Contribution
Tags
None found

get_fixer_login()

get_fixer_login() : string

Gets the fixer login.

Returns
string —

The fixer login.

  • Inherited from \Contribution
Tags
None found

get_poster_level()

get_poster_level() : string

Gets the poster level.

Returns
string —

The poster level.

  • Inherited from \Contribution
Tags
None found

get_fixer_level()

get_fixer_level() : string

Gets the fixer level.

Returns
string —

The fixer level.

  • Inherited from \Contribution
Tags
None found

get_poster_groups()

get_poster_groups() : string

Gets the poster groups.

Returns
string —

The poster groups.

  • Inherited from \Contribution
Tags
None found

get_fixer_groups()

get_fixer_groups() : string

Gets the fixer groups.

Returns
string —

The fixer groups.

  • Inherited from \Contribution
Tags
None found

get_module_name()

get_module_name() : string

Gets the name of the module in which the contribution is used.

Returns
string —

The module name.

  • Inherited from \Contribution
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).

$description

$description : string

string — Description of the contribution (for instance to justify a contribution).
Tags
None found

$module

$module : string

string — String containing the identifier of the module corresponding to the contribution (ex: forum).
Tags
None found

$fixing_date

$fixing_date : \Date

\Date — Date at which the contribution has been processed (if it is obviously). Default value: date at which is created the contribution.
Tags
None found

$auth

$auth : array

array — Authorization array containing the people who can treat the contribution.
Tags
None found

$poster_id

$poster_id : integer

integer — Identifier of the member who has posted the contribution.
Tags
None found

$fixer_id

$fixer_id : integer

integer — Identifier of the member who has fixed the contribution.
Tags
None found

$poster_login

$poster_login : string

string — Login of the member who has posted the contribution.
Tags
None found

$fixer_login

$fixer_login : string

string — Login of the member who has fixed the contribution.
Tags
None found

$poster_level

$poster_level : string

string — Level of the member who has posted the contribution.
Tags
None found

$fixer_level

$fixer_level : string

string — Level of the member who has fixed the contribution.
Tags
None found

$poster_groups

$poster_groups : string

string — Groups of the member who has posted the contribution.
Tags
None found

$fixer_groups

$fixer_groups : string

string — Groups of the member who has fixed the contribution.
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

CONTRIBUTION_AUTH_BIT

CONTRIBUTION_AUTH_BIT = 1

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