PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB_DataObject » Bug #4629

new folder organisation for dbo classes and extended table feature

Details

Request #4629new folder organisation for dbo classes and extended table feature
Submitted2005-06-19 13:39 UTC
Fromnaonak at free dot fr
StatusBogus
PackageDB_DataObject
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2005-06-19 13:39 UTC] naonak at free dot fr

Description:
------------
(I'm french, so excuse my English)

I suggest a new folder organisation for dbo classes like pear packages organisation, example :

+dboClasses/ //folder
|service.php //file
|salarie.php
+service/
|service_network.php
|+service_network/
|service_hardware.php
|+service_hardware/
+salarie/
+salarie_technicien/
|-salarie_technicien.php
+salarie_commercial/
|-salarie_commercial.php

It's very usefull if you use many dbo classes (like me).
With this organisation you should implement extended table feature :

The table "dbo_service" contain the common data of all services:
data fields for service:
id
name
description

And table "dbo_service_network" contain just the particulars datas information for network services (and an id_service).
data fields for network service:
id
id_service
particularDataForNetworkService1
particularDataForNetworkService2
particularDataForNetworkService3
particularDataForNetworkService4

When you get data from a dbo_service_network object (so from dbo_service_network table), you get too data from dbo_service object(so from dbo_service table) but it's transparent for the user!!!

well on, dbo class "dbo_service_network" extends dbo class "dbo_service".

In my opinion, it's very good idee. More easy to use, more modulable, more productive...

[2005-06-21 15:54 UTC] naonak at free dot fr

What do you think about this ?

[2005-06-22 09:43 UTC] naonak at free dot fr

(+"extended table" feature but it's optionnal because, may be, complex to implement(?)).

Yes, it's what I request but all this this operation should be automated according to the desired arboressence(tree structure).

DB_DataObject is a very good package, this new ability is very significant feature for users.

Either you can set up (active) this feature in ini file, like this :

[DB_DataObject]
class_tree_structure=1

In this case, a "Pear package tree structure-like" is use automatically.

Or you can choice your own tree structure but I don't know how implement this last ability.

[2005-06-26 18:47 UTC] naonak at free dot fr

Can you just add the ability to organise dbo_class in differents folders?