/** * @return int */ public function update() { return Service_Yandex_Direct::api()->UpdatePrices($this->items); }
/** */ public function run() { $api = Service_Yandex_Direct::api(); $this->log->debug('Task %s started', $this->name); try { $campaigns = isset($this->config->preload) && $this->config->preload ? isset($this->config->direct) && $this->config->direct ? $api->all_campaigns() : $api->campaigns_for($this->name) : new Service_Yandex_Direct_CampaignsCollection(array()); //ob_start(); include $this->file->path; //ob_end_clean(); } catch (Exception $e) { $this->log->error("Task error: %s", $e->getMessage()); } }