I see we have this code in calendar_plugin_row.inc:

~ln 460


      $event = new stdClass();
      $event->id = $this->id;
      $event->title = $this->title;
      $event->type = $this->type;
      $event->date_start = $item_start_date;
      $event->date_end = $item_end_date;
      $event->db_tz = $db_tz;
      $event->to_zone = $to_zone;
      $event->granularity = $granularity;
      $event->increment = $increment;
      $event->field = $is_field ? $item : NULL;
      $event->url = $this->url;
      $event->row = $row;
      $event->entity = $entity;
      $event->stripe = array();
      $event->stripe_label = array();

It would be great if this were actually an extensible class with properties rather than an stdClass() object... That way it could be re-useable in other contexts without a large copy/past of the required properties.

Comments

Neslee Canil Pinto’s picture

Issue summary: View changes
Status: Active » Closed (outdated)