| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace ModulesGarden\ProxmoxAddon\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
- {
-
- }
- }
|