ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilObjWorkflowEngine.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3
14{
21 public function __construct($id = 0, $call_by_reference = true)
22 {
23 $this->type = "wfe";
24 parent::__construct($id, $call_by_reference);
25 }
26
31 public static function getTempDir($relative = false)
32 {
33 $relativeTempPath = 'wfe/upload_temp/';
34
35 if ($relative) {
36 return $relativeTempPath;
37 }
38
39 return ILIAS_DATA_DIR . '/' . CLIENT_ID . '/' . $relativeTempPath;
40 }
41
46 public static function getRepositoryDir($relative = false)
47 {
48 $relativeRepositoryPath = 'wfe/repository/';
49
50 if ($relative) {
51 return $relativeRepositoryPath;
52 }
53
54 return ILIAS_DATA_DIR . '/' . CLIENT_ID . '/' . $relativeRepositoryPath;
55 }
56}
An exception for terminatinating execution or to throw for unit testing.
Class ilObjWorkflowEngine.
static getRepositoryDir($relative=false)
__construct($id=0, $call_by_reference=true)
ilObjWorkflowEngine constructor.
static getTempDir($relative=false)
Class ilObject Basic functions for all objects.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc