args = $args; } /** * Determines if previous data is enabled for charts. * * @return bool Returns true if previous data is enabled, false otherwise. */ protected function isPreviousDataEnabled() { if (!empty($this->args['prev_data'])) { return true; } return Option::get('charts_previous_period', 1) ? true : false; } }