Class lispa\amos\projectmanagement\models\Projects

Inheritancelispa\amos\projectmanagement\models\Projects » lispa\amos\projectmanagement\models\base\Projects » lispa\amos\core\record\Record » yii\db\ActiveRecord » yii\db\BaseActiveRecord » yii\base\Model » yii\base\Component » yii\base\Object
ImplementsArrayAccess, IteratorAggregate, lispa\amos\community\models\CommunityContextInterface, lispa\amos\community\models\CommunityInterface, lispa\amos\core\interfaces\ModelLabelsInterface, lispa\amos\core\interfaces\StatsToolbarInterface, lispa\amos\core\interfaces\ViewModelInterface, yii\base\Arrayable, yii\base\Configurable, yii\db\ActiveRecordInterface
Uses Traitsyii\base\ArrayableTrait
Subclasseslispa\amos\projectmanagement\models\search\ProjectsSearch

This is the model class for table "projects".

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$activeCommunityMembers lispa\amos\projectmanagement\models\Projects
$activeValidators yii\validators\Validator[] The validators applicable to the current $scenario. yii\base\Model
$activitiesReferentUserIds lispa\amos\projectmanagement\models\Projects
$attrJoinedOrganizationsMm array Attributo di relazione lispa\amos\projectmanagement\models\base\Projects
$attrOrganizationMm array Attributo di relazione lispa\amos\projectmanagement\models\base\Projects
$attrProjectsMeasureMm array Attributo di relazione lispa\amos\projectmanagement\models\base\Projects
$attrProjectsStatesMm array Attributo di relazione lispa\amos\projectmanagement\models\base\Projects
$attributes array Attribute values (name => value). yii\base\Model
$baseRole string lispa\amos\projectmanagement\models\Projects
$behaviors yii\base\Behavior[] List of behaviors attached to this component yii\base\Component
$community yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$communityFromScope lispa\amos\community\models\Community|null lispa\amos\projectmanagement\models\Projects
$communityId integer lispa\amos\projectmanagement\models\base\Projects
$communityModel lispa\amos\community\models\Community lispa\amos\projectmanagement\models\Projects
$communityRoleByUser array lispa\amos\projectmanagement\models\base\Projects
$communityUserMm yii\db\ActiveQuery lispa\amos\projectmanagement\models\Projects
$communityUserMms yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$contextRoles array lispa\amos\projectmanagement\models\Projects
$costs yii\db\ActiveQuery lispa\amos\projectmanagement\models\Projects
$createdUserProfile yii\db\ActiveQuery lispa\amos\core\record\Record
$defaultProjectsSpendingVoices yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$deletedUserProfile yii\db\ActiveQuery lispa\amos\core\record\Record
$dirtyAttributes array The changed attribute values (name-value pairs) yii\db\BaseActiveRecord
$errors array Errors for all attributes or the specified attribute. yii\base\Model
$firstErrors array The first errors. yii\base\Model
$fullViewUrl mixed lispa\amos\projectmanagement\models\Projects
$grammar mixed lispa\amos\projectmanagement\models\Projects
$isNewRecord boolean Whether the record is new and should be inserted when calling save(). yii\db\BaseActiveRecord
$iterator ArrayIterator An iterator for traversing the items in the list. yii\base\Model
$joinedOrganizations yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$managerRole string lispa\amos\projectmanagement\models\Projects
$modulesChainBehavior lispa\amos\core\record\Record
$numberAllOrganizations lispa\amos\projectmanagement\models\Projects
$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
$organization yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$organizationModelClass lispa\amos\projectmanagement\models\base\Projects
$participantsOrganizations yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$pluginController string lispa\amos\projectmanagement\models\Projects
$pluginModel lispa\amos\projectmanagement\models\Projects
$pluginModule string lispa\amos\projectmanagement\models\Projects
$pluginWidgetClassname string lispa\amos\projectmanagement\models\Projects
$primaryKey mixed The primary key value. yii\db\BaseActiveRecord
$projectAllResponsiblesUsersWorkPaln lispa\amos\projectmanagement\models\Projects
$projectItemsWorkPlanArray lispa\amos\projectmanagement\models\Projects
$projectManagerIds lispa\amos\projectmanagement\models\Projects
$projectOrganizations lispa\amos\core\interfaces\OrganizationsModelInterface[] lispa\amos\projectmanagement\models\Projects
$projectTasks lispa\amos\projectmanagement\models\Projects
$projectsActivities yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$projectsActivitiesProjectsMms yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$projectsJoinedOrganizationsMms yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$projectsMeasure yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$projectsModifyRequestMms yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$projectsOrganizationMms yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$projectsProgressDetectionPeriods yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$projectsProjectsMeasureMms yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$projectsProjectsStatesMms yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$projectsSpendingVoices yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$projectsStates yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$projectsUserMms yii\db\ActiveQuery lispa\amos\projectmanagement\models\base\Projects
$redirectAction string lispa\amos\projectmanagement\models\Projects
$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
$statsToolbar lispa\amos\core\record\Record
$tagsMandatory lispa\amos\core\record\Record
$updatedUserProfile yii\db\ActiveQuery lispa\amos\core\record\Record
$users lispa\amos\projectmanagement\models\base\Projects
$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\projectmanagement\models\Projects
$workflowStatusLabel string lispa\amos\projectmanagement\models\Projects

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$adminInstalled 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() Constructor. yii\base\Object
__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\projectmanagement\models\Projects
afterRefresh() This method is called when the AR object is refreshed. yii\db\BaseActiveRecord
afterSave() lispa\amos\projectmanagement\models\Projects
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\projectmanagement\models\base\Projects
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\core\record\Record
beforeSave() lispa\amos\projectmanagement\models\Projects
beforeValidate() lispa\amos\projectmanagement\models\Projects
behaviors() Adding the file behavior lispa\amos\projectmanagement\models\Projects
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
canStartProject() lispa\amos\projectmanagement\models\Projects
canUseModuleOrder() Check if there is an order variable for the module lispa\amos\core\record\Record
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
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 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
getActiveCommunityMembers() lispa\amos\projectmanagement\models\Projects
getActiveValidators() Returns the validators applicable to the current $scenario. yii\base\Model
getActivitiesReferentUserIds() lispa\amos\projectmanagement\models\Projects
getAdditionalAssociationTargetQuery() lispa\amos\projectmanagement\models\Projects
getAllResponsiblesUsersWorkPaln() lispa\amos\projectmanagement\models\Projects
getAssociationTargetQuery() lispa\amos\projectmanagement\models\Projects
getAttrProjectsMeasureMm() lispa\amos\projectmanagement\models\base\Projects
getAttrProjectsStatesMm() lispa\amos\projectmanagement\models\base\Projects
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
getBaseRole() The name of the basic member role lispa\amos\projectmanagement\models\Projects
getBehavior() Returns the named behavior object. yii\base\Component
getBehaviors() Returns all behaviors attached to this component. yii\base\Component
getCommunity() lispa\amos\projectmanagement\models\base\Projects
getCommunityFromScope() lispa\amos\projectmanagement\models\Projects
getCommunityId() Getter method for community_id field. lispa\amos\projectmanagement\models\base\Projects
getCommunityModel() The community created by the context model (community related to project-management, events or a community itself) lispa\amos\projectmanagement\models\Projects
getCommunityRoleByUser() lispa\amos\projectmanagement\models\base\Projects
getCommunityUserMm() lispa\amos\projectmanagement\models\Projects
getCommunityUserMms() lispa\amos\projectmanagement\models\base\Projects
getContextRoles() Array containing the possible roles of a community Member lispa\amos\projectmanagement\models\Projects
getCostRow() lispa\amos\projectmanagement\models\Projects
getCosts() lispa\amos\projectmanagement\models\Projects
getCreatedUserProfile() lispa\amos\core\record\Record
getDb() Returns the database connection used by this AR class. yii\db\ActiveRecord
getDefaultProjectsSpendingVoices() lispa\amos\projectmanagement\models\base\Projects
getDeletedUserProfile() lispa\amos\core\record\Record
getDirtyAttributes() Returns the attribute values that have been modified since they are loaded or saved most recently. yii\db\BaseActiveRecord
getErrors() Returns the errors for all attributes or a single attribute. yii\base\Model
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\projectmanagement\models\Projects
getGrammar() lispa\amos\projectmanagement\models\Projects
getIsNewRecord() Returns a value indicating whether the current record is new. yii\db\BaseActiveRecord
getItemsWorkPlanArray() lispa\amos\projectmanagement\models\Projects
getIterator() Returns an iterator for traversing the attributes in the model. yii\base\Model
getJoinedOrganizations() lispa\amos\projectmanagement\models\base\Projects
getLogo() lispa\amos\projectmanagement\models\Projects
getManagerRole() The name of the greatest role a member can have lispa\amos\projectmanagement\models\Projects
getNextRole() Array containing the next level for a given initial role lispa\amos\projectmanagement\models\Projects
getNumberAllOrganizations() lispa\amos\projectmanagement\models\Projects
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
getOrganization() lispa\amos\projectmanagement\models\base\Projects
getParticipantsOrganizations() lispa\amos\projectmanagement\models\base\Projects
getPluginController() For m2m widget actions: return the plugin controller name to construct redirect URL lispa\amos\projectmanagement\models\Projects
getPluginModel() lispa\amos\projectmanagement\models\Projects
getPluginModule() For m2m widget actions: return the plugin module name to construct redirect URL lispa\amos\projectmanagement\models\Projects
getPluginWidgetClassname() lispa\amos\projectmanagement\models\Projects
getPmRole() lispa\amos\projectmanagement\models\Projects
getPrimaryKey() Returns the primary key value(s). yii\db\BaseActiveRecord
getProjectAllResponsiblesUsersWorkPaln() lispa\amos\projectmanagement\models\Projects
getProjectItemsWorkPlanArray() lispa\amos\projectmanagement\models\Projects
getProjectManagerIds() lispa\amos\projectmanagement\models\Projects
getProjectOrganizations() lispa\amos\projectmanagement\models\Projects
getProjectTasks() lispa\amos\projectmanagement\models\Projects
getProjectsActivities() lispa\amos\projectmanagement\models\base\Projects
getProjectsActivitiesProjectsMms() lispa\amos\projectmanagement\models\base\Projects
getProjectsJoinedOrganizationsMms() lispa\amos\projectmanagement\models\base\Projects
getProjectsMeasure() lispa\amos\projectmanagement\models\base\Projects
getProjectsModifyRequestMms() Roles assigned to users lispa\amos\projectmanagement\models\base\Projects
getProjectsOrganizationMms() lispa\amos\projectmanagement\models\base\Projects
getProjectsProgressDetectionPeriods() lispa\amos\projectmanagement\models\base\Projects
getProjectsProjectsMeasureMms() lispa\amos\projectmanagement\models\base\Projects
getProjectsProjectsStatesMms() lispa\amos\projectmanagement\models\base\Projects
getProjectsSpendingVoices() lispa\amos\projectmanagement\models\base\Projects
getProjectsStates() lispa\amos\projectmanagement\models\base\Projects
getProjectsUserMms() Roles assigned to users lispa\amos\projectmanagement\models\base\Projects
getRawCommunityRoleByUserId() Retrieve community role of the user identified by user id param. lispa\amos\projectmanagement\models\Projects
getRedirectAction() For m2m widget actions: return the controller action name to construct redirect URL lispa\amos\projectmanagement\models\Projects
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\projectmanagement\models\Projects
getScenario() Returns the scenario that this model is used in. yii\base\Model
getStatsToolbar() lispa\amos\core\record\Record
getTableSchema() Returns the schema information of the DB table associated with this AR class. yii\db\ActiveRecord
getUpdatedUserProfile() lispa\amos\core\record\Record
getUsers() lispa\amos\projectmanagement\models\base\Projects
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\projectmanagement\models\Projects
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\projectmanagement\models\Projects
getattrJoinedOrganizationsMm() lispa\amos\projectmanagement\models\base\Projects
getattrOrganizationMm() lispa\amos\projectmanagement\models\base\Projects
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
hasCustomSpendingVoices() lispa\amos\projectmanagement\models\Projects
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
hasLinkedCosts() lispa\amos\projectmanagement\models\Projects
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
hasTasks() lispa\amos\projectmanagement\models\Projects
init() lispa\amos\projectmanagement\models\Projects
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
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
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\projectmanagement\models\Projects
rules() lispa\amos\projectmanagement\models\Projects
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\projectmanagement\models\Projects
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\projectmanagement\models\base\Projects
setIsNewRecord() Sets the value indicating whether the record is new. yii\db\BaseActiveRecord
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
setScenario() Sets the scenario for the model. yii\base\Model
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
validateDates() lispa\amos\projectmanagement\models\Projects
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
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
COMMUNITY_MANAGER_ROLE_NAME 'Project Manager' lispa\amos\projectmanagement\models\Projects
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
PROJECTS_WORKFLOW 'ProjectsWorkflow' lispa\amos\projectmanagement\models\Projects
PROJECTS_WORKFLOW_STATUS_CLOSED 'ProjectsWorkflow/CLOSED' lispa\amos\projectmanagement\models\Projects
PROJECTS_WORKFLOW_STATUS_ONEDIT 'ProjectsWorkflow/ONEDIT' lispa\amos\projectmanagement\models\Projects
PROJECTS_WORKFLOW_STATUS_STARTUP 'ProjectsWorkflow/STARTUP' lispa\amos\projectmanagement\models\Projects
PROJECTS_WORKFLOW_STATUS_VALIDATED 'ProjectsWorkflow/VALIDATED' lispa\amos\projectmanagement\models\Projects
ROLE_PARTICIPANT 'PARTICIPANT' lispa\amos\projectmanagement\models\Projects
ROLE_PARTNER_REFERENT 'PARTNER_REFERENT' lispa\amos\projectmanagement\models\Projects
ROLE_PROJECT_MANAGER 'PROJECT_MANAGER' lispa\amos\projectmanagement\models\Projects
SCENARIO_CREATE_SAVE 'create_save_without_wizard' lispa\amos\projectmanagement\models\Projects
SCENARIO_DEFAULT 'default' The name of the default scenario. yii\base\Model
SCENARIO_FAKE_REQUIRED 'scenario_fake_required' lispa\amos\core\record\Record
SESSION_UPDATE_REFERER 'projects_update_referer' lispa\amos\projectmanagement\models\Projects

Property Details

$activeCommunityMembers public read-only property
$activitiesReferentUserIds public read-only property
$baseRole public read-only property
public string getBaseRole ( )
$communityFromScope public read-only property
$communityModel public read-only property
$communityUserMm public read-only property
$contextRoles public read-only property
$costs public read-only property
$fullViewUrl public read-only property
public mixed getFullViewUrl ( )
$grammar public read-only property
public mixed getGrammar ( )
$logo public read-only property
public void getLogo ( )
$managerRole public read-only property
$numberAllOrganizations public read-only property
$pluginController public read-only property
$pluginModel public read-only property
public void getPluginModel ( )
$pluginModule public read-only property
$pluginWidgetClassname public read-only property
$projectAllResponsiblesUsersWorkPaln public read-only property
$projectItemsWorkPlanArray public read-only property
$projectManagerIds public read-only property
public void getProjectManagerIds ( )
$projectOrganizations public read-only property
$projectTasks public read-only property
public void getProjectTasks ( )
$redirectAction public read-only property
$viewUrl public read-only property

The url to view a single model

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

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

public void afterSave ( $insert, $changedAttributes )
$insert boolean
$changedAttributes array
throws Exception
beforeSave() public method

public boolean beforeSave ( $insert )
$insert
throws yii\base\Exception
beforeValidate() public method

public void beforeValidate ( )
behaviors() public method

Adding the file behavior

public void behaviors ( )
canStartProject() public method

public boolean canStartProject ( )
getActiveCommunityMembers() public method

public void getActiveCommunityMembers ( )
getActivitiesReferentUserIds() public method

public void getActivitiesReferentUserIds ( )
getAdditionalAssociationTargetQuery() public method

public void getAdditionalAssociationTargetQuery ( $communityId )
$communityId
getAllResponsiblesUsersWorkPaln() public static method

public static void getAllResponsiblesUsersWorkPaln ( $projectId )
$projectId
getAssociationTargetQuery() public method

public void getAssociationTargetQuery ( $communityId )
$communityId
getBaseRole() public method

The name of the basic member role

public string getBaseRole ( )
getCommunityFromScope() public method

public lispa\amos\community\models\Community|null getCommunityFromScope ( )
throws yii\base\Exception
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 ( )
getCommunityUserMm() public method

public yii\db\ActiveQuery getCommunityUserMm ( )
getContextRoles() public method

Array containing the possible roles of a community Member

public array getContextRoles ( )
getCostRow() public method

public array|null|lispa\amos\projectmanagement\models\ProjectsTasksCosts getCostRow ( $costItemId, $organizationId )
$costItemId
$organizationId
getCosts() public method

public yii\db\ActiveQuery getCosts ( )
getFullViewUrl() public method

public mixed getFullViewUrl ( )
getGrammar() public method

public mixed getGrammar ( )
getItemsWorkPlanArray() public static method

public static array getItemsWorkPlanArray ( $projectId, $checkOwner false, $taskInSelection = [] )
$projectId
$checkOwner
$taskInSelection
getLogo() public method

public void getLogo ( )
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
getNumberAllOrganizations() public method

public void getNumberAllOrganizations ( )
getPluginController() public method

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

public string getPluginController ( )
getPluginModel() public method

public void getPluginModel ( )
getPluginModule() public method

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

public string getPluginModule ( )
getPluginWidgetClassname() public method

public string getPluginWidgetClassname ( )
getPmRole() public static method

public static string getPmRole ( $role )
$role
getProjectAllResponsiblesUsersWorkPaln() public method

public void getProjectAllResponsiblesUsersWorkPaln ( )
getProjectItemsWorkPlanArray() public method

public void getProjectItemsWorkPlanArray ( )
getProjectManagerIds() public method

public void getProjectManagerIds ( )
getProjectOrganizations() public method

public lispa\amos\core\interfaces\OrganizationsModelInterface[] getProjectOrganizations ( )
getProjectTasks() public method

public void getProjectTasks ( )
getRawCommunityRoleByUserId() public method

Retrieve community role of the user identified by user id param.

public string getRawCommunityRoleByUserId ( $userId )
$userId integer
throws Exception
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
getViewUrl() public method

public string getViewUrl ( )
return string

The url to view a single model

getWorkflowStatusLabel() public method

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.

public string getWorkflowStatusLabel ( )
hasCustomSpendingVoices() public method

public void hasCustomSpendingVoices ( )
hasLinkedCosts() public method

public boolean hasLinkedCosts ( $customSpendingVoicesId )
$customSpendingVoicesId integer
hasTasks() public method

public boolean hasTasks ( )
init() public method

public void init ( )
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.

validateDates() public method

public void validateDates ( )