Вход Регистрация
Файл: concrete5.7.5.6/concrete/jobs/update_gatherings.php
Строк: 32
<?php
namespace ConcreteJob;

use 
Job as AbstractJob;
use 
ConcreteCoreGatheringGathering;

class 
UpdateGatherings extends AbstractJob
{

    public function 
getJobName()
    {
        return 
t("Update Gatherings");
    }

    public function 
getJobDescription()
    {
        return 
t("Loads new items into gatherings.");
    }

    public function 
run()
    {
        
// retrieve all gatherings
        
$list Gathering::getList();
        foreach (
$list as $gathering) {
            
// generate all new items since the last time the gathering was updated.
            
$gathering->generateGatheringItems();
        }
    }
}
Онлайн: 0
Реклама