[Kolab-devel] Webadmin: object type attributes definition

Aleksander Machniak machniak at kolabsys.com
Fri Sep 28 15:25:43 CEST 2012


On 09/28/2012 03:19 PM, Jeroen van Meeuwen wrote:

>> 2. As you see above I removed also 'data' definition. The list of
>> attributes used for auto-generation of attribute values is hardcoded in
>> API code. It means we cannot change this.
> 
> How/where is the list of attributes used for auto-generation hardcoded?

All generate_* methods in kolab_api_service_form_value class. E.g.
generate_cn(). While it checks auto_form_fields, the method used later
is hardcoded:

$cn = trim($postdata['givenname'] . " " . $postdata['sn']);

-- 
Aleksander Machniak
Web Developer, Kolab Systems AG
-------------------------------------------------------
PGP:19359DC1 - http://www.kolabsys.com - http://alec.pl




More information about the devel mailing list