null, ], [ [ 'duration', 'billsec', ], 'integer', ], [ [ 'company', 'callerid', 'line', 'operator', 'status', 'queue', 'record', ], 'string', 'max' => 255, ], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'company' => 'Company', 'calldate' => 'Calldate', 'callerid' => 'Callerid', 'line' => 'Line', 'operator' => 'Operator', 'status' => 'Status', 'queue' => 'Queue', 'duration' => 'Duration', 'billsec' => 'Billsec', 'record' => 'Record', ]; } public function afterSave($insert, $changedAttributes) { $monologComponent = \Yii::$app->monolog; $logger = $monologComponent->getLogger(); /** * @var \Psr\Log\LoggerInterface $logger */ $logger->info('Call added, id: ' . $this->id); parent::afterSave($insert, $changedAttributes); } }