public function __construct(IEntity $oRecordObject) { /* * @Todo: Inject logged in user too. Think about it. */ if ($this->oDatabaseConnection == NULL) { $this->oDatabaseConnection = new DatabaseOps(); } $this->oRecord = $oRecordObject; $this->aRecordProperties = $oRecordObject->getAllProperties(); }