Login | Register
My pages Projects Community openCollabNet

Discussions > tsWebEditor > Re: Support for classes

Project highlights: home | downloads | news | features | screenhots | support

tswebeditor
Discussion topic

Back to topic list

Re: Support for classes

Author silviosa
Full name Silvio R. Sa
Date 2005-01-11 02:42:16 PST
Message I think this may work fine and I'd like do add some other
features to your idea:

tsWebEditor could accept a comment block with an internal
tsWebEditor specific syntax for editing parameters
definition including the path for included files. For
instance:

/* tsWebEditor definitions
$b is ClassB;
$c is ClassC;
ClassB path '../../module1/class​es/myclass.class.inc​;
ClassC path '../../module2/class​es/otherclass.class.​inc;
*/

The reason why I suggest this is that I usually have may
classes in separate files, one for each class, and I
include (or require) then where I need. I try to use "class
myclass extends mybaseclasse" whenever I can. I store my
class files under a logic project struture so my include
statement for the class may look like:

$myroot_path='../../';
require_once
($myroot_path.'mymo​dule/classes/myclass​.class.inc');

That's the way I found comfortable to have all my file
references relative to my application root path and so the
internet provider can implement the application wherever he
this is fine just moving the application root folder.

I said that the comment block may work fine but you could
also think about some more "exciting" style through XML
configuration files which could be saved in the same folder
of the php script file and either develop a tsWebEditor
interface to create and edit these configurations ... Ok! I
can way for tsWebEditor 3.0 ...

Thanks,
Silvio

« Previous message in topic | 9 of 10 | Next message in topic »

Messages

Show all messages in topic

VXkPSaWkDiFvE swinx SWINX 2004-12-23 07:43:14 PST
     PJJrddfXbAYBa thaj Thaler 2004-12-23 09:23:19 PST
         YRbhnXNPVMd swinx SWINX 2004-12-23 15:14:17 PST
             UNYFBhgDzBbRB thaj Thaler 2004-12-24 04:06:53 PST
                 eMaKFPgmaJhxXaRksxx swinx SWINX 2004-12-24 04:17:08 PST
                     PiUvmorDyQo thaj Thaler 2004-12-26 04:31:56 PST
                         hjraydlAIyRIolfg noktemplate Pablo Winiarczyk 2005-01-07 09:22:45 PST
                             BVgpULcomUx thaj Thaler 2005-01-08 04:10:21 PST
                                 Re: Support for classes silviosa Silvio R. Sa 2005-01-11 02:42:16 PST
                                 SEYWaRccdzepTqoNj urban Urban Etter 2005-01-20 00:40:04 PST
Messages per page: