-2
What is this code for: self::getContentView($view)
?
Android Studio, PHP
My teacher put this command line alone, did not understand the question f
-2
What is this code for: self::getContentView($view)
?
Android Studio, PHP
My teacher put this command line alone, did not understand the question f
Browser other questions tagged php android-studio
You are not signed in. Login or sign up in order to post.
Please clarify your problem or provide additional details in order to highlight exactly what you need. The way it’s written these days it’s hard to tell exactly what you’re asking.
–
Jeez! It’s very simple code, but I don’t know what its function is, explain the following command line: self::getContentView($view);
– Croma
I WANT TO UNDERSTAND THE SYNTAX OF THIS COMMAND, HELP ME HELP
– Croma
The syntax is called a static method of an object. Now, which object and what makes the method, depends on the context of your code. Possibly defined by some framework you are using.
– bfavaretto
https://www.php.net/manual/en/language.oop5.paamayim-nekudotayim.php
– bfavaretto
Explain that sentence: "Do it!" - It’s a simple phrase, it’s telling someone to do something. But what is that something? Who’s telling whom? I don’t know, just taking the whole context of the conversation to know. Similarly, an isolated line of code, with no context, cannot be adequately explained. As already said above, it is calling a static method (see documentation) and passing the variable
$view
as argument. But what it does, only seeing the rest of the code to know. I suggest asking the teacher :-)– hkotsubo