SHARE
TWEET

Untitled

a guest Jun 27th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. namespace app\commands;
  4.  
  5. use app\modules\deals\components\aggregation\Aggregator;
  6. use Cake\Chronos\Chronos;
  7. use yii\console\Controller;
  8.  
  9. class HelloController extends Controller
  10. {
  11.     public function actionIndex($message)
  12.     {
  13.         $aggregator = new Aggregator(
  14.             Chronos::createFromTimestamp(Chronos::now()->timestamp),
  15.             'agreement_date',
  16.             [2816], //isProject = false
  17.             false
  18. //            [2856, 2908], //isProject = false
  19. //            false
  20. //            [10770, 10771, 10772, 9348, 9349, 9350], //isProject = false
  21. //            false
  22. //            [1478, 1150], //isProject = true
  23. //            true
  24.  
  25.         );
  26.         $aggregator->getData();
  27.     }
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top