Search Filters
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

108 total results found

Convert URL object to string

Development

There’s a method in the moodle_url class in lib/weblib.php called __toString() which will convert...

PHP Session Save Path

PHP

You can find the session.save_path through php info or using the command line: php -i | grep ses...

Web Service Course or Activity not Accessible

Integration

If you are using a web service function like enrol_manual_enrol_users to enrol users into a cours...

User Profile Field Select Options

Development

If you need to get the list of user profile field select options for your plugin, you can query t...

Showing additional fields on user profile page

Administration

The fields displayed on the user profile page (public profile) are controlled by the code in lib/...

Office 365 Email Settings

Troubleshooting

A few tips when configuring an Office 365 email account for your SMTP server settings in Moodle: ...

Mahara and Google Analytics

Mahara

You can add the Google Analytics script snippet to a configuration parameter called additionalhtm...

Too Many Connections

Database

When your Moodle database is overloaded you might see errors like this (MySQL/MariaDB) in your PH...

Setting up a Scheduled Task for your Plugin

Development

Ther are two parts to setting up a scheduled task in your plugin. Create the task class under c...

Learn PHP

PHP

PHP: The Right Way "PHP: The Right Way is an easy-to-read, quick reference for PHP popular codin...

Forcing Plugin Reinstallation

Plugins

The easiest way to get moodle to re-run installation is to update the version in version.php. Ho...

PHP get key and value in loop

PHP

A cool little trick with foreach loops in PHP is you can get both the key and the value of associ...

PHP Syntax Check

PHP

Ever had to make a change to a PHP file on the fly only to discover you made a syntax error? E.g....

Assigning Site Administrations through the Database

Database

The following steps can be used to add your user as a siteadmin in the database if required. Ste...

Undefined Property $webserviceprotocols

Integration

When this error occurs there is no result from the web service. In the PHP error log the followin...

Hide My Profile Messages

Administration

To hide the navigation: My Profile > Messages For all users: This is set by the config...

Page Layouts

Themes

Page layouts are used to determine how each page is rendered via the following call: $PAGE->s...

Time Zones

Administration

Moodle time zone information in the first instance is loaded from: https://download.moodle.org/t...

WSDL for a SOAP based Web Service

Integration

When you enable SOAP based web services through Moodle: Site administration > Plugins > ...

Web Service Responses in JSON Format

Integration

To get web service responses in JSON format (e.g. with the REST protocol), you can pass the query...

Back to top