[dev] API Interface Rewrite

Jan Schneider jan at horde.org
Tue Aug 4 21:29:24 UTC 2009


Zitat von Michael M Slusarz <slusarz at horde.org>:

> Quoting Chuck Hagenbuch <chuck at horde.org>:
>
>> I think what you are describing is a Horde_Application_Base class -  
>> a base for what makes a Horde application a Horde application. I  
>> don't think this is the same thing as most of the current registry  
>> API methods; I think those would go in a Horde_Application_Api tree  
>> instead.
>
> At an abstract level, I agree with you.  But at an implementation  
> level, I don't.
>
> Take perms().  That is an example of a function that should be the  
> same across all applications.  However, calling code shouldn't have  
> to call that method any different from an application specific  
> method (they should both be callable via call() or callByPackage()).  
>  Which makes sense because these calls are no different than an  
> application's API calls.
>
> So that means that these functions now have to parse yet another  
> file to determine where the function call lies (more overhead).  And  
> we have to create this 'Applicaion_Base' file, which is going to  
> look identical to the API file since it needs $services and $types  
> declarations (more overhead, both processing and in code maintenance).
>
> I think a well-commented API file is much preferable then trying to  
> break this out into 2 separate libraries.

I agree.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.horde.org/archives/dev/attachments/20090804/0833ab7d/attachment.bin>


More information about the dev mailing list