X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FProcess.php;h=18b5f785a1a619ede1c4609904ff3a83cfbd52dd;hb=92cf4879e5c5c3b295a7ac79d800b240282cc99c;hp=40f0c52bdb4e361b9a3ef8f5d8bd57e890cf9b8c;hpb=71ec84f6dc83f753fe80170cfdfd32d202850d90;p=friendica.git diff --git a/src/Model/Process.php b/src/Model/Process.php index 40f0c52bdb..18b5f785a1 100644 --- a/src/Model/Process.php +++ b/src/Model/Process.php @@ -1,19 +1,33 @@ . + * */ + namespace Friendica\Model; -use Friendica\BaseObject; use Friendica\Database\DBA; use Friendica\Util\DateTimeFormat; -require_once 'include/dba.php'; - /** - * @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 @@ -21,6 +35,7 @@ class Process extends BaseObject * @param string $command * @param string $pid * @return bool + * @throws \Exception */ public static function insert($command, $pid = null) { @@ -46,6 +61,7 @@ class Process extends BaseObject * * @param string $pid * @return bool + * @throws \Exception */ public static function deleteByPid($pid = null) { @@ -69,7 +85,7 @@ class Process extends BaseObject self::deleteByPid($process['pid']); } } - + DBA::close($processes); DBA::commit(); } }