Example #1
0
 /**
  * Крон обработка всех запросов на размещение
  * рекомендуется вызывать в фоне раз 1-2 минут
  * 
  * @return array
  */
 public static function cronRequest()
 {
     $type_places = static::getTypePlacesInRequest();
     if (!$type_places) {
         return $type_places;
     }
     $res = array();
     $payPlace = new self();
     foreach ($type_places as $type_place) {
         $payPlace->setTypePlace($type_place);
         $res[$type_place] = $payPlace->cron();
     }
     return $res;
 }