100 Commits

Author SHA1 Message Date
Dan Poltawski
0e35ba6ffc MDL-36357 cleanup - remove double semicolons 2012-11-15 09:51:26 +08:00
Mark Nelson
3774324174 MDL-33791 Portfolio: Fixed security issue with passing file paths. 2012-11-08 00:26:13 +01:00
Frederic Massart
c31dc0b695 MDL-33828 Portfolio: prevent notices while exporting to portfolios 2012-07-03 09:33:17 +08:00
Dan Poltawski
c17ec774d7 MDL-33552 - portfolio api E_STRICT fixes
admin_config_form and admin_config_validation are now static
2012-06-12 22:56:42 +08:00
Sam Hemelryk
84ec16a861 Merge branch 'MDL-29857-3' of git://github.com/danpoltawski/moodle 2012-06-01 13:42:01 +12:00
Sam Hemelryk
849b9a6af7 MDL-33399 mixed: Fixed up calls to get_area_files that used empty sorts 2012-05-29 16:44:28 +12:00
Dan Poltawski
9b27ffa042 MDL-29857 - portfolio: Fix E_STRICT errors 2012-05-29 10:13:20 +08:00
Marina Glancy
559276b153 MDL-32247,MDL-32831,MDL-32900 Use correct url building of file type icons
- function get_mimetypes_array() now contains also information about filetype groups and language strings
- use 'smart' human-readable mimetype description
- never determine filetype group based on filetype icon image! remove function mimeinfo_from_icon()
- get rid of class filetype_parser and file lib/filestorage/file_types.mm, replaced with functions file_get_typegroup(), file_extension_in_typegroup() and file_mimetype_in_typegroup()
- support multiple icon sizes, not only 16 and 32
- retrieve filetype icon only using proper functions file_..._icon() from lib/filelib.php throughout the code
- increase size of repository thumbnails to 90 and icons to 24 (will take effect when new icons exist)
2012-05-21 16:01:04 +08:00
David Mudrak
796495fed2 MDL-32471 changing the interface of the send_stored_file() 2012-04-24 12:09:44 +02:00
Petr Skoda
f20edd5208 MDL-32094 fix various E_STRICT compatibility problems 2012-03-18 18:37:24 +01:00
Sam Hemelryk
18cdcdbf89 MDL-30989 portfolio: Fixed up phpdocs 2012-02-15 15:33:06 +13:00
Rossiani Wijaya
93dd2725e8 MDL-30989 portfolio: updated portfolio phpdocs. 2012-01-30 15:37:46 +08:00
Petr Skoda
aff24313be MDL-29401 introduce new frankenstyle PARAM types
New PARAM_COMPONENT, PARAM_AREA and PARAM_PLUGIN + fixing of hopefully all current incorrect parameter types. This should help with diagnosing of incorrectly named 3rd party plugins too.
2011-09-25 09:59:55 +02:00
Aparup Banerjee
728ebac7f2 MDL-28135 general Updating all hardcoded "docs.moodle.org/en/Development:" type doc links to "docs.moodle.org/dev/" 2011-07-05 14:27:31 +08:00
David Mudrak
bf0fc3c057 Improved portfolio export summary layout 2010-11-11 13:32:57 +00:00
Sam Marshall
bf81b16824 Unit tests MDL-24981 Fixed portfolio unit test so it at least runs (albeit with 23 exceptions and only 2 passes) 2010-11-01 18:00:57 +00:00
Petr Skoda
7c109ea3f0 MDL-24276 "static abstract" combination is deprecated since PHP 5.2, replacing with our coding_style exception 2010-09-19 18:43:52 +00:00
Penny Leach
2ae76ab6ed portfolio MDL-24267 fixing misnamed variable 2010-09-18 11:50:39 +00:00
Penny Leach
86fef7764a portfolio MDL-24266 fixing a typo in class name instance of check found by petr's insane new toy 2010-09-18 11:50:12 +00:00
Petr Skoda
c983324336 fixed invalid form setType() call 2010-09-18 10:56:15 +00:00
Petr Skoda
520ab2b1b0 removed unnecessary break that was breaking code inspection 2010-09-18 10:51:24 +00:00
Petr Skoda
7def9d4345 improved docs 2010-09-18 10:50:50 +00:00
Penny Leach
90636e2b41 portfolio MDL-24251 make sure $PAGE context is set up properly 2010-09-17 09:39:56 +00:00
Petr Skoda
0424cfe307 fixed comment typos 2010-09-03 15:59:25 +00:00
Penny Leach
ebb7e78267 portfolio/leap2a MDL-23955 updated leap2a support to 2010-07 version 2010-08-28 10:00:27 +00:00
Petr Skoda
ede7252234 MDL-23784 finally getting rid of all legacy .gif and .png extensions, yay! fixing issues with incorrect & in JS code 2010-08-12 20:37:24 +00:00
Petr Skoda
0972665f65 MDL-21249 improved php docs and adding direct access prevention in portfolio 2010-07-25 14:02:59 +00:00
Dan Marsden
dab61f9af9 Portfolio MDL-22950 regression - fix usage of archive_to_storage using new component var 2010-07-05 03:10:10 +00:00
Petr Skoda
64f93798d4 MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment 2010-07-03 13:37:13 +00:00
Martin Dougiamas
6010eda22d MDL-22813 Thanks to Mark Nelson from Pukunui Technologies, Portfolio management now looks like Repository. 2010-06-28 06:02:55 +00:00
Petr Skoda
5ebb660ebd MDL-14589 fixed incorect php docs return type 2010-05-03 20:13:56 +00:00
Penny Leach
11fbe3fc79 portfolio api MDL-14591 fixed some get_string issues and tiny usability fixes 2010-05-02 18:01:05 +00:00
Penny Leach
9d429f0bae portfolio api MDL-14591 fixing small bugs and removing debugging 2010-05-02 18:00:52 +00:00
Penny Leach
38652d9076 portfolio MDL-22264 made supported_formats non static 2010-05-01 14:40:38 +00:00
David Mudrak
8e642e1f26 MDL-22212 Fixing portfolio format Leap2A strings location
I took all strings from legacy /lang/en/portfolio_format_leap2a.php plus
added a missing one for emptyselection exception.
2010-04-27 12:56:25 +00:00
Penny Leach
a1e1af19ef portfolio MDL-16124 improved the portfolio_formats conflict resolution 2010-03-21 17:19:56 +00:00
Penny Leach
29fc57afa5 portfolio/leap2a MDL-21030 fixed a syntax problem in category schemes 2010-03-21 17:19:42 +00:00
David Mudrak
16be897441 MDL-21652 html_table rendering refactored
* class html_component does not exist any more
* class html_table rendered via html_writer::table()
* html_table, html_table_row and html_table_cell have public $attributes property to set their CSS classes
* dropped rotateheaders feature, should be added again after more research of possible ways (<svg> is not nice IMHO)
* dropped possibility to define CSS classes for table heading, body and footer - can be easily done and better done using just table class and context
2010-03-20 22:15:54 +00:00
Penny Leach
50938e30b8 portfolio MDL-21878 fixed image export format conflicts 2010-03-20 13:14:02 +00:00
Dan Poltawski
3c29e96a77 portfolio MDL-20896 - update documentation to not lie ;-) 2010-03-20 10:41:07 +00:00
Penny Leach
549c1ae680 portfolio MDL-21508 fixed broken forum attachment export
- fixed a lot of logic in the format conflict stuff
- fixed a very specific bug in forum export when exporting a single
  attachment.
2010-03-16 19:07:53 +00:00
Penny Leach
491fff6497 portfolio/leap MDL-21030 fixed a namespace problem in the leap2a relationships 2010-03-01 13:45:05 +00:00
Penny Leach
fba249c9c5 portfolio/leap MDL-21030 fixed a namespace problem in the leap2a relationships 2010-02-26 14:13:18 +00:00
Penny Leach
b8824f38e4 portfoli MDL-21699 workaround for php 5.3 reference changes in call_user_func 2010-02-23 11:25:32 +00:00
Penny Leach
287efec6f6 mnet MDL-21276 get rid of all the $MNET* globals 2010-02-02 03:13:40 +00:00
Penny Leach
de260e0f7b mnet MDL-21261 large overhaul. This commit changes:
- The way that mnet rpc functions are registered.  Plugins must now
  create db/mnet.php which is an array, similar to services.php.  This
  *replaces* the old mnet_publishes() functions.  version.php must be
  bumped to trigger this.

- More information about each rpc-available function is stored in the
  database, including the class it belongs to, the file it is found in,
  and whether or not it is static.  Methods that are not static must be
  in a class with a constructor that takes no arguments (this can easily
  be achieved with a small wrapper if necessary)

- The xmlrpc dispatcher has been rewritten to remove all the
  dependencies on hardcoded information about auth,mnet,portfolio and
  repository, and just use the information in the database.

- The old hardcoded hidden mnet/testclient.php has been moved to the
  Admin menu under "Development" and rewritten.

- The xmlrpc introspection method profiling is now using php and zend
  reflection - which is a lot nicer than the old way, which was using a
  php-based php parser.  This fixes some inconsistent handling of
  methods without arguments that were advertising their return value as
  the only method parameter.  While this is a *fix*, it breaks BC
  slightly - the old 1.9 broken mnet/testclient.php will now not work
  properly with 2.0

- Dangerous mode is still supported, but old mod/*/rpclib.php is
  now unsupported, due to the fact that any plugin can export mnet
  functions with db/mnet.php.  This is a slight BC break.

Still TODO:

- TEST TEST TEST
- Document the two small BC breaks in release notes
- Document the contract for db/mnet.php
2010-01-28 05:25:50 +00:00
Penny Leach
6a2640d239 NOTABUG updated the portfolio plugin baseclass method signatures 2010-01-28 05:12:22 +00:00
Penny Leach
82e8d268de portfolio MDL-21156 added a missing lang string and removed a too strict exception 2010-01-04 03:20:48 +00:00
Penny Leach
8192522e63 portfolio: MDL-21156 portfolio export format specific pluginfile handling 2009-12-18 13:44:35 +00:00
Penny Leach
ed986e0082 portfolio: MDL-21030 added helper function to add multiple attachments 2009-12-18 13:44:23 +00:00