Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationHacks and Mods (Moderators: scott, DanO, Marty)how to write directly to $EventList ?
Pages: [1]   Go Down
Print
Author Topic: how to write directly to $EventList ?  (Read 350 times)
0 Members and 1 Guest are viewing this topic.
cfortune
New Member
*

Karma: 0
Offline Offline

Posts: 0

geek


WWW
« on: August 02, 2006, 12:06:00 AM »

This is really a perl question about complex data structures, but ....

How do I write directly into this hash?  Like this?:
$Eventlist->{'20070214'}->{'details'}->{'newAttrib'} = "blah";

$Eventlist[0] = [
         {
           'details' => {
                          'state' => 'CO',
                          'parent_id' => '',
                          'city' => 'Wheat Ridge',
                          'id' => '1520',
                          'country' => '',
                          'approved' => '1',
                          'title' => 'test',
                        },
           'schedule' => {
                           'datestring' => '20070214',
                           'event_id' => '1520',
                           'which' => '',
                           'date' => 14,
                           'month' => 2,
                           'start_mm' => 0,
                           'end_time' => '',
                           'all_day' => '1',
                           'day' => 3,
                           'recurring_schedule' => undef,
                           'id' => '1521',
                           'end_mm' => 0,
                           'start_time' => '',
                           'end_hh' => 99,
                           'recurrence_id' => '',
                           'recurrence_type' => '',
                           'end' => '1171411200',
                           'span' => 0,
                           'year' => 2007,
                           'start' => 1171411200,
                           'start_hh' => 99
                         }
         }
       ];

Logged
Pages: [1]   Go Up
Print
Jump to: