芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/atvcmsTRASH.com.br/maisqtv/lib/XTR/TaskTrait.php
app = $app; return $this; } /** @inheritdoc */ public function setConfig($config) { $this->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 setPool($pool) { $this->pool = $pool; return $this; } /** @inheritdoc */ public function setUser($user) { $this->user = $user; return $this; } /** @inheritdoc */ public function setFactories($userFactory, $userGroupFactory, $layoutFactory, $displayFactory, $upgradeFactory, $mediaFactory, $notificationFactory, $userNotificationFactory) { $this->userGroupFactory = $userGroupFactory; $this->userFactory = $userFactory; $this->layoutFactory = $layoutFactory; $this->displayFactory = $displayFactory; $this->upgradeFactory = $upgradeFactory; $this->mediaFactory = $mediaFactory; $this->notificationFactory = $notificationFactory; $this->userNotificationFactory = $userNotificationFactory; 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; } }