Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:version.php: Difference between revisions

From MoodleDocs
 
(One intermediate revision by one other user not shown)
Line 20: Line 20:


--[[User:Ryan Foster|Ryan Foster]] ([[User talk:Ryan Foster|talk]]) 17:08, 10 February 2014 (WST)
--[[User:Ryan Foster|Ryan Foster]] ([[User talk:Ryan Foster|talk]]) 17:08, 10 February 2014 (WST)
== Not sure about that last edit ==
I am worried about https://docs.moodle.org/dev/index.php?title=version.php&curid=3664&diff=47298&oldid=47228
I am pretty sure $version is initialised to an empty object before version.php is included. I think you should not initialise it in version.php.--[[User:Tim Hunt|Tim Hunt]] ([[User talk:Tim Hunt|talk]]) 02:32, 31 January 2015 (AWST)
:Agree. I think the author's reasoning was to make their IDE happy. Reverting. --[[User:David Mudrak|David Mudrak]] ([[User talk:David Mudrak|talk]]) 15:50, 2 February 2015 (AWST)

Latest revision as of 07:50, 2 February 2015

Anthony, I reverted your changes. They contradict Coding_style#Files.--Tim Hunt 16:15, 29 March 2013 (WST)

Cron

To me this seems wrong:

> $plugin->cron = 0; > Optional - time interval (in seconds) between calls to the plugin's 'cron' function; set to 0 to disable the cron function calls.

I've just noticed a plugin with cron = 0 running after I added a lib.php cron function there - the idea was to develop first then enable the cron, but logs show it runs every time system cron runs. Moodle 2.3.8 but I cannot find if this is a bug or just wrong documentation. Anyone know which it should be? --Jason Robinson (talk) 17:09, 21 November 2013 (WST)

Version string and dependencies

For the version string ("$plugin->version"), what exactly is the purpose of the "xx" part of the string? Is it meant for if there are multiple releases on a single day (because the author had to fix something urgently that day)? Or is it meant for if there are multiple minor revisions over time based on a major release?

Is "ANY_VERSION" actually a constant in Moodle for dependency checking? This wasn't immediately clear from this page.

Is there a method for setting a maximum version of a dependency?

--Ryan Foster (talk) 17:08, 10 February 2014 (WST)

Not sure about that last edit

I am worried about https://docs.moodle.org/dev/index.php?title=version.php&curid=3664&diff=47298&oldid=47228 I am pretty sure $version is initialised to an empty object before version.php is included. I think you should not initialise it in version.php.--Tim Hunt (talk) 02:32, 31 January 2015 (AWST)

Agree. I think the author's reasoning was to make their IDE happy. Reverting. --David Mudrak (talk) 15:50, 2 February 2015 (AWST)