public function get_rules() { $rules = Authority::get_rules_array(); if ($this->is_xhr()) { $data = array('rules' => $rules); $this->xhr_output($data); } }