[dev] Custom colors and subscribe-options for calendars provided by Api

Karim Geiger geiger at b1-systems.de
Mon Mar 25 08:41:53 UTC 2013


Hi guys,

I just wanted to add a custom color and the possibility to subscribe to
an calendar provided by my horde application.

The app itself returns an array in the listTimeObjectCategories function
provided in the Api.php-file.

Now I tried to follow the steps kronolith does when fetching these
calendars. I found this snippet at line 911 in lib/Kronolith.php:
---8<---
try {
    $categories = $GLOBALS['registry']->call($api .
'/listTimeObjectCategories');
                } catch (Horde_Exception $e) {
                    Horde::logMessage($e, 'DEBUG');
                    continue;
                }

                foreach ($categories as $name => $description) {
                    $GLOBALS['all_external_calendars'][$api . '/' .
$name] = new Kronolith_Calendar_External(array('api' => $api, 'name' =>
$description['title'], 'id' => $name, 'type' => $description['type']));
                    $ext_cals[] = array(
                        'a' => $api,
                        'n' => $name,
                        'd' => $description['title'],
                        't' => $description['type']
                    );
                }
--->8---

Here it looks like it only handles title, id and type. Is there a way to
give the calendar a custom color and a subscribe-link?

Thanks

Karim

-- 
Karim Geiger
Auszubildender Fachinformatiker AE

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://lists.horde.org/archives/dev/attachments/20130325/f1c606bc/attachment.bin>


More information about the dev mailing list