Class lispa\amos\events\models\Event

Inheritancelispa\amos\events\models\Event » lispa\amos\events\models\base\Event » lispa\amos\notificationmanager\record\NotifyRecord » lispa\amos\core\record\Record » yii\db\ActiveRecord » yii\db\BaseActiveRecord » yii\base\Model » yii\base\Component » yii\base\Object
ImplementsArrayAccess, IteratorAggregate, lispa\amos\comments\models\CommentInterface, lispa\amos\community\models\CommunityContextInterface, lispa\amos\community\models\CommunityInterface, lispa\amos\core\interfaces\ContentModelInterface, lispa\amos\core\interfaces\StatsToolbarInterface, lispa\amos\core\interfaces\ViewModelInterface, lispa\amos\notificationmanager\record\NotifyRecordInterface, yii\base\Arrayable, yii\base\Configurable, yii\db\ActiveRecordInterface
Uses Traitsyii\base\ArrayableTrait
Subclasseslispa\amos\events\models\search\EventSearch

Class Event This is the model class for table "event".

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$activeValidators yii\validators\Validator[] The validators applicable to the current $scenario. yii\base\Model
$attrEventTypeMm string lispa\amos\events\models\base\Event
$attributes array Attribute values (name => value). yii\base\Model
$avatarUrl lispa\amos\events\models\Event
$baseRole string lispa\amos\events\models\Event
$begin_date_hour_from string lispa\amos\events\models\Event
$begin_date_hour_to string lispa\amos\events\models\Event
$behaviors yii\base\Behavior[] List of behaviors attached to this component yii\base\Component
$bypassEventLogoValidation boolean lispa\amos\events\models\Event
$category yii\db\ActiveQuery Category of content lispa\amos\events\models\Event
$cityLocation yii\db\ActiveQuery lispa\amos\events\models\base\Event
$community yii\db\ActiveQuery lispa\amos\events\models\base\Event
$communityId integer lispa\amos\events\models\base\Event
$communityModel lispa\amos\community\models\Community lispa\amos\events\models\Event
$communityUserMm yii\db\ActiveQuery lispa\amos\events\models\base\Event
$completeAddress string lispa\amos\events\models\Event
$contextRoles array lispa\amos\events\models\Event
$countryLocation yii\db\ActiveQuery lispa\amos\events\models\base\Event
$createdUserProfile yii\db\ActiveQuery lispa\amos\core\record\Record
$cwhValidationStatuses array List of statuses that for cwh is validated lispa\amos\events\models\Event
$deletedUserProfile yii\db\ActiveQuery lispa\amos\core\record\Record
$destinatari_notifiche string Destinatari notifiche lispa\amos\notificationmanager\record\NotifyRecord
$dirtyAttributes array The changed attribute values (name-value pairs) yii\db\BaseActiveRecord
$draftStatus lispa\amos\events\models\Event
$endDateHour lispa\amos\events\models\Event
$end_date_hour_from string lispa\amos\events\models\Event
$end_date_hour_to string lispa\amos\events\models\Event
$errors array Errors for all attributes or the specified attribute. yii\base\Model
$eventAttachments lispa\amos\events\models\Event
$eventAttachmentsForItemView lispa\amos\events\models\Event
$eventColor lispa\amos\events\models\Event
$eventLengthMeasurementUnit yii\db\ActiveQuery lispa\amos\events\models\base\Event
$eventMembershipType yii\db\ActiveQuery lispa\amos\events\models\base\Event
$eventTitle lispa\amos\events\models\Event
$eventType yii\db\ActiveQuery lispa\amos\events\models\base\Event
$eventUrl lispa\amos\events\models\Event
$events lispa\amos\events\models\Event
$eventsImageUrl string lispa\amos\events\models\Event
$firstErrors array The first errors. yii\base\Model
$fullViewUrl string The url to view of this model lispa\amos\events\models\Event
$googleEvent lispa\amos\events\models\Event
$googleEventId lispa\amos\events\models\Event
$grammar mixed lispa\amos\events\models\Event
$gridViewColumns array The columns ti show as default in GridViewWidget lispa\amos\events\models\Event
$isNewRecord boolean Whether the record is new and should be inserted when calling save(). yii\db\BaseActiveRecord
$isSearch boolean - if it is content model search class lispa\amos\notificationmanager\record\NotifyRecord
$iterator ArrayIterator An iterator for traversing the items in the list. yii\base\Model
$location lispa\amos\events\models\Event
$mailStatuses array - map workflow transitions for which an email must be sent with email configurations [ end status => ChangeStatusEmail ] for standard email when reaching toValidate and validated statuses, leave the array empty lispa\amos\notificationmanager\record\NotifyRecord
$managerRole string lispa\amos\events\models\Event
$modelClassName lispa\amos\notificationmanager\record\NotifyRecord
$modelFormName lispa\amos\notificationmanager\record\NotifyRecord
$modulesChainBehavior lispa\amos\core\record\Record
$notifiedUserId mixed|null lispa\amos\notificationmanager\record\NotifyRecord
$notifier lispa\amos\notificationmanager\record\NotifyRecord
$oldAttributes array The old attribute values (name-value pairs) yii\db\BaseActiveRecord
$oldPrimaryKey mixed The old primary key value. yii\db\BaseActiveRecord
$orderAttribute string Selected ORDER attribute (field) from the ORDER form lispa\amos\core\record\Record
$orderAttributes array Array of order fields get from the config file of the module lispa\amos\core\record\Record
$orderAttributesLabels mixed lispa\amos\core\record\Record
$orderType integer ORDER ascending (SORT_ASC), descending (SORT_DESC) lispa\amos\core\record\Record
$orderVars lispa\amos\core\record\Record
$pluginController string lispa\amos\events\models\Event
$pluginModule string lispa\amos\events\models\Event
$pluginWidgetClassname lispa\amos\events\models\Event
$primaryKey mixed The primary key value. yii\db\BaseActiveRecord
$provinceLocation yii\db\ActiveQuery lispa\amos\events\models\base\Event
$publicatedAt string Date end of publication lispa\amos\events\models\Event
$publicatedFrom string Date begin of publication lispa\amos\events\models\Event
$redirectAction string lispa\amos\events\models\Event
$relatedRecords array An array of related records indexed by relation names. yii\db\BaseActiveRecord
$scenario string The scenario that this model is in. yii\base\Model
$shortDescription lispa\amos\events\models\Event
$statsToolbar lispa\amos\core\record\Record
$tagsMandatory lispa\amos\core\record\Record
$title string lispa\amos\events\models\Event
$toValidateStatus lispa\amos\events\models\Event
$updatedUserProfile yii\db\ActiveQuery lispa\amos\core\record\Record
$validatedStatus lispa\amos\events\models\Event
$validatorRole lispa\amos\events\models\Event
$validatorUsersId array lispa\amos\core\record\Record
$validators ArrayObject|yii\validators\Validator[] All the validators declared in the model. yii\base\Model
$viewUrl string The url to view a single model lispa\amos\events\models\Event
$workflowStatusLabel string lispa\amos\core\record\Record

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__call() Calls the named method which is not a class method. yii\base\Component
__clone() This method is called after the object is created by cloning an existing one. yii\base\Component
__construct() lispa\amos\notificationmanager\record\NotifyRecord
__get() PHP getter magic method. yii\db\BaseActiveRecord
__isset() Checks if a property value is null. yii\db\BaseActiveRecord
__set() PHP setter magic method. yii\db\BaseActiveRecord
__toString() lispa\amos\core\record\Record
__unset() Sets a component property to be null. yii\db\BaseActiveRecord
activeAttributes() Returns the attribute names that are subject to validation in the current scenario. yii\base\Model
addError() Adds a new error to the specified attribute. yii\base\Model
addErrors() Adds a list of errors. yii\base\Model
afterDelete() This method is invoked after deleting a record. yii\db\BaseActiveRecord
afterFind() This method is called when the AR object is created and populated with the query result. lispa\amos\events\models\Event
afterRefresh() This method is called when the AR object is refreshed. yii\db\BaseActiveRecord
afterSave() Override Required for cache lispa\amos\events\models\Event
afterValidate() This method is invoked after validation ends. yii\base\Model
attachBehavior() Attaches a behavior to this component. yii\base\Component
attachBehaviors() Attaches a list of behaviors to the component. yii\base\Component
attributeHints() Returns the attribute hints. yii\base\Model
attributeLabels() lispa\amos\events\models\Event
attributes() Returns the list of all attribute names of the model. yii\db\ActiveRecord
basicFind() Base query, it INCLUDE deleted elements lispa\amos\core\record\Record
beforeDelete() Override for demos lispa\amos\events\models\Event
beforeSave() Override for demos lispa\amos\core\record\Record
beforeValidate() This method is invoked before validation starts. lispa\amos\core\record\Record
behaviors() lispa\amos\events\models\Event
canGetProperty() Returns a value indicating whether a property can be read. yii\db\BaseActiveRecord
canSetProperty() Returns a value indicating whether a property can be set. yii\db\BaseActiveRecord
canUseModuleOrder() Check if there is an order variable for the module lispa\amos\core\record\Record
checkDate() Validation of $attribute if the attribute publication date of the module is true lispa\amos\events\models\base\Event
className() Returns the fully qualified name of this class. yii\base\Object
clearErrors() Removes errors for all attributes or a single attribute. yii\base\Model
createOrderClause() lispa\amos\notificationmanager\record\NotifyRecord
createValidators() Creates validator objects based on the validation rules specified in rules(). yii\base\Model
delete() Deletes the table row corresponding to this active record. yii\db\ActiveRecord
deleteAll() Deletes rows in the table using the provided conditions. yii\db\ActiveRecord
detachBehavior() Detaches a behavior from the component. yii\base\Component
detachBehaviorByClassName() This method detach SoftDeleteByBehavior from the Event model. lispa\amos\events\models\Event
detachBehaviors() Detaches all behaviors from the component. yii\base\Component
detachBehaviorsOnWhiteList() lispa\amos\core\record\Record
detachEventSoftDeleteBehavior() This method detach SoftDeleteByBehavior from the Event model. lispa\amos\events\models\Event
ensureBehaviors() Makes sure that the behaviors declared in behaviors() are attached to this component. yii\base\Component
equals() Returns a value indicating whether the given active record is the same as the current one. yii\db\ActiveRecord
extraFields() Returns the list of fields that can be expanded further and returned by toArray(). yii\base\ArrayableTrait
fields() Returns the list of fields that should be returned by default by toArray() when no specific fields are specified. yii\base\ArrayableTrait
find() Creates an yii\db\ActiveQueryInterface instance for query purpose. yii\db\ActiveRecord
findAll() Returns a list of active record models that match the specified primary key value(s) or a set of column values. yii\db\BaseActiveRecord
findBehaviorByClassName() This method find a behavior from the model. lispa\amos\core\record\Record
findBySql() Creates an yii\db\ActiveQuery instance with a given SQL statement. yii\db\ActiveRecord
findOne() Returns a single active record model instance by a primary key or an array of column values. yii\db\BaseActiveRecord
formName() Returns the form name that this model class should use. yii\base\Model
generateAttributeLabel() Generates a user friendly attribute label based on the give attribute name. yii\base\Model
getActiveValidators() Returns the validators applicable to the current $scenario. yii\base\Model
getAdditionalAssociationTargetQuery() Active query to search the users to associate in the additional association page lispa\amos\events\models\Event
getAssociationTargetQuery() lispa\amos\events\models\Event
getAttrEventTypeMm() lispa\amos\events\models\base\Event
getAttribute() Returns the named attribute value. yii\db\BaseActiveRecord
getAttributeHint() Returns the text hint for the specified attribute. yii\db\BaseActiveRecord
getAttributeLabel() Returns the text label for the specified attribute. yii\db\BaseActiveRecord
getAttributes() Returns attribute values. yii\base\Model
getAvatarUrl() Restituisce un'immagine se associata al model lispa\amos\events\models\Event
getBaseRole() The name of the basic member role lispa\amos\events\models\Event
getBehavior() Returns the named behavior object. yii\base\Component
getBehaviors() Returns all behaviors attached to this component. yii\base\Component
getCategory() lispa\amos\events\models\Event
getCityLocation() lispa\amos\events\models\base\Event
getCommunity() lispa\amos\events\models\base\Event
getCommunityId() Getter method for community_id field. lispa\amos\events\models\base\Event
getCommunityModel() The community created by the context model (community related to project-management, events or a community itself) lispa\amos\events\models\Event
getCommunityUserMm() lispa\amos\events\models\base\Event
getCompleteAddress() lispa\amos\events\models\Event
getContextRoles() Array containing the possible roles of a community Member lispa\amos\events\models\Event
getCountryLocation() lispa\amos\events\models\base\Event
getCreatedUserProfile() lispa\amos\core\record\Record
getCwhValidationStatuses() lispa\amos\events\models\Event
getDb() Returns the database connection used by this AR class. yii\db\ActiveRecord
getDeletedUserProfile() lispa\amos\core\record\Record
getDescription() lispa\amos\events\models\Event
getDirtyAttributes() Returns the attribute values that have been modified since they are loaded or saved most recently. yii\db\BaseActiveRecord
getDraftStatus() lispa\amos\events\models\Event
getEndDateHour() lispa\amos\events\models\Event
getErrors() Returns the errors for all attributes or a single attribute. yii\base\Model
getEventAttachments() Getter for $this->eventAttachments; lispa\amos\events\models\Event
getEventColor() Restituisce il colore associato all'evento lispa\amos\events\models\Event
getEventLengthMeasurementUnit() lispa\amos\events\models\base\Event
getEventLogo() Getter for $this->eventLogo; lispa\amos\events\models\Event
getEventMembershipType() lispa\amos\events\models\base\Event
getEventTitle() Restituisce il titolo, possono essere anche più dati, associato all'evento lispa\amos\events\models\Event
getEventType() lispa\amos\events\models\base\Event
getEventUrl() Restituisce l'url per il calendario dell'attività lispa\amos\events\models\Event
getEvents() Funzione che crea gli eventi da visualizzare sulla mappa in caso di più eventi legati al singolo model Andrà valorizzato il campo array a true nella configurazione della vista calendario nella index lispa\amos\events\models\Event
getEventsImageUrl() lispa\amos\events\models\Event
getFirstError() Returns the first error of the specified attribute. yii\base\Model
getFirstErrors() Returns the first error of every attribute in the model. yii\base\Model
getFullViewUrl() lispa\amos\events\models\Event
getGoogleEvent() lispa\amos\events\models\Event
getGoogleEventId() lispa\amos\events\models\Event
getGrammar() lispa\amos\events\models\Event
getGridViewColumns() lispa\amos\events\models\Event
getIsNewRecord() Returns a value indicating whether the current record is new. yii\db\BaseActiveRecord
getIterator() Returns an iterator for traversing the attributes in the model. yii\base\Model
getManagerRole() The name of the greatest role a member can have lispa\amos\events\models\Event
getNextRole() Array containing the next level for a given initial role lispa\amos\events\models\Event
getNotifiedUserId() lispa\amos\notificationmanager\record\NotifyRecord
getNotifier() lispa\amos\notificationmanager\record\NotifyRecord
getOldAttribute() Returns the old value of the named attribute. yii\db\BaseActiveRecord
getOldAttributes() Returns the old attribute values. yii\db\BaseActiveRecord
getOldPrimaryKey() Returns the old primary key value(s). yii\db\BaseActiveRecord
getOrderAttributesLabels() Array of fields => labels for the ORDER form see "_order.php" file lispa\amos\core\record\Record
getPluginController() For m2m widget actions: return the plugin controller name to construct redirect URL lispa\amos\events\models\Event
getPluginModule() For m2m widget actions: return the plugin module name to construct redirect URL lispa\amos\events\models\Event
getPluginWidgetClassname() lispa\amos\events\models\Event
getPrimaryKey() Returns the primary key value(s). yii\db\BaseActiveRecord
getProvinceLocation() lispa\amos\events\models\base\Event
getPublicatedAt() lispa\amos\events\models\Event
getPublicatedFrom() lispa\amos\events\models\Event
getRedirectAction() For m2m widget actions: return the controller action name to construct redirect URL lispa\amos\events\models\Event
getRelatedRecords() Returns all populated related records. yii\db\BaseActiveRecord
getRelation() Returns the relation object with the specified name. yii\db\BaseActiveRecord
getRolePermissions() Array containing user permission for a given role lispa\amos\events\models\Event
getScenario() Returns the scenario that this model is used in. yii\base\Model
getShortDescription() lispa\amos\events\models\Event
getStatsToolbar() lispa\amos\core\record\Record
getTableSchema() Returns the schema information of the DB table associated with this AR class. yii\db\ActiveRecord
getTitle() lispa\amos\events\models\Event
getToValidateStatus() lispa\amos\events\models\Event
getUpdatedUserProfile() lispa\amos\core\record\Record
getValidatedStatus() lispa\amos\events\models\Event
getValidatorRole() lispa\amos\events\models\Event
getValidatorUsersId() Method return user ids of record validators lispa\amos\core\record\Record
getValidators() Returns all the validators declared in rules(). yii\base\Model
getViewUrl() lispa\amos\events\models\Event
getWorkflowStatusLabel() This method return the correct workflow status label. It checks if the workflow behavior is present, then checks if the model has a workflow status and return the correct label. lispa\amos\core\record\Record
globalSearchTags() This method is called by search module to fetch results matching one or more tags lispa\amos\core\record\Record
hasAttribute() Returns a value indicating whether the model has an attribute with the specified name. yii\db\BaseActiveRecord
hasErrors() Returns a value indicating whether there is any validation error. yii\base\Model
hasEventHandlers() Returns a value indicating whether there is any handler attached to the named event. yii\base\Component
hasMany() Declares a has-many relation. yii\db\BaseActiveRecord
hasMethod() Returns a value indicating whether a method is defined. yii\base\Component
hasOne() Declares a has-one relation. yii\db\BaseActiveRecord
hasProperty() Returns a value indicating whether a property is defined for this component. yii\base\Component
init() lispa\amos\events\models\base\Event
initOrderVars() Init the order variables from the module config lispa\amos\core\record\Record
insert() Inserts a row into the associated database table using the attribute values of this record. yii\db\ActiveRecord
instantiate() Creates an active record instance. yii\db\BaseActiveRecord
isAttributeActive() Returns a value indicating whether the attribute is active in the current scenario. yii\base\Model
isAttributeChanged() Returns a value indicating whether the named attribute has been changed. yii\db\BaseActiveRecord
isAttributeRequired() Returns a value indicating whether the attribute is required. yii\base\Model
isAttributeSafe() Returns a value indicating whether the attribute is safe for massive assignments. yii\base\Model
isCommentable() In this method must be defined the conditions that say if the model is commentable and then return true or false. lispa\amos\events\models\Event
isDemo() Check is demo environment lispa\amos\core\record\Record
isEnabledCwh() lispa\amos\core\record\Record
isEnabledModule() lispa\amos\core\record\Record
isEnabledTag() lispa\amos\core\record\Record
isNews() lispa\amos\notificationmanager\record\NotifyRecord
isPrimaryKey() Returns a value indicating whether the given set of attributes represents the primary key for this model yii\db\BaseActiveRecord
isRelationPopulated() Check whether the named relation has been populated with records. yii\db\BaseActiveRecord
isTransactional() Returns a value indicating whether the specified operation is transactional in the current $scenario. yii\db\ActiveRecord
link() Establishes the relationship between two models. yii\db\BaseActiveRecord
load() Populates the model with input data. yii\base\Model
loadDefaultValues() Loads default values from database table schema yii\db\ActiveRecord
loadMultiple() Populates a set of models with the data from end user. yii\base\Model
markAttributeDirty() Marks an attribute dirty. yii\db\BaseActiveRecord
off() Detaches an existing event handler from this component. yii\base\Component
offsetExists() Returns whether there is an element at the specified offset. yii\db\BaseActiveRecord
offsetGet() Returns the element at the specified offset. yii\base\Model
offsetSet() Sets the element at the specified offset. yii\base\Model
offsetUnset() Sets the element value at the specified offset to null. yii\db\BaseActiveRecord
on() Attaches an event handler to an event. yii\base\Component
onUnsafeAttribute() This method is invoked when an unsafe attribute is being massively assigned. yii\base\Model
optimisticLock() Returns the name of the column that stores the lock version for implementing optimistic locking. yii\db\BaseActiveRecord
populateRecord() Populates an active record object using a row of data from the database/storage. yii\db\ActiveRecord
populateRelation() Populates the named relation with the related records. yii\db\BaseActiveRecord
primaryKey() Returns the primary key name(s) for this AR class. yii\db\ActiveRecord
refresh() Repopulates this active record with the latest data. yii\db\BaseActiveRecord
renameFormNamesAndIds() This method return an array of array. The array keys are all the model fields and the values are arrays with "name! and "id" keys modified with the string contained in the param. The return array structure is the following: $newNameAndIds = [ 'FIELD_NAME_1' => [ 'name' => 'NEW_NAME', 'id' => 'NEW_ID' ], . lispa\amos\core\record\Record
representingColumn() lispa\amos\events\models\Event
rules() lispa\amos\events\models\Event
safeAttributes() Returns the attribute names that are safe to be massively assigned in the current scenario. yii\base\Model
save() Saves the current record. yii\db\BaseActiveRecord
scenarios() Returns a list of scenarios and the corresponding active attributes. lispa\amos\events\models\Event
sendNotification() lispa\amos\notificationmanager\record\NotifyRecord
setAttribute() Sets the named attribute value. yii\db\BaseActiveRecord
setAttributes() Sets the attribute values in a massive way. yii\base\Model
setCommunityId() Setter method for community_id field. lispa\amos\events\models\base\Event
setEventLogo() lispa\amos\events\models\Event
setIsNewRecord() Sets the value indicating whether the record is new. yii\db\BaseActiveRecord
setNotifier() lispa\amos\notificationmanager\record\NotifyRecord
setOldAttribute() Sets the old value of the named attribute. yii\db\BaseActiveRecord
setOldAttributes() Sets the old attribute values. yii\db\BaseActiveRecord
setOrderAttribute() Set order field lispa\amos\core\record\Record
setOrderAttributes() Set the list of fields order for this module lispa\amos\core\record\Record
setOrderType() Set order type: ascending (SORT_ASC), descending (SORT_DESC) lispa\amos\core\record\Record
setOrderVars() Identifies the sort fields lispa\amos\core\record\Record
setPublicationScenario() lispa\amos\events\models\Event
setScenario() Sets the scenario for the model. yii\base\Model
tableName() Declares the name of the database table associated with this AR class. lispa\amos\events\models\base\Event
toArray() Converts the model into an array. yii\base\ArrayableTrait
toStringWithCharLimit() lispa\amos\core\record\Record
transactions() Declares which DB operations should be performed within a transaction in different scenarios. yii\db\ActiveRecord
trigger() Triggers an event. yii\base\Component
unlink() Destroys the relationship between two models. yii\db\BaseActiveRecord
unlinkAll() Destroys the relationship in current model. yii\db\BaseActiveRecord
update() Saves the changes to this active record into the associated database table. yii\db\ActiveRecord
updateAll() Updates the whole table using the provided attribute values and conditions. yii\db\ActiveRecord
updateAllCounters() Updates the whole table using the provided counter changes and conditions. yii\db\ActiveRecord
updateAttributes() Updates the specified attributes. yii\db\BaseActiveRecord
updateCounters() Updates one or several counter columns for the current AR object. yii\db\BaseActiveRecord
validate() Performs the data validation. yii\base\Model
validateMultiple() Validates multiple models. yii\base\Model

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
__shortText() Parse string and return limited one lispa\amos\core\record\Record
createRelationQuery() Creates a query instance for has-one or has-many relation. yii\db\BaseActiveRecord
deleteInternal() Deletes an ActiveRecord without considering transaction. yii\db\ActiveRecord
findByCondition() Finds ActiveRecord instance(s) by the given condition. yii\db\ActiveRecord
insertInternal() Inserts an ActiveRecord into DB without considering transaction. yii\db\ActiveRecord
resolveFields() Determines which fields can be returned by toArray(). yii\base\ArrayableTrait
switchOffNotifications() Switch off notifications lispa\amos\notificationmanager\record\NotifyRecord
updateInternal() yii\db\BaseActiveRecord

Events

Hide inherited events

EventTypeDescriptionDefined By
EVENT_AFTER_DELETE yii\base\Event An event that is triggered after a record is deleted. yii\db\BaseActiveRecord
EVENT_AFTER_FIND yii\base\Event An event that is triggered after the record is created and populated with query result. yii\db\BaseActiveRecord
EVENT_AFTER_INSERT yii\db\AfterSaveEvent An event that is triggered after a record is inserted. yii\db\BaseActiveRecord
EVENT_AFTER_REFRESH yii\base\Event An event that is triggered after a record is refreshed. (available since version 2.0.8) yii\db\BaseActiveRecord
EVENT_AFTER_UPDATE yii\db\AfterSaveEvent An event that is triggered after a record is updated. yii\db\BaseActiveRecord
EVENT_AFTER_VALIDATE yii\base\Event An event raised at the end of validate() yii\base\Model
EVENT_BEFORE_DELETE yii\base\ModelEvent An event that is triggered before deleting a record. yii\db\BaseActiveRecord
EVENT_BEFORE_INSERT yii\base\ModelEvent An event that is triggered before inserting a record. yii\db\BaseActiveRecord
EVENT_BEFORE_UPDATE yii\base\ModelEvent An event that is triggered before updating a record. yii\db\BaseActiveRecord
EVENT_BEFORE_VALIDATE yii\base\ModelEvent An event raised at the beginning of validate(). yii\base\Model
EVENT_INIT yii\base\Event An event that is triggered when the record is initialized via init(). yii\db\BaseActiveRecord

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
BOOLEAN_FIELDS_VALUE_NO 0 lispa\amos\events\models\base\Event
BOOLEAN_FIELDS_VALUE_YES 1 lispa\amos\events\models\base\Event
EVENTS_WORKFLOW 'EventWorkflow' lispa\amos\events\models\base\Event
EVENTS_WORKFLOW_STATUS_DRAFT 'EventWorkflow/DRAFT' lispa\amos\events\models\base\Event
EVENTS_WORKFLOW_STATUS_PUBLISHED 'EventWorkflow/PUBLISHED' lispa\amos\events\models\base\Event
EVENTS_WORKFLOW_STATUS_PUBLISHREQUEST 'EventWorkflow/PUBLISHREQUEST' lispa\amos\events\models\base\Event
EVENT_MANAGER 'EVENT_MANAGER' Constants for community roles lispa\amos\events\models\Event
EVENT_PARTICIPANT 'EVENT_PARTICIPANT' lispa\amos\events\models\Event
OP_ALL 7 All three operations: insert, update, delete. This is a shortcut of the expression: OP_INSERT | OP_UPDATE | OP_DELETE. yii\db\ActiveRecord
OP_DELETE 4 The delete operation. This is mainly used when overriding transactions() to specify which operations are transactional. yii\db\ActiveRecord
OP_INSERT 1 The insert operation. This is mainly used when overriding transactions() to specify which operations are transactional. yii\db\ActiveRecord
OP_UPDATE 2 The update operation. This is mainly used when overriding transactions() to specify which operations are transactional. yii\db\ActiveRecord
SCENARIO_CREATE 'scenario_create' Used for create events in the traditional form (action create). lispa\amos\events\models\base\Event
SCENARIO_CREATE_HIDE_PUBBLICATION_DATE 'scenario_create_hide_pubblication_date' lispa\amos\events\models\base\Event
SCENARIO_DEFAULT 'default' The name of the default scenario. yii\base\Model
SCENARIO_DESCRIPTION 'scenario_description' lispa\amos\events\models\base\Event
SCENARIO_FAKE_REQUIRED 'scenario_fake_required' lispa\amos\core\record\Record
SCENARIO_INTRODUCTION 'scenario_introduction' All the scenarios listed below are for the wizard. lispa\amos\events\models\base\Event
SCENARIO_ORGANIZATIONALDATA 'scenario_organizationaldata' lispa\amos\events\models\base\Event
SCENARIO_ORG_HIDE_PUBBLICATION_DATE 'scenario_org_hide_pubblication_date' lispa\amos\events\models\base\Event
SCENARIO_PUBLICATION 'scenario_publication' lispa\amos\events\models\base\Event
SCENARIO_SUMMARY 'scenario_summary' lispa\amos\events\models\base\Event

Property Details

$avatarUrl public read-only property
public void getAvatarUrl ( $dimension 'small' )
$baseRole public read-only property
public string getBaseRole ( )
$begin_date_hour_from public property
$begin_date_hour_to public property
$bypassEventLogoValidation public property
$category public read-only property

Category of content

$communityModel public read-only property
$completeAddress public read-only property
$contextRoles public read-only property
$cwhValidationStatuses public read-only property

List of statuses that for cwh is validated

$draftStatus public read-only property
public void getDraftStatus ( )
$endDateHour public read-only property
public void getEndDateHour ( )
$end_date_hour_from public property
$end_date_hour_to public property
public string $end_date_hour_to null
$eventAttachments public read-only property
$eventAttachmentsForItemView public property
$eventColor public read-only property
public void getEventColor ( )
$eventLogo public property
public yii\db\ActiveQuery getEventLogo ( )
public void setEventLogo ( $image )
$eventTitle public read-only property
public void getEventTitle ( )
$eventUrl public read-only property
public void getEventUrl ( )
$events public read-only property
public void getEvents ( )
$eventsImageUrl public read-only property
public string getEventsImageUrl ( $size 'original', $protected true, $url '/img/img_default.jpg' )
$fullViewUrl public read-only property

The url to view of this model

$googleEvent public read-only property
public void getGoogleEvent ( $eventCalendar null )
$googleEventId public read-only property
public void getGoogleEventId ( )
$grammar public read-only property
public mixed getGrammar ( )
$gridViewColumns public read-only property

The columns ti show as default in GridViewWidget

$location public property
public $location null
$managerRole public read-only property
$pluginController public read-only property
$pluginModule public read-only property
$pluginWidgetClassname public read-only property
public void getPluginWidgetClassname ( )
$publicatedAt public read-only property

Date end of publication

$publicatedFrom public read-only property

Date begin of publication

$redirectAction public read-only property
$shortDescription public read-only property
public void getShortDescription ( )
$title public read-only property
public string getTitle ( )
$toValidateStatus public read-only property
public void getToValidateStatus ( )
$validatedStatus public read-only property
public void getValidatedStatus ( )
$validatorRole public read-only property
public void getValidatorRole ( )
$viewUrl public read-only property

The url to view a single model

public string getViewUrl ( )

Method Details

afterFind() public method

This method is called when the AR object is created and populated with the query result.

The default implementation will trigger an EVENT_AFTER_FIND event. When overriding this method, make sure you call the parent implementation to ensure the event is triggered.

public void afterFind ( )
afterSave() public method

Override Required for cache

The default implementation will trigger an EVENT_AFTER_INSERT event when $insert is true, or an EVENT_AFTER_UPDATE event if $insert is false. The event class used is \lispa\amos\events\models\AfterSaveEvent. When overriding this method, make sure you call the parent implementation so that the event is triggered.

public void afterSave ( $insert, $changedAttributes )
$insert boolean

Whether this method called while inserting a record. If false, it means the method is called while updating a record.

$changedAttributes array

The old values of attributes that had changed and were saved. You can use this parameter to take action based on the changes made for example send an email when the password had changed or implement audit trail that tracks all the changes. $changedAttributes gives you the old attribute values while the active record ($this) has already the new, updated values.

Note that no automatic type conversion performed by default. You may use yii\behaviors\AttributeTypecastBehavior to facilitate attribute typecasting. See http://www.yiiframework.com/doc-2.0/guide-db-active-record.html#attributes-typecasting.

attributeLabels() public method

public void attributeLabels ( )
beforeDelete() public method

Override for demos

public boolean beforeDelete ( )
behaviors() public method

public void behaviors ( )
detachBehaviorByClassName() public method

This method detach SoftDeleteByBehavior from the Event model.

public void detachBehaviorByClassName ( $className )
$className string
detachEventSoftDeleteBehavior() public method

This method detach SoftDeleteByBehavior from the Event model.

public void detachEventSoftDeleteBehavior ( )
getAdditionalAssociationTargetQuery() public method

Active query to search the users to associate in the additional association page

public yii\db\ActiveQuery getAdditionalAssociationTargetQuery ( $communityId )
$communityId integer

Id of the community created by the context model

getAssociationTargetQuery() public method

public yii\db\ActiveQuery getAssociationTargetQuery ( $communityId )
$communityId
getAvatarUrl() public method

Restituisce un'immagine se associata al model

public void getAvatarUrl ( $dimension 'small' )
$dimension
getBaseRole() public method

The name of the basic member role

public string getBaseRole ( )
getCategory() public method

public yii\db\ActiveQuery getCategory ( )
return yii\db\ActiveQuery

Category of content

getCommunityModel() public method

The community created by the context model (community related to project-management, events or a community itself)

public lispa\amos\community\models\Community getCommunityModel ( )
getCompleteAddress() public method

public string getCompleteAddress ( )
getContextRoles() public method

Array containing the possible roles of a community Member

public array getContextRoles ( )
getCwhValidationStatuses() public method

public array getCwhValidationStatuses ( )
return array

List of statuses that for cwh is validated

getDescription() public method

public string getDescription ( $truncate )
$truncate
getDraftStatus() public method

public void getDraftStatus ( )
getEndDateHour() public method

public void getEndDateHour ( )
getEventAttachments() public method

Getter for $this->eventAttachments;

public yii\db\ActiveQuery getEventAttachments ( )
getEventColor() public method

Restituisce il colore associato all'evento

public void getEventColor ( )
getEventLogo() public method

Getter for $this->eventLogo;

public yii\db\ActiveQuery getEventLogo ( )
getEventTitle() public method

Restituisce il titolo, possono essere anche più dati, associato all'evento

public void getEventTitle ( )
getEventUrl() public method

Restituisce l'url per il calendario dell'attività

public void getEventUrl ( )
getEvents() public method

Funzione che crea gli eventi da visualizzare sulla mappa in caso di più eventi legati al singolo model Andrà valorizzato il campo array a true nella configurazione della vista calendario nella index

public void getEvents ( )
getEventsImageUrl() public method

public string getEventsImageUrl ( $size 'original', $protected true, $url '/img/img_default.jpg' )
$size
$protected
$url
getFullViewUrl() public method

public string getFullViewUrl ( )
return string

The url to view of this model

getGoogleEvent() public method

public void getGoogleEvent ( $eventCalendar null )
$eventCalendar
getGoogleEventId() public method

public void getGoogleEventId ( )
getGrammar() public method

public mixed getGrammar ( )
getGridViewColumns() public method

public array getGridViewColumns ( )
return array

The columns ti show as default in GridViewWidget

getManagerRole() public method

The name of the greatest role a member can have

public string getManagerRole ( )
getNextRole() public method

Array containing the next level for a given initial role

public string getNextRole ( $role )
$role string
getPluginController() public method

For m2m widget actions: return the plugin controller name to construct redirect URL

public string getPluginController ( )
getPluginModule() public method

For m2m widget actions: return the plugin module name to construct redirect URL

public string getPluginModule ( )
getPluginWidgetClassname() public method

public void getPluginWidgetClassname ( )
getPublicatedAt() public method

public string getPublicatedAt ( )
return string

Date end of publication

getPublicatedFrom() public method

public string getPublicatedFrom ( )
return string

Date begin of publication

getRedirectAction() public method

For m2m widget actions: return the controller action name to construct redirect URL

public string getRedirectAction ( )
getRolePermissions() public method

Array containing user permission for a given role

public array getRolePermissions ( $role )
$role string
getShortDescription() public method

public void getShortDescription ( )
getTitle() public method

public string getTitle ( )
getToValidateStatus() public method

public void getToValidateStatus ( )
getValidatedStatus() public method

public void getValidatedStatus ( )
getValidatorRole() public method

public void getValidatorRole ( )
getViewUrl() public method

public string getViewUrl ( )
return string

The url to view a single model

isCommentable() public method

In this method must be defined the conditions that say if the model is commentable and then return true or false.

public boolean isCommentable ( )
representingColumn() public method

public void representingColumn ( )
rules() public method

public void rules ( )
scenarios() public method

Returns a list of scenarios and the corresponding active attributes.

An active attribute is one that is subject to validation in the current scenario. The returned array should be in the following format:

[
    'scenario1' => ['attribute11', 'attribute12', ...],
    'scenario2' => ['attribute21', 'attribute22', ...],
    ...
]

By default, an active attribute is considered safe and can be massively assigned. If an attribute should NOT be massively assigned (thus considered unsafe), please prefix the attribute with an exclamation character (e.g. '!rank').

The default implementation of this method will return all scenarios found in the rules() declaration. A special scenario named SCENARIO_DEFAULT will contain all attributes found in the rules(). Each scenario will be associated with the attributes that are being validated by the validation rules that apply to the scenario.

public array scenarios ( )
return array

A list of scenarios and the corresponding active attributes.

setEventLogo() public method

public void setEventLogo ( $image )
$image \lispa\amos\events\models\type
setPublicationScenario() public method

public void setPublicationScenario ( )