Questions tagged as 'classes'

0
answers

Call class that generates JSON

Good morning! I am breaking my head to retrieve the class that generates the JSON, I have the following class name of apiBusca.php public function enviarRequisicao() { $url = 'API'; $json = new StdClass(); $json-&...
asked by 13.03.2018 / 14:49
1
answer

UnknownNode when loading XML into class

I get the following XML from a database (modified data, but the structure is this) <registro> <header> <codUsuario>XXX</codUsuario> <codLojista>999</codLojista> </header> <parametros&g...
asked by 05.03.2018 / 21:45
0
answers

How to transform a User Control into Custom Control?

Well I do not know if it's possible to do this, but I created a user control a while ago and now I need to reuse it in some ASP.NET projects, but I'd like to show it in my toolbox. I did some research and I can only add a custom control in the t...
asked by 05.03.2018 / 20:45
0
answers

C / C ++ How to declare a type for an event handler in a class?

I need help in C / C ++ to know how to set a type for an event handler that will be used as a member of a class. This is an example that works with simple variables and functions: #include "cstdlib" #include "stdio.h" using n...
asked by 19.02.2018 / 20:45
1
answer

Instantiate an object of a class inside the constructor of another class

[SOLVED] How do I instantiate the Mars object within the Rover class? Well, I'm returning the following error: "Mars is not defined" class Rover{ constructor(orderedX,orderedY,orientation,toMove){ this.orderedX = orderedX; this.orde...
asked by 19.02.2018 / 15:48
0
answers

onActivityResult in another class

I am creating an app where I have several camera calls, and I would like to create a class to call the camera to use in the project, well, the activity call is being made with the activityforresult in this class, the photo is captured when retur...
asked by 18.02.2018 / 17:49
1
answer

List Jar Classes Generated

I have a class that searches and lists the classes inside my jar, it being: public static Class[] getClasses(String packageName) throws ClassNotFoundException, IOException { ClassLoader classLoader = Thread.currentThread().getContextClassL...
asked by 09.02.2018 / 13:16
1
answer

Classes do not load! Script runs in xampp but does not run in LAMP / LEMP / VPS

Well, I made a very light and simple script. In xampp it runs normal, but when I upload to any server it will not work at all. I've tried the lamp , lemp (from Digital Ocean), the VPS (Da Dreamhost), but it really will not. p> The fi...
asked by 29.01.2018 / 05:31
1
answer

I can not execute a class

So folks, I'm trying to run an application to upload an image to my server. Without saving this data in the database, uploading normally occurs, but when trying to include the image link in the database, php simply does not execute, as if it had...
asked by 30.01.2018 / 16:07
1
answer

method chained in class with static methods

Good afternoon everyone! How do I create a chained method, being it a static method? example:    echo class :: meumétodo-> variable; Thank you     
asked by 30.01.2018 / 16:25