public function __construct($event_obj) { parent::__construct(); $this->event_obj = $event_obj; $this->data['event_id'] = pq($this->event_obj)->find('event_id')->text(); $this->data['name'] = pq($this->event_obj)->find('name')->text(); $this->data['public_event'] = pq($this->event_obj)->find('public_event')->text(); $this->data['approved'] = pq($this->event_obj)->find('approved')->text(); $this->data['occurs_at'] = pq($this->event_obj)->find('occurs_at')->text(); $this->data['ends_at'] = pq($this->event_obj)->find('ends_at')->text(); $this->data['event_category'] = pq($this->event_obj)->find('event_category')->text(); $this->data['location'] = pq($this->event_obj)->find('location')->text(); $this->data['description'] = pq($this->event_obj)->find('description')->text(); $this->data['plain_text_description'] = pq($this->event_obj)->find('plain_text_description')->text(); $this->data['occcurs_until'] = pq($this->event_obj)->find('occurs_until')->text(); $this->data['rsvps'] = pq($this->event_obj)->find('rsvps')->text(); $this->data['organization_id'] = pq($this->event_obj)->find('organization_id')->text(); $this->data['organization_short_name'] = pq($this->event_obj)->find('short_name')->text(); }
/** * Constructor that loads up the submission id. * * @param $submission_id The unique id of the submission of the form */ public function __construct($submission_id) { parent::__construct(); $this->load($submission_id); }
public function __construct($form_id) { parent::__construct(); $this->load($form_id); }
/** * Constructor calling a construct on the parent PSU_OrgSync object. * Taking in two parameters of an identifier, and what type of identifier it is, * the constructor calls an internal load function in order to populate the * object with some basic information. * * @param $identifier The unique identifier used to get an account from OrgSync * @param $identifier_type The type of identifier being passed: account_id, email_address, username */ public function __construct($identifier, $identifier_type) { parent::__construct(); $this->load($identifier, $identifier_type); }