Class lispa\amos\projectmanagement\models\ProjectsTasks
Class ProjectsTasks
This is the model class for table "projects_tasks".
Public Properties
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$adminInstalled | lispa\amos\core\record\Record |
Public Methods
Protected Methods
Method | Description | Defined 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
Event | Type | Description | Defined 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
Constant | Value | Description | Defined By |
---|---|---|---|
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_COSTS_CREATOR | 'costsCreator' | lispa\amos\projectmanagement\models\base\ProjectsTasks | |
SCENARIO_DEFAULT | 'default' | The name of the default scenario. | yii\base\Model |
SCENARIO_FAKE_REQUIRED | 'scenario_fake_required' | lispa\amos\core\record\Record |
Property Details
Method Details
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 ( ) |
public void attributeLabels ( ) |
public void behaviors ( ) |
public void getClassPath ( ) |
public lispa\amos\projectmanagement\models\base\ProjectsCustomSpendingVoices[] getCostItems ( ) |
public lispa\amos\projectmanagement\models\ProjectsTasksCosts getCostRow ( $costItemId, $organizationId ) | ||
$costItemId | integer | |
$organizationId | integer |
public yii\db\ActiveQuery getCosts ( ) |
public void getEndDate ( ) |
public false|integer getEndTime ( ) |
public lispa\amos\projectmanagement\models\ProjectsTasks|null getFirstDependencyTaskError ( $inverse = false ) | ||
$inverse |
public boolean|integer getHasDependencyError ( $inverse = false ) | ||
$inverse |
public yii\db\ActiveQuery getJoinedOrganizations ( ) |
public void getName ( ) |
public void getOrganizationResponsible ( ) |
public void getOrganizationResponsibleId ( ) |
public yii\db\ActiveQuery getProjectJoinedOrganizations ( ) |
public yii\db\ActiveQuery getProjectsTasksJoinedOrganizationsMms ( ) |
public void getStartDate ( ) |
public false|integer getStartTime ( ) |
Getter for $this->tasksAttachments;
public yii\db\ActiveQuery getTasksAttachments ( ) |
public void getTypeName ( ) |
public void getUserResponsible ( ) |
public void getUserResponsibleId ( ) |
public void getattrJoinedOrganizationsMm ( $separator = ' ' ) | ||
$separator |
public void representingColumn ( ) |
public void rules ( ) |
Expected array is like this Array ( [1] => Array //Organization ID ( [5] => 12.67 //Cost Item ID => Value [6] => 0 //Cost Item ID => Value [7] => 0 //Cost Item ID => Value [8] => 0 //Cost Item ID => Value [9] => 0 //Cost Item ID => Value [10] => 0 //Cost Item ID => Value ) [2] => Array //Organization ID ( [5] => 0 //Cost Item ID => Value [6] => 189 //Cost Item ID => Value [7] => 0 //Cost Item ID => Value [8] => 0 //Cost Item ID => Value [9] => 0 //Cost Item ID => Value [10] => 0 //Cost Item ID => Value ) )
public boolean storeNewCosts ( $dataArray ) | ||
$dataArray | ||
throws | yii\base\Exception |
---|
public void validateDates ( $attribute, $params ) | ||
$attribute | string | |
$params | array |