common/modules/api_v1/v1/controllers/DownloadJournalController.php
/**
     * Adds new record to download journal
     *
     * @return mixed
     */
Adds new record to download journal
@return mixed
Adds new record to download journal @return mixed
public function actionPush()
    {
        $response = Yii::$app->response;
        $rec = new DownloadJournal();
        $rec->load(Yii::$app->request->post(), '');
        if ($rec->save()) {
            return [
                'success' => true,
                'message' => 'Download journal record created.'
            ];
        } else {
            return [
                'success' => false,
                'message' => 'Failed to create download journal record.'
            ];
        }
    }
public function actionPush ( ) { $ response = Yii :: $ app -> response ; $ rec = new DownloadJournal ( ) ; $ rec -> load ( Yii :: $ app -> request -> post ( ) , '' ) ; if ( $ rec -> save ( ) ) { return [ 'success' => true , 'message' => 'Download journal record created.' ] ; } else { return [ 'success' => false , 'message' => 'Failed to create download journal record.' ] ; } }
Adds new record to download journal
 @return mixed
Adds new record to download journal @return mixed