Пример #1
0
 /**
  * __construct
  *
  * Class constructor, appends Module settings to default settings
  *
  */
 public function __construct()
 {
     $this->setSettings(__CLASS__, parse_ini_file(strtolower(__CLASS__) . '.ini.php', true));
     //set the plugin link and the icon for the menubar
     self::$name = "Process";
     self::$icon = "fa-file";
 }
Пример #2
0
 /**
  * add a process
  *
  * @param Process $process
  * @param null|string $name process name
  * @return int
  */
 public function execute(Process $process, $name = null)
 {
     if (!is_null($name)) {
         $process->name($name);
     }
     $process->start();
     return array_push($this->processes, $process);
 }