示例#1
0
 protected function load()
 {
     //load the item using the parent method
     parent::load();
     parse_str(str_replace(';', '&', $this->getState()->get('rrule')), $rrule);
     $rrule = new Registry(array_change_key_case($rrule));
     $rrule->set('dtstart', $this->getState()->get('datestart'));
     $rrule->set('until', $this->getState()->get('dateend'));
     $rrule->set('id', $this->getState()->get('rrule_id'));
     /** @var Sp4kAppsRruleItem $rrule */
     $rrule = Sp4kAppsRruleApp::getInstance($rrule)->getItem();
     $rrule->dtstart = strftime('%Y%m%dT115959Z', $rrule->dtstart);
     $rrule->until = strftime('%Y%m%dT115959Z', $rrule->until);
     $this->getState()->set('rrule', $rrule->toString());
 }
示例#2
0
 protected function load()
 {
     parent::load();
 }
示例#3
0
 public function load()
 {
     parent::load();
     $this->child = Sp4kAppsChildApp::getInstance(new Registry(['id' => (int) $this->getState()->get('child_id')]))->getItem();
     $this->product = Sp4kAppsProductApp::getInstance(new Registry(['id' => (int) $this->getState()->get('product_id')]))->getItem();
 }