An OX Controller
file: code/Winxle-Admin/CampaignController.pm 44: sub globals { 45: my ( $self, $req ) = @_; 46: 47: my @types; 48: return $req->new_json_response( 49: { types => [ Winxle::Globals->available_campaign_types ], 50: status => [ Winxle::Globals->available_campaign_status ], 51: count => $self->campaign_model->count, 52: } 53: ); 54: }