1
|
|
|
<?php namespace Comodojo\Extender\Task; |
2
|
|
|
|
3
|
|
|
use \Comodojo\Foundation\DataAccess\Model; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* @package Comodojo Extender |
7
|
|
|
* @author Marco Giovinazzi <[email protected]> |
8
|
|
|
* @license MIT |
9
|
|
|
* |
10
|
|
|
* LICENSE: |
11
|
|
|
* |
12
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
13
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
14
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
15
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
16
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
17
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
18
|
|
|
* THE SOFTWARE. |
19
|
|
|
*/ |
20
|
|
|
|
21
|
|
|
|
22
|
|
|
class Result extends Model{ |
23
|
|
|
|
24
|
|
|
protected $mode = self::READONLY; |
25
|
|
|
|
26
|
|
|
public function __construct($output) { |
27
|
|
|
|
28
|
|
|
$this->setRaw('uid', $output[0]); |
29
|
|
|
$this->setRaw('pid', $output[1]); |
30
|
|
|
$this->setRaw('jid', $output[2]); |
31
|
|
|
$this->setRaw('name', $output[3]); |
32
|
|
|
$this->setRaw('success', $output[4]); |
33
|
|
|
$this->setRaw('start', $output[5]); |
34
|
|
|
$this->setRaw('end', $output[6]); |
35
|
|
|
$this->setRaw('result', $output[7]); |
36
|
|
|
$this->setRaw('wid', $output[8]); |
37
|
|
|
|
38
|
|
|
} |
39
|
|
|
|
40
|
|
|
} |
41
|
|
|
|