| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace ModulesGarden\Servers\ProxmoxVps\Core\CommandLine;
- /**
- * Description of AbstractCronController
- *
- * @author Rafał
- */
- if (class_exists(\Thread::class))
- {
- class AbstractCronController extends \Thread
- {
- protected $className;
- protected $cronManager;
- public function setCronManager($cronManager)
- {
- $this->cronManager = $cronManager;
- return $this;
- }
- public function setClassName($className)
- {
- $this->className = $className;
- return $this;
- }
- protected function updatePid()
- {
- CronManager::updatePids($this->className);
- }
- }
- }
- else
- {
- class AbstractCronController
- {
-
- }
- }
|