芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/midiatech/lib/XTR/TaskTrait.php
config = $config; return $this; } /** @inheritdoc */ public function setLogger($logger) { $this->log = $logger; return $this; } /** @inheritdoc */ public function setSanitizer($sanitizer) { $this->sanitizer = $sanitizer; return $this; } /** @inheritdoc */ public function setDate($date) { $this->date = $date; return $this; } /** @inheritdoc */ public function setTask($task) { $options = $task->options; if (property_exists($this, 'defaultConfig')) $options = array_merge($this->defaultConfig, $options); $this->task = $task; $this->options = $options; return $this; } /** @inheritdoc */ public function setStore($store) { $this->store = $store; return $this; } /** @inheritdoc */ public function setTimeSeriesStore($timeSeriesStore) { $this->timeSeriesStore = $timeSeriesStore; return $this; } /** @inheritdoc */ public function setPool($pool) { $this->pool = $pool; return $this; } /** @inheritdoc */ public function setUser($user) { $this->user = $user; return $this; } /** @inheritdoc */ public function getRunMessage() { return $this->runMessage; } /** * Get task * @return Task */ private function getTask() { return $this->task; } /** * @param $option * @param $default * @return mixed */ private function getOption($option, $default) { return isset($this->options[$option]) ? $this->options[$option] : $default; } /** * Append Run Message * @param $message */ private function appendRunMessage($message) { if ($this->runMessage === null) $this->runMessage = ''; $this->runMessage .= $message . PHP_EOL; } }