Class lispa\amos\admin\models\UserProfile

Inheritancelispa\amos\admin\models\UserProfile » lispa\amos\admin\models\base\UserProfile » lispa\amos\notificationmanager\record\NotifyAuditRecord » 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\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\admin\models\search\UserProfileSearch, lispa\amos\myactivities\basic\UserProfileActivationRequest, lispa\amos\myactivities\basic\UserProfileToValidate

Class UserProfile

This is the model class for table "user_profile".

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$activeValidators yii\validators\Validator[] The validators applicable to the current $scenario. yii\base\Model
$adminWorkflowEvent lispa\amos\admin\events\AdminWorkflowEvent lispa\amos\admin\models\UserProfile
$allFacilitatorUserProfiles lispa\amos\admin\models\UserProfile[] lispa\amos\admin\models\UserProfile
$allUtentiFacilitatori yii\db\ActiveQuery lispa\amos\admin\models\UserProfile
$attributes array Attribute values (name => value). yii\base\Model
$avatar \lispa\amos\admin\models\type lispa\amos\admin\models\UserProfile
$avatarImage string lispa\amos\admin\models\UserProfile
$avatarUrl \lispa\amos\admin\models\type lispa\amos\admin\models\UserProfile
$avatarWebUrl \lispa\amos\admin\models\type lispa\amos\admin\models\UserProfile
$behaviors yii\base\Behavior[] List of behaviors attached to this component yii\base\Component
$campiConsigliati \lispa\amos\admin\models\type lispa\amos\admin\models\UserProfile
$category yii\db\ActiveQuery Category of content lispa\amos\admin\models\UserProfile
$completamentoProfilo lispa\amos\admin\models\UserProfile
$comuneResidenza yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$contatti lispa\amos\admin\models\UserProfile
$contattiNomeCognome yii\db\ActiveRecord Il risultato della query lispa\amos\admin\models\UserProfile
$createdUserProfile yii\db\ActiveQuery lispa\amos\core\record\Record
$cwhValidationStatuses array List of statuses that for cwh is validated lispa\amos\admin\models\UserProfile
$defaultFacilitator lispa\amos\admin\models\UserProfile|null lispa\amos\admin\models\UserProfile
$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
$domicilioComune yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$domicilioProvincia yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$draftStatus string The name that correspond to 'draft' status for the content model lispa\amos\admin\models\UserProfile
$errors array Errors for all attributes or the specified attribute. yii\base\Model
$facilitatorOrDefFacilitator lispa\amos\admin\models\UserProfile|null lispa\amos\admin\models\UserProfile
$facilitatore yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$file lispa\amos\admin\models\UserProfile
$firstErrors array The first errors. yii\base\Model
$fullViewUrl string The url to view of this model lispa\amos\admin\models\UserProfile
$grammar mixed lispa\amos\admin\models\UserProfile
$gridViewColumns array The columns ti show as default in GridViewWidget lispa\amos\admin\models\UserProfile
$iconaMarker string Il percorso del marker che sarà utilizzato nella mappa lispa\amos\admin\models\UserProfile
$indirizzoCompleto lispa\amos\admin\models\UserProfile
$insegnamentis lispa\amos\admin\models\UserProfile
$insegnamentis2 lispa\amos\admin\models\UserProfile
$insegnamentis3 lispa\amos\admin\models\UserProfile
$isNewRecord boolean Whether the record is new and should be inserted when calling save(). yii\db\BaseActiveRecord
$isProfileModified lispa\amos\admin\models\UserProfile
$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
$listaProgetti lispa\amos\admin\models\UserProfile
$listaRuoli lispa\amos\admin\models\UserProfile
$logoImg string lispa\amos\admin\models\UserProfile
$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
$modelClassName lispa\amos\notificationmanager\record\NotifyRecord
$modelFormName lispa\amos\notificationmanager\record\NotifyRecord
$modulesChainBehavior lispa\amos\core\record\Record
$nascitaComuni yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$nascitaNazioni yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$nascitaProvince yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$nomeCognome lispa\amos\admin\models\UserProfile
$notifiedUserId mixed|null lispa\amos\admin\models\UserProfile
$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
$pluginWidgetClassname string The classname of the generic dashboard widget to access the plugin lispa\amos\admin\models\UserProfile
$prevalentPartnership yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$primaryKey mixed The primary key value. yii\db\BaseActiveRecord
$provinciaResidenza yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$publicatedAt string|null Date end of publication lispa\amos\admin\models\UserProfile
$publicatedFrom string|null Date begin of publication lispa\amos\admin\models\UserProfile
$relatedRecords array An array of related records indexed by relation names. yii\db\BaseActiveRecord
$residenzaComune yii\db\ActiveQuery lispa\amos\admin\models\UserProfile
$residenzaNazione yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$residenzaProvincia yii\db\ActiveQuery lispa\amos\admin\models\UserProfile
$ruoli lispa\amos\admin\models\UserProfile
$ruolos lispa\amos\admin\models\UserProfile
$ruolos2 lispa\amos\admin\models\UserProfile
$scenario string The scenario that this model is in. yii\base\Model
$sedi_facilitazione lispa\amos\admin\models\UserProfile
$sexValues array lispa\amos\admin\models\base\UserProfile
$sexValuesForSelect array lispa\amos\admin\models\base\UserProfile
$shortDescription lispa\amos\admin\models\UserProfile
$socialAuthUsers lispa\amos\admin\models\base\UserProfile
$statsToolbar lispa\amos\core\record\Record
$surnameName lispa\amos\admin\models\UserProfile
$tags yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$tagsMandatory lispa\amos\core\record\Record
$tipo_utente lispa\amos\admin\models\UserProfile
$title string The model title field value lispa\amos\admin\models\UserProfile
$toValidateStatus string The name that correspond to 'to validate' status for the content model lispa\amos\admin\models\UserProfile
$updatedUserProfile yii\db\ActiveQuery lispa\amos\core\record\Record
$user yii\db\ActiveQuery lispa\amos\admin\models\UserProfile
$userNetworkAssociationQuery \lispa\amos\admin\models\@var ActiveQuery|CachedActiveQuery $query lispa\amos\admin\models\UserProfile
$userNetworkQuery \lispa\amos\admin\models\@var ActiveQuery|CachedActiveQuery $query lispa\amos\admin\models\UserProfile
$userProfileAgeGroup yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$userProfileArea yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$userProfileImage yii\db\ActiveQuery lispa\amos\admin\models\UserProfile
$userProfileReactivationRequest yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$userProfileRole yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$userProfileStatiCivili yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$userProfileStatuses array lispa\amos\admin\models\UserProfile
$userProfileTagMms yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$userProfileTitoliStudio yii\db\ActiveQuery lispa\amos\admin\models\base\UserProfile
$validatedStatus string The name that correspond to 'published' status for the content model lispa\amos\admin\models\UserProfile
$validatorRole string The name of model validator role lispa\amos\admin\models\UserProfile
$validatorUsersId array lispa\amos\admin\models\UserProfile
$validatori Validatori lispa\amos\admin\models\UserProfile
$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\admin\models\UserProfile
$widgetsSelectedToArray lispa\amos\admin\models\UserProfile
$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
activateUserProfile() This method activate a user profile with activation of the relative user. lispa\amos\admin\models\UserProfile
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() lispa\amos\admin\models\UserProfile
afterRefresh() This method is called when the AR object is refreshed. yii\db\BaseActiveRecord
afterSave() Override Required for cache lispa\amos\core\record\Record
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. lispa\amos\admin\models\UserProfile
attributeLabels() lispa\amos\admin\models\UserProfile
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() lispa\amos\admin\models\UserProfile
beforeSave() Override for demos lispa\amos\admin\models\UserProfile
beforeValidate() This method is invoked before validation starts. lispa\amos\admin\models\UserProfile
behaviors() lispa\amos\admin\models\UserProfile
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
checkAnomimo() lispa\amos\admin\models\UserProfile
checkCodiceFiscale() lispa\amos\admin\models\UserProfile
checkPrivacy() Custom validation form "privacy" field lispa\amos\admin\models\base\UserProfile
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
deactivateUserProfile() This method deactivate a user profile with deactivation of the relative user. lispa\amos\admin\models\UserProfile
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 a behavior from the model. lispa\amos\core\record\Record
detachBehaviors() Detaches all behaviors from the component. yii\base\Component
detachBehaviorsOnWhiteList() lispa\amos\core\record\Record
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
getAdminWorkflowEvent() This method return new instance of AdminWorkflowEvent lispa\amos\admin\models\UserProfile
getAllFacilitatorUserProfiles() Method that returns all facilitators users present in the system. lispa\amos\admin\models\UserProfile
getAllUtentiFacilitatori() Funzione che restituisce tutti gli utenti facilitatori presenti nel sistema lispa\amos\admin\models\UserProfile
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
getAvatar() lispa\amos\admin\models\UserProfile
getAvatarImage() lispa\amos\admin\models\UserProfile
getAvatarUrl() lispa\amos\admin\models\UserProfile
getAvatarWebUrl() lispa\amos\admin\models\UserProfile
getBehavior() Returns the named behavior object. yii\base\Component
getBehaviors() Returns all behaviors attached to this component. yii\base\Component
getCampiConsigliati() lispa\amos\admin\models\UserProfile
getCategory() lispa\amos\admin\models\UserProfile
getCompletamentoProfilo() lispa\amos\admin\models\UserProfile
getComuneResidenza() lispa\amos\admin\models\base\UserProfile
getContatti() lispa\amos\admin\models\UserProfile
getContattiNomeCognome() Restituisce il nome e il cognome dei contatti dell'utente lispa\amos\admin\models\UserProfile
getCreatedUserProfile() lispa\amos\core\record\Record
getCwhValidationStatuses() lispa\amos\admin\models\UserProfile
getDb() Returns the database connection used by this AR class. yii\db\ActiveRecord
getDefaultFacilitator() This method returns the default facilitator profile. If not present it returns null. lispa\amos\admin\models\UserProfile
getDeletedUserProfile() lispa\amos\core\record\Record
getDescription() lispa\amos\admin\models\UserProfile
getDirtyAttributes() Returns the attribute values that have been modified since they are loaded or saved most recently. yii\db\BaseActiveRecord
getDomicilioComune() lispa\amos\admin\models\base\UserProfile
getDomicilioProvincia() lispa\amos\admin\models\base\UserProfile
getDraftStatus() lispa\amos\admin\models\UserProfile
getErrors() Returns the errors for all attributes or a single attribute. yii\base\Model
getFacilitatorOrDefFacilitator() This method return the facilitator profile of this user profile. If not present, it return the default facilitator profile. If not present it return null. lispa\amos\admin\models\UserProfile
getFacilitatore() lispa\amos\admin\models\base\UserProfile
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\admin\models\UserProfile
getGrammar() lispa\amos\admin\models\UserProfile
getGridViewColumns() lispa\amos\admin\models\UserProfile
getIconaMarker() Restituisce il percorso del marker, da personalizzare a piacimento lispa\amos\admin\models\UserProfile
getIndirizzoCompleto() lispa\amos\admin\models\UserProfile
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
getLogoImg() lispa\amos\admin\models\UserProfile
getNascitaComuni() lispa\amos\admin\models\base\UserProfile
getNascitaNazioni() lispa\amos\admin\models\base\UserProfile
getNascitaProvince() lispa\amos\admin\models\base\UserProfile
getNomeCognome() Restituisce il nome e cognome degli utenti lispa\amos\admin\models\UserProfile
getNotifiedUserId() lispa\amos\admin\models\UserProfile
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
getPluginWidgetClassname() lispa\amos\admin\models\UserProfile
getPrevalentPartnership() lispa\amos\admin\models\base\UserProfile
getPrimaryKey() Returns the primary key value(s). yii\db\BaseActiveRecord
getProvinciaResidenza() lispa\amos\admin\models\base\UserProfile
getPublicatedAt() lispa\amos\admin\models\UserProfile
getPublicatedFrom() lispa\amos\admin\models\UserProfile
getRelatedRecords() Returns all populated related records. yii\db\BaseActiveRecord
getRelation() Returns the relation object with the specified name. yii\db\BaseActiveRecord
getResidenzaComune() lispa\amos\admin\models\UserProfile
getResidenzaNazione() lispa\amos\admin\models\base\UserProfile
getResidenzaProvincia() lispa\amos\admin\models\UserProfile
getRuolos() lispa\amos\admin\models\UserProfile
getScenario() Returns the scenario that this model is used in. yii\base\Model
getSexValues() lispa\amos\admin\models\base\UserProfile
getSexValuesForSelect() lispa\amos\admin\models\base\UserProfile
getShortDescription() lispa\amos\admin\models\UserProfile
getSocialAuthUsers() lispa\amos\admin\models\base\UserProfile
getStatsToolbar() lispa\amos\core\record\Record
getSurnameName() Get the the user name format Surname + name lispa\amos\admin\models\UserProfile
getTableSchema() Returns the schema information of the DB table associated with this AR class. yii\db\ActiveRecord
getTags() lispa\amos\admin\models\base\UserProfile
getTitle() lispa\amos\admin\models\UserProfile
getToValidateStatus() lispa\amos\admin\models\UserProfile
getUpdatedUserProfile() lispa\amos\core\record\Record
getUser() lispa\amos\admin\models\UserProfile
getUserNetworkAssociationQuery() Get the UserProfiles to invite or with pending invitation (for logged user) lispa\amos\admin\models\UserProfile
getUserNetworkQuery() Get the logged user contact lispa\amos\admin\models\UserProfile
getUserProfileAgeGroup() lispa\amos\admin\models\base\UserProfile
getUserProfileArea() lispa\amos\admin\models\base\UserProfile
getUserProfileImage() Getter for $this->userProfileImage; lispa\amos\admin\models\UserProfile
getUserProfileReactivationRequest() lispa\amos\admin\models\base\UserProfile
getUserProfileRole() lispa\amos\admin\models\base\UserProfile
getUserProfileStatiCivili() lispa\amos\admin\models\base\UserProfile
getUserProfileStatuses() Metodo recuperare tutti gli stati da visualizzare nel widget di scelta degli stati. RItorna un array chiave => valore con chiave l'id dello stato e valore lo stato da visualizzare. lispa\amos\admin\models\UserProfile
getUserProfileTagMms() lispa\amos\admin\models\base\UserProfile
getUserProfileTitoliStudio() lispa\amos\admin\models\base\UserProfile
getUtenteByCodiceFiscale() Funzione che verifica l'esistenza o meno del codice fiscale all'interno del sistema lispa\amos\admin\models\UserProfile
getValidatedStatus() lispa\amos\admin\models\UserProfile
getValidatorRole() lispa\amos\admin\models\UserProfile
getValidatorUsersId() Method return user ids of record validators lispa\amos\admin\models\UserProfile
getValidators() Returns all the validators declared in rules(). yii\base\Model
getVerificaUtenteProprio() lispa\amos\admin\models\UserProfile
getViewUrl() lispa\amos\admin\models\UserProfile
getWidgetsSelectedToArray() lispa\amos\admin\models\UserProfile
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
hasRole() lispa\amos\admin\models\UserProfile
init() lispa\amos\admin\models\UserProfile
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
isActive() This method check if a user profile is active. lispa\amos\admin\models\UserProfile
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
isDeactivated() This method check if a user profile is deactivated. lispa\amos\admin\models\UserProfile
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
isFacilitator() This method return true if the user passed by param is a facilitator. lispa\amos\admin\models\UserProfile
isGoogleContact() lispa\amos\admin\models\UserProfile
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\admin\models\UserProfile
rules() lispa\amos\admin\models\UserProfile
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\admin\models\base\UserProfile
sendNotification() lispa\amos\admin\models\UserProfile
setAccettazionePrivacy() lispa\amos\admin\models\UserProfile
setAttribute() Sets the named attribute value. yii\db\BaseActiveRecord
setAttributes() Sets the attribute values in a massive way. yii\base\Model
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
setRuoli() Salva i ruoili lispa\amos\admin\models\UserProfile
setScenario() Sets the scenario for the model. yii\base\Model
setUserProfileImage() lispa\amos\admin\models\UserProfile
setWidgetsSelectedFromArray() lispa\amos\admin\models\UserProfile
tableName() Declares the name of the database table associated with this AR class. yii\db\ActiveRecord
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
verificaCodiceFiscale() Funzione che verifica la correttezza del codice fiscale lispa\amos\admin\models\UserProfile

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
__shortText() Parse string and return limited one lispa\amos\core\record\Record
checkOneTagPresent() Method to check if there is at least one tag selected. lispa\amos\admin\models\UserProfile
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
image_exists() lispa\amos\admin\models\UserProfile
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\admin\models\base\UserProfile
BOOLEAN_FIELDS_VALUE_YES 1 lispa\amos\admin\models\base\UserProfile
EVENT_AGGIORNA_RUOLO 'aggiorna-ruolo' lispa\amos\admin\models\UserProfile
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_NEW_ACCOUNT 'scenario_create_new_account' Scenario used to create new account for social login. lispa\amos\admin\models\base\UserProfile
SCENARIO_DEFAULT 'default' The name of the default scenario. yii\base\Model
SCENARIO_DYNAMIC 'scenario_dynamic' Dynamic scenario for form lispa\amos\admin\models\base\UserProfile
SCENARIO_FAKE_REQUIRED 'scenario_fake_required' lispa\amos\core\record\Record
SCENARIO_INTERESTS 'scenario_interests' lispa\amos\admin\models\base\UserProfile
SCENARIO_INTRODUCING_MYSELF 'scenario_introducing_myself' lispa\amos\admin\models\base\UserProfile
SCENARIO_INTRODUCTION 'scenario_introduction' All the scenarios listed below are for the wizard. lispa\amos\admin\models\base\UserProfile
SCENARIO_PARTNERSHIP 'scenario_partnership' lispa\amos\admin\models\base\UserProfile
SCENARIO_REACTIVATE_DEACTIVATE_USER 'scenario_reactivate_deactivate_user' Scenario used in user reactivate and deactivate action. lispa\amos\admin\models\base\UserProfile
SCENARIO_ROLE_AND_AREA 'scenario_role_and_area' lispa\amos\admin\models\base\UserProfile
SCENARIO_SUMMARY 'scenario_summary' lispa\amos\admin\models\base\UserProfile
STATUS_ACTIVE 1 Activated user profile value lispa\amos\admin\models\base\UserProfile
STATUS_DEACTIVATED 0 Deactivated user profile value lispa\amos\admin\models\base\UserProfile
USERPROFILE_WORKFLOW 'UserProfileWorkflow' lispa\amos\admin\models\base\UserProfile
USERPROFILE_WORKFLOW_STATUS_DRAFT 'UserProfileWorkflow/DRAFT' lispa\amos\admin\models\base\UserProfile
USERPROFILE_WORKFLOW_STATUS_NOTVALIDATED 'UserProfileWorkflow/NOTVALIDATED' lispa\amos\admin\models\base\UserProfile
USERPROFILE_WORKFLOW_STATUS_TOVALIDATE 'UserProfileWorkflow/TOVALIDATE' lispa\amos\admin\models\base\UserProfile
USERPROFILE_WORKFLOW_STATUS_VALIDATED 'UserProfileWorkflow/VALIDATED' lispa\amos\admin\models\base\UserProfile

Property Details

$adminWorkflowEvent public read-only property
$allFacilitatorUserProfiles public read-only property
$allUtentiFacilitatori public read-only property
$avatar public read-only property
public \lispa\amos\admin\models\type getAvatar ( $dimension 'original' )
$avatarImage public read-only property
public string getAvatarImage ( $dimension 'small', $options = [] )
$avatarUrl public read-only property
public \lispa\amos\admin\models\type getAvatarUrl ( $dimension 'original' )
$avatarWebUrl public read-only property
public \lispa\amos\admin\models\type getAvatarWebUrl ( $dimension 'original' )
$campiConsigliati public read-only property
public \lispa\amos\admin\models\type getCampiConsigliati ( )
$category public read-only property

Category of content

$completamentoProfilo public read-only property
public void getCompletamentoProfilo ( )
$contatti public read-only property
public void getContatti ( $id NULL )
$contattiNomeCognome public read-only property

Il risultato della query

$cwhValidationStatuses public read-only property

List of statuses that for cwh is validated

$defaultFacilitator public read-only property
$draftStatus public read-only property

The name that correspond to 'draft' status for the content model

$facilitatorOrDefFacilitator public read-only property
$file public property
public $file null
$fullViewUrl public read-only property

The url to view of this model

$grammar public read-only property
public mixed getGrammar ( )
$gridViewColumns public read-only property

The columns ti show as default in GridViewWidget

$iconaMarker public read-only property

Il percorso del marker che sarà utilizzato nella mappa

$indirizzoCompleto public read-only property
public void getIndirizzoCompleto ( )
$insegnamentis public property
public $insegnamentis null
$insegnamentis2 public property
public $insegnamentis2 null
$insegnamentis3 public property
public $insegnamentis3 null
$isProfileModified public property
public $isProfileModified null
$listaProgetti public property
public $listaProgetti null
$listaRuoli public property
public $listaRuoli null
$logoImg public read-only property
public string getLogoImg ( $dimension 'original', $email false )
$nomeCognome public read-only property
public void getNomeCognome ( )
$notifiedUserId public read-only property
public mixed|null getNotifiedUserId ( )
$pluginWidgetClassname public read-only property

The classname of the generic dashboard widget to access the plugin

$publicatedAt public read-only property

Date end of publication

$publicatedFrom public read-only property

Date begin of publication

$residenzaComune public read-only property
$residenzaProvincia public read-only property
$ruoli public write-only property
public void setRuoli ( $ruoli )
$ruolos public read-only property
$ruolos2 public property
public $ruolos2 null
$scenariosNotToCheckTag protected static property
protected static $scenariosNotToCheckTag = [self::SCENARIO_INTRODUCTIONself::SCENARIO_INTRODUCING_MYSELFself::SCENARIO_ROLE_AND_AREAself::SCENARIO_PARTNERSHIPself::SCENARIO_SUMMARY]
$sedi_facilitazione public property
public $sedi_facilitazione null
$shortDescription public read-only property
public void getShortDescription ( )
$surnameName public read-only property
public void getSurnameName ( )
$tipo_utente public property
public $tipo_utente null
$title public read-only property

The model title field value

public string getTitle ( )
$toValidateStatus public read-only property

The name that correspond to 'to validate' status for the content model

$user public read-only property
$userNetworkAssociationQuery public read-only property

ActiveQuery|CachedActiveQuery $query

public \lispa\amos\admin\models\@var getUserNetworkAssociationQuery ( )
$userNetworkQuery public read-only property

ActiveQuery|CachedActiveQuery $query

public \lispa\amos\admin\models\@var getUserNetworkQuery ( )
$userProfileImage public property
$userProfileStatuses public read-only property
$validatedStatus public read-only property

The name that correspond to 'published' status for the content model

$validatorRole public read-only property

The name of model validator role

$validatorUsersId public read-only property
$validatori public property

Validatori

public $validatori null
$viewUrl public read-only property

The url to view a single model

public string getViewUrl ( )
$widgetsSelectedToArray public read-only property

Method Details

activateUserProfile() public method

This method activate a user profile with activation of the relative user.

public boolean activateUserProfile ( )
afterFind() public method

public void afterFind ( )
attributeHints() public method

Returns the attribute hints.

Attribute hints are mainly used for display purpose. For example, given an attribute isPublic, we can declare a hint Whether the post should be visible for not logged in users, which provides user-friendly description of the attribute meaning and can be displayed to end users.

Unlike label hint will not be generated, if its explicit declaration is omitted.

Note, in order to inherit hints defined in the parent class, a child class needs to merge the parent hints with child hints using functions such as array_merge().

public array attributeHints ( )
return array

Attribute hints (name => hint)

attributeLabels() public method

public void attributeLabels ( )
beforeDelete() public method

public void beforeDelete ( )
beforeSave() public method

Override for demos

The default implementation will trigger an EVENT_BEFORE_INSERT event when $insert is true, or an EVENT_BEFORE_UPDATE event if $insert is false. When overriding this method, make sure you call the parent implementation like the following:

public function beforeSave($insert)
{
    if (!parent::beforeSave($insert)) {
        return false;
    }

    // ...custom code here...
    return true;
}
public boolean beforeSave ( $insert )
$insert boolean

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

return boolean

Whether the insertion or updating should continue. If false, the insertion or updating will be cancelled.

beforeValidate() public method

This method is invoked before validation starts.

The default implementation raises a beforeValidate event. You may override this method to do preliminary checks before validation. Make sure the parent implementation is invoked so that the event can be raised.

public boolean beforeValidate ( )
return boolean

Whether the validation should be executed. Defaults to true. If false is returned, the validation will stop and the model is considered invalid.

behaviors() public method

public mixed behaviors ( )
checkAnomimo() public method

public void checkAnomimo ( $attribute )
$attribute
checkCodiceFiscale() public method

public void checkCodiceFiscale ( $attribute, $params )
$attribute
$params
checkOneTagPresent() protected method

Method to check if there is at least one tag selected.

protected boolean checkOneTagPresent ( )
deactivateUserProfile() public method

This method deactivate a user profile with deactivation of the relative user.

public boolean deactivateUserProfile ( )
getAdminWorkflowEvent() public method

This method return new instance of AdminWorkflowEvent

public lispa\amos\admin\events\AdminWorkflowEvent getAdminWorkflowEvent ( )
getAllFacilitatorUserProfiles() public method

Method that returns all facilitators users present in the system.

public lispa\amos\admin\models\UserProfile[] getAllFacilitatorUserProfiles ( )
getAllUtentiFacilitatori() public method
Deprecated since version 2.0

Funzione che restituisce tutti gli utenti facilitatori presenti nel sistema

public yii\db\ActiveQuery getAllUtentiFacilitatori ( )
getAvatar() public method

public \lispa\amos\admin\models\type getAvatar ( $dimension 'original' )
$dimension \lispa\amos\admin\models\type
getAvatarImage() public method
Deprecated since version 2.0

public string getAvatarImage ( $dimension 'small', $options = [] )
$dimension string
$options array
getAvatarUrl() public method

public \lispa\amos\admin\models\type getAvatarUrl ( $dimension 'original' )
$dimension \lispa\amos\admin\models\type
getAvatarWebUrl() public method

public \lispa\amos\admin\models\type getAvatarWebUrl ( $dimension 'original' )
$dimension \lispa\amos\admin\models\type
getCampiConsigliati() public method

public \lispa\amos\admin\models\type getCampiConsigliati ( )
getCategory() public method

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

Category of content

getCompletamentoProfilo() public method

public void getCompletamentoProfilo ( )
getContatti() public method

public void getContatti ( $id NULL )
$id
getContattiNomeCognome() public method

Restituisce il nome e il cognome dei contatti dell'utente

public yii\db\ActiveRecord getContattiNomeCognome ( $id NULL )
$id integer

L'id dell'utente dei quali si vuole conoscere i contatti, se non inserito è dell'utente attuale

return yii\db\ActiveRecord

Il risultato della query

getCwhValidationStatuses() public method

public array getCwhValidationStatuses ( )
return array

List of statuses that for cwh is validated

getDefaultFacilitator() public method

This method returns the default facilitator profile. If not present it returns null.

public lispa\amos\admin\models\UserProfile|null getDefaultFacilitator ( )
getDescription() public method

public string getDescription ( $truncate )
$truncate
return string

The model description field value

getDraftStatus() public method

public string getDraftStatus ( )
return string

The name that correspond to 'draft' status for the content model

getFacilitatorOrDefFacilitator() public method

This method return the facilitator profile of this user profile. If not present, it return the default facilitator profile. If not present it return null.

public lispa\amos\admin\models\UserProfile|null getFacilitatorOrDefFacilitator ( )
getFullViewUrl() public method

public string getFullViewUrl ( )
return string

The url to view of this model

getGrammar() public method

public mixed getGrammar ( )
getGridViewColumns() public method

public array getGridViewColumns ( )
return array

The columns ti show as default in GridViewWidget

getIconaMarker() public method

Restituisce il percorso del marker, da personalizzare a piacimento

public string getIconaMarker ( )
return string

Il percorso del marker che sarà utilizzato nella mappa

getIndirizzoCompleto() public method

public void getIndirizzoCompleto ( )
getLogoImg() public method
Deprecated since version 2.0

public string getLogoImg ( $dimension 'original', $email false )
$dimension string
$email boolean
getNomeCognome() public method

Restituisce il nome e cognome degli utenti

public void getNomeCognome ( )
getNotifiedUserId() public method

public mixed|null getNotifiedUserId ( )
getPluginWidgetClassname() public method

public string getPluginWidgetClassname ( )
return string

The classname of the generic dashboard widget to access the plugin

getPublicatedAt() public method

public string|null getPublicatedAt ( )
return string|null

Date end of publication

getPublicatedFrom() public method

public string|null getPublicatedFrom ( )
return string|null

Date begin of publication

getResidenzaComune() public method

public yii\db\ActiveQuery getResidenzaComune ( )
getResidenzaProvincia() public method

public yii\db\ActiveQuery getResidenzaProvincia ( )
getRuolos() public method

public yii\db\ActiveQuery getRuolos ( )
getShortDescription() public method

public void getShortDescription ( )
getSurnameName() public method

Get the the user name format Surname + name

public void getSurnameName ( )
getTitle() public method

public string getTitle ( )
return string

The model title field value

getToValidateStatus() public method

public string getToValidateStatus ( )
return string

The name that correspond to 'to validate' status for the content model

getUser() public method

public yii\db\ActiveQuery getUser ( )
getUserNetworkAssociationQuery() public method

Get the UserProfiles to invite or with pending invitation (for logged user)

public \lispa\amos\admin\models\@var getUserNetworkAssociationQuery ( )
return \lispa\amos\admin\models\@var

ActiveQuery|CachedActiveQuery $query

getUserNetworkQuery() public method

Get the logged user contact

public \lispa\amos\admin\models\@var getUserNetworkQuery ( )
return \lispa\amos\admin\models\@var

ActiveQuery|CachedActiveQuery $query

getUserProfileImage() public method

Getter for $this->userProfileImage;

public yii\db\ActiveQuery getUserProfileImage ( )
getUserProfileStatuses() public method

Metodo recuperare tutti gli stati da visualizzare nel widget di scelta degli stati. RItorna un array chiave => valore con chiave l'id dello stato e valore lo stato da visualizzare.

public array getUserProfileStatuses ( )
getUtenteByCodiceFiscale() public method

Funzione che verifica l'esistenza o meno del codice fiscale all'interno del sistema

public yii\db\ActiveQuery getUtenteByCodiceFiscale ( $cf )
$cf string

Codice fiscale da verificare

getValidatedStatus() public method

public string getValidatedStatus ( )
return string

The name that correspond to 'published' status for the content model

getValidatorRole() public method

public string getValidatorRole ( )
return string

The name of model validator role

getValidatorUsersId() public method

Method return user ids of record validators

public array getValidatorUsersId ( )
getVerificaUtenteProprio() public method

public void getVerificaUtenteProprio ( $idUtente )
$idUtente
getViewUrl() public method

public string getViewUrl ( )
return string

The url to view a single model

getWidgetsSelectedToArray() public method

public void getWidgetsSelectedToArray ( )
hasRole() public method

public boolean hasRole ( $role '', $userId null )
$role string
  • rbac role name
$userId null|integer
  • if not specified the user_id releted to userprofile is considered
return boolean
  • if the user related to userpfofile has the specified role
image_exists() protected method

protected boolean image_exists ( $url )
$url \lispa\amos\admin\models\type
init() public method

public void init ( )
isActive() public method

This method check if a user profile is active.

public boolean isActive ( )
isDeactivated() public method

This method check if a user profile is deactivated.

public boolean isDeactivated ( )
isFacilitator() public method

This method return true if the user passed by param is a facilitator.

If the user id is not passed, it uses the user id of the model. If not present it return false.

public boolean isFacilitator ( $userId null )
$userId integer
isGoogleContact() public method

public boolean isGoogleContact ( )
return boolean
  • if the userProfile is a google contact of logged User
representingColumn() public method

public void representingColumn ( )
rules() public method

public void rules ( )
sendNotification() public method

public boolean sendNotification ( )
setAccettazionePrivacy() public method

public void setAccettazionePrivacy ( )
setRuoli() public method

Salva i ruoili

public void setRuoli ( $ruoli )
$ruoli
setUserProfileImage() public method

public mixed setUserProfileImage ( $image )
$image
setWidgetsSelectedFromArray() public method

public void setWidgetsSelectedFromArray ( $widgets = [] )
$widgets
verificaCodiceFiscale() public method

Funzione che verifica la correttezza del codice fiscale

public boolean verificaCodiceFiscale ( $cf )
$cf string

Codice fiscale da verificare

return boolean

TRUE|false se il codice è corretto restituisce True altrimenti False