/** * get duration for the current plage * * @return array */ function getDuration() { return $this->_duration = CMbDate::duration($this->start, $this->end); }