Search found 9 matches

by letseatfood
Fri Aug 20, 2010 12:31 pm
Forum: PHP - Theory and Design
Topic: Static Abstract and Interface Classes
Replies: 8
Views: 2501

Re: Static Abstract and Interface Classes

Well, it's important to remember that, in PHP, an abstract class can contain abstract methods, but does not have too. Why would an abstract class not have any abstract methods? I'll use the AHTMLPage class as the start here. Think of the AHTMLPage class as the most abstract (farthest away from concr...
by letseatfood
Fri Aug 20, 2010 9:05 am
Forum: PHP - Theory and Design
Topic: Static Abstract and Interface Classes
Replies: 8
Views: 2501

Re: Static Abstract and Interface Classes

Hi @ChrisBull - I have struggled quite a bit in this area myself. I am no expert, but hopefully I can help your understanding some. In my experience, I didn't start to understand the necessity of static methods, abstract classes, and interfaces until I started working on multiple projects at a time ...
by letseatfood
Wed Aug 18, 2010 11:46 am
Forum: PHP - Theory and Design
Topic: Front-end and back-end shared or separate libraries?
Replies: 6
Views: 2390

Re: Front-end and back-end shared or separate libraries?

@PHPHorizons - Thanks! I had never thought about that, what a useful tip.
by letseatfood
Wed Aug 18, 2010 10:35 am
Forum: PHP - Theory and Design
Topic: Front-end and back-end shared or separate libraries?
Replies: 6
Views: 2390

Re: Front-end and back-end shared or separate libraries?

@PHPHorizons - Thanks a lot! Is `DIRECTORY_SEPARATOR` a constant that holds a forward or backward slash?
by letseatfood
Tue Aug 17, 2010 8:28 pm
Forum: Coding Critique
Topic: "Rearranger" class to move specified array value
Replies: 0
Views: 3990

"Rearranger" class to move specified array value

I just created this `Rearranger` class which will move a value at a specified index to a location between a selected index and (selected index - 1). In other words, the value is inserted between two other values. I don't think a function that solves the same problem is in the PHP language, please co...
by letseatfood
Sat Aug 14, 2010 9:49 pm
Forum: PHP - Theory and Design
Topic: Front-end and back-end shared or separate libraries?
Replies: 6
Views: 2390

Re: Front-end and back-end shared or separate libraries?

@John - Thanks for your response. I can see how "potentially breaking functionality" could be an issue, but with proper testing, prevented. Two related questions I have about sharing my current library with two or more "modules" are: Where to place the library directory within th...
by letseatfood
Sat Aug 14, 2010 7:37 pm
Forum: PHP - Theory and Design
Topic: Front-end and back-end shared or separate libraries?
Replies: 6
Views: 2390

Front-end and back-end shared or separate libraries?

Is it good practice to separate the front-end PHP library from the back-end?

It seems, at the moment, better to share a library between the front-end and back-end.

I am curious to hear opinions about this.

Thanks!
by letseatfood
Sun Aug 08, 2010 3:33 pm
Forum: Coding Critique
Topic: "Router" class to determine current Controller (Page)
Replies: 0
Views: 4265

"Router" class to determine current Controller (Page)

Hello, this is my first post on devnetwork. I'm looking forward to participating. I am looking for critique (obviously) of a design I have come up with for a PHP-based website. Specifically, this is a content management system. The idea is that the client registers legal Controller class names with ...