You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
542 B
42 lines
542 B
<?php |
|
|
|
/** |
|
* Repository Object Data |
|
*/ |
|
class DataObject |
|
{ |
|
private $id; |
|
|
|
/** |
|
* Get the object id |
|
* @return type |
|
*/ |
|
public function getId() |
|
{ |
|
return $this->id; |
|
} |
|
|
|
/** |
|
* Set the idea if not already set |
|
* @param type $id |
|
* @throws Exception |
|
*/ |
|
public function setId($id) |
|
{ |
|
if ( $pid != null ) |
|
{ |
|
throw new Exception("PID can't be changed"); |
|
} |
|
$this->id = $pid; |
|
} |
|
|
|
/** |
|
* Add the data from a file ( example ) |
|
*/ |
|
public function addDataFromFile() |
|
{ |
|
|
|
} |
|
} |
|
|
|
?>
|
|
|