X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FProcess.php;h=18b5f785a1a619ede1c4609904ff3a83cfbd52dd;hb=92cf4879e5c5c3b295a7ac79d800b240282cc99c;hp=4d50ecd4ebc180b7f4993d3e223fb43b685e9f90;hpb=94eca7704130822bf83bb5fee6930dee6bae81dd;p=friendica.git diff --git a/src/Model/Process.php b/src/Model/Process.php index 4d50ecd4eb..18b5f785a1 100644 --- a/src/Model/Process.php +++ b/src/Model/Process.php @@ -1,17 +1,33 @@ . + * */ + namespace Friendica\Model; -use Friendica\BaseObject; use Friendica\Database\DBA; use Friendica\Util\DateTimeFormat; /** - * @brief functions for interacting with a process + * functions for interacting with a process */ -class Process extends BaseObject +class Process { /** * Insert a new process row. If the pid parameter is omitted, we use the current pid @@ -19,6 +35,7 @@ class Process extends BaseObject * @param string $command * @param string $pid * @return bool + * @throws \Exception */ public static function insert($command, $pid = null) { @@ -44,6 +61,7 @@ class Process extends BaseObject * * @param string $pid * @return bool + * @throws \Exception */ public static function deleteByPid($pid = null) { @@ -67,7 +85,7 @@ class Process extends BaseObject self::deleteByPid($process['pid']); } } - + DBA::close($processes); DBA::commit(); } }