255], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'type' => 'Тип', 'item_id' => 'Элемент', 'item_value' => 'Значение Элемента', 'task_id' => 'Задача', 'name' => 'Название', ]; } /** * @return \yii\db\ActiveQuery */ public function getItem() { return $this->hasOne(Item::className(), ['id' => 'item_id']); } public static function getTypes() { return [ self::TYPE_CHANGE_ITEM_VALUE => 'Изменить значение Элемента', ]; } }