2012-02-05 18:37:25 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class Data_Item
|
|
|
|
{
|
|
|
|
public $id;
|
|
|
|
public $name;
|
2012-02-05 23:04:41 +01:00
|
|
|
public $description;
|
2012-02-05 18:37:25 +01:00
|
|
|
public $hasParent;
|
|
|
|
public $parent;
|
|
|
|
public $children;
|
|
|
|
public $depth;
|
|
|
|
public $lineage;
|
|
|
|
|
2012-02-15 10:04:11 +01:00
|
|
|
public $activeTasks = 0;
|
|
|
|
public $activeTasksTotal = 0;
|
2012-02-05 18:37:25 +01:00
|
|
|
public $inactiveTasks;
|
|
|
|
|
|
|
|
public function __construct( $id , $name )
|
|
|
|
{
|
|
|
|
$this->id = $id;
|
|
|
|
$this->name = $name;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function getIdentifier( )
|
|
|
|
{
|
|
|
|
return $this->id;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function getName( )
|
|
|
|
{
|
|
|
|
return $this->name;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function getDepth( )
|
|
|
|
{
|
|
|
|
if ( $this->depth === null ) {
|
|
|
|
throw new Exception( "Method not implemented" );
|
|
|
|
}
|
|
|
|
return $this->depth;
|
|
|
|
}
|
|
|
|
}
|