@@ -6,28 +6,28 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Process extends Component |
| 8 | 8 | { |
| 9 | - protected ?string $classname = 'System.Diagnostics.Process'; |
|
| 10 | - protected ?string $assembly = 'System'; |
|
| 9 | + protected ?string $classname = 'System.Diagnostics.Process'; |
|
| 10 | + protected ?string $assembly = 'System'; |
|
| 11 | 11 | |
| 12 | - public function __construct (int $pid = null) |
|
| 13 | - { |
|
| 12 | + public function __construct (int $pid = null) |
|
| 13 | + { |
|
| 14 | 14 | $this->selector = VoidCore::getClass ($this->classname, $this->assembly); |
| 15 | 15 | |
| 16 | - if ($pid !== null) |
|
| 16 | + if ($pid !== null) |
|
| 17 | 17 | $this->selector = $pid == getmypid () ? |
| 18 | 18 | VoidCore::callMethod ($this->selector, 'GetCurrentProcess') : |
| 19 | 19 | VoidCore::callMethod ($this->selector, 'GetProcessById', $pid); |
| 20 | 20 | |
| 21 | - Components::add ($this); |
|
| 22 | - } |
|
| 21 | + Components::add ($this); |
|
| 22 | + } |
|
| 23 | 23 | |
| 24 | - public static function getProcessById (int $pid) |
|
| 25 | - { |
|
| 26 | - return new self ($pid); |
|
| 27 | - } |
|
| 24 | + public static function getProcessById (int $pid) |
|
| 25 | + { |
|
| 26 | + return new self ($pid); |
|
| 27 | + } |
|
| 28 | 28 | |
| 29 | - public static function getCurrentProcess () |
|
| 30 | - { |
|
| 31 | - return new self (getmypid ()); |
|
| 32 | - } |
|
| 29 | + public static function getCurrentProcess () |
|
| 30 | + { |
|
| 31 | + return new self (getmypid ()); |
|
| 32 | + } |
|
| 33 | 33 | } |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | |
| 98 | 98 | try |
| 99 | 99 | { |
| 100 | - if (strpos ($propertyName, '->') !== false && self::$allow_multimethods_calls) |
|
| 100 | + if (strpos ($propertyName, '->') !== false && self::$allow_multimethods_calls) |
|
| 101 | 101 | eval ('namespace VoidEngine; '. $preset .' _c('. self::$objects[$name]->selector .')->'. $propertyName .' = '. $propertyValue .';'); |
| 102 | 102 | |
| 103 | 103 | else self::$objects[$name]->$propertyName = eval ("namespace VoidEngine; $preset return $propertyValue;"); |