What is this command line for: self::getContentView($view)

Asked

Viewed 30 times

-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

  • 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);

  • I WANT TO UNDERSTAND THE SYNTAX OF THIS COMMAND, HELP ME HELP

  • 3

    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.

  • https://www.php.net/manual/en/language.oop5.paamayim-nekudotayim.php

  • 1

    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 :-)

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.