Moodle Community Sites

One of the most important variables in Moodle cannot be searched for in the Cross Ref. List

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Won't Fix
  • Component/s: xref.moodle.org
  • Labels:
    None

Description

According to the Variables index page in the Cross Reference Listing (xref.moodle.org), the variable $SESSION is referenced 717 times, while $session is only referenced 50 times, mostly in the Question module. But try clicking on $SESSION in the Variables list to find ANY of the 717 references. Oh, no you don't! It takes you to the page for $session. The PHP manual plainly states that variable names in PHP are case-sensitive. You would think the Cross Reference Listing would take that into account. It does list the upper- and lower-case names separately, but just try getting to the page for an upper-case name for which there is a variable with the corresponding lower-case name, and you can't get there from here. Too bad. Especially since in general, I would expect the upper-case variables to be much more important. So naturally it's programmed to favor the lower-case names, and cut-off the more important ones. Way to go.

Activity

Hide
Martin Dougiamas added a comment -

Well, that site is automatically generated by some software we didn't write ... it's only meant as a guide. We don't really have time to fix/hack that software or the generated output...

You might want to get an IDE or just a good code editor to help navigate the code better ...

Show
Martin Dougiamas added a comment - Well, that site is automatically generated by some software we didn't write ... it's only meant as a guide. We don't really have time to fix/hack that software or the generated output... You might want to get an IDE or just a good code editor to help navigate the code better ...
Hide
Anthony Borrow added a comment -

moving to xref.moodle.org component

Show
Anthony Borrow added a comment - moving to xref.moodle.org component
Hide
Anthony Borrow added a comment -

As Martin indicates this is really not so much of an issue. Resolving as 'Won't fix'. Peace - Anthony

Show
Anthony Borrow added a comment - As Martin indicates this is really not so much of an issue. Resolving as 'Won't fix'. Peace - Anthony

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: