phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-developers] custom functions


From: Chris Weiss
Subject: Re: [Phpgroupware-developers] custom functions
Date: Mon, 27 Mar 2006 08:13:52 -0600

that looks a whole lot like the current hooks systems.

On 3/27/06, Sigurd Nes <address@hidden> wrote:
> I have a very nice feature in property for custom implementation without 
> breaking the official code.
> Right after a storage operation (add/edit) the data-set is fed into custom 
> functions for this location.
>
> The actual funtion is stored as files in appname/inc/custom - and enabled 
> trough an interface per acl_location.
> This is usefull for integration with surrounding systems - or cusmtomization 
> of the type "if a special category of something is saved or altered" - you 
> want to perform a spesific action of some sort
>
> example:
> Admin->property->Admin custom functions
>
> Applying the code is very easy (from class.boentity.inc.php in property):
>
> $custom_functions = 
> $this->soadmin_entity->read_custom_function(array('acl_location' => 
> $acl_location,'allrows'=>True));
> if (isSet($custom_functions) AND is_array($custom_functions))
> {
>         foreach($custom_functions as $entry)
>         {
>                 if (is_file(PHPGW_APP_INC . SEP . 'custom' . SEP . 
> $entry['file_name']) && $entry['active'])
>                 include (PHPGW_APP_INC . SEP . 'custom' . SEP . 
> $entry['file_name']);
>         }
> }
>
> Something for the other apps?
>
> Regards
>
> Sigurd
>
>
> _______________________________________________
> Phpgroupware-developers mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/phpgroupware-developers
>
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]