SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What is this...?

    Hi!

    Can someone tell me what this is?

    PHP Code:
    $this->getResponse()->setContent("<html><body>Hello, World!</body></html>"); 
    Is it calling this class's getResponse() function calling an inner function setContent()?

    Thanks.

  2. #2
    SitePoint Wizard
    Join Date
    Nov 2005
    Posts
    1,191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's method chaining (google it), and is the equivalent of
    $this->getResponse();
    $this->setContext();

  3. #3
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •