Questions tagged as 'poo'

1
answer

in_array php - poo

I have an object in which there are modules in the form of an array. What I want is that when I click on Select, on the right side they can not appear repeated. It does not give me errors but it does not perform the function that I want....
asked by 25.01.2018 / 20:14
2
answers

Can a boolean be modified in a serializable binary file?

As I read on some websites, you can not modify the object, but you can change the value of a Boolean variable. The point is that I do it in the following way and it does not show any error, but when I make the modification and print the object i...
asked by 25.01.2018 / 22:30
1
answer

How can I pass the data from the file to int? [closed]

In a CSV file, the results of a race are stored in the format name: seconds. The program will convert this data into an ArrayList. Then the user will be asked how many data he wants to see (n) and the n participants will be listed with the best...
asked by 10.01.2018 / 18:45
2
answers

Because when I search by name does not find the name inside the ArrayList?

In a file we store the data of the clients of a company with the format name, location. The program will copy that data into an ArrayList so that the user can choose between viewing the customer data of a locality or searching between the names....
asked by 11.01.2018 / 13:56
1
answer

Is there any way to save a variable somewhere other than in the BD in Laravel 5.5?

I'm trying something half crazy. The use case is that every 2 years the Board of Directors changes, so this year it will change to the XXXVII Council (It is currently in the XXXVI). It made me absurd to create a table just to save the number of...
asked by 06.01.2018 / 04:40
2
answers

Error creating object with inheritances in PHP

I am developing an application with inheritances of objects. When you want to create a new object, do not create it. When I want to get the id of an object, it returns me:    Fatal error: Call to a member function getId () on a non-object....
asked by 31.12.2017 / 15:41
0
answers

Can you combine common php files with php POO structure?

My code is as follows: conexionbd.php <?php $credenciales_bd; /**Comprueba si el archivo db.php.ini existe*/ if (file_exists("../config/config.php.ini")) { try{ /*Lee el archivo db.php.ini*/ $credenciales_bd= parse_ini_file...
asked by 21.12.2017 / 18:56
1
answer

Question about classes in javascript

Hello, I do not understand Invoice that is exactly ... I know that it is a template for all others that I can create with new, but Invoice itself is a object or a function with constructor method, get and set, because if I do console.log tell...
asked by 12.01.2018 / 21:27
0
answers

relate nested table attribute to attribute of another table in OOO oracle

Hello as the title says I need to relate the attribute Id_libro of nested table that is in the table Prestamo with an Id_libro attribute of the table Books in POO oracle, a kind of foreign key so that there are no errors that in a loan t...
asked by 29.11.2017 / 20:08
0
answers

Modify objects within archives created with ObjetInputStream / ObjectOutputStream

Good morning, I have a problem when modifying objects inside files created with ObjectInput / ObjectOutput Stream, I have a file with user objects saved in a file called user.dat, to these objects type user with variable int points, I enter the...
asked by 26.11.2017 / 02:17